Lines 1-5
Link Here
|
1 |
PORTNAME= godot |
1 |
PORTNAME= godot |
2 |
DISTVERSION= 3.4.2 |
2 |
DISTVERSION= 4.0 |
3 |
DISTVERSIONSUFFIX= -stable |
3 |
DISTVERSIONSUFFIX= -stable |
4 |
PORTREVISION?= 0 |
4 |
PORTREVISION?= 0 |
5 |
CATEGORIES= devel games |
5 |
CATEGORIES= devel games |
Lines 15-20
Link Here
|
15 |
|
15 |
|
16 |
BUILD_DEPENDS= yasm:devel/yasm |
16 |
BUILD_DEPENDS= yasm:devel/yasm |
17 |
LIB_DEPENDS= libfreetype.so:print/freetype2 \ |
17 |
LIB_DEPENDS= libfreetype.so:print/freetype2 \ |
|
|
18 |
libgraphite2.so:graphics/graphite2 \ |
19 |
libharfbuzz.so:print/harfbuzz \ |
20 |
libharfbuzz-icu.so:print/harfbuzz-icu \ |
18 |
libpcre2-8.so:devel/pcre2 \ |
21 |
libpcre2-8.so:devel/pcre2 \ |
19 |
libpng.so:graphics/png \ |
22 |
libpng.so:graphics/png \ |
20 |
libvpx.so:multimedia/libvpx |
23 |
libvpx.so:multimedia/libvpx |
Lines 22-28
Link Here
|
22 |
xdg-open:devel/xdg-utils \ |
25 |
xdg-open:devel/xdg-utils \ |
23 |
xmessage:x11/xmessage |
26 |
xmessage:x11/xmessage |
24 |
|
27 |
|
25 |
USES= compiler:c++14-lang cpe gl pkgconfig scons xorg |
28 |
USES= compiler:c++17-lang cpe gl pkgconfig scons xorg |
26 |
USE_XORG= x11 xcursor xext xi xinerama xrandr xrender |
29 |
USE_XORG= x11 xcursor xext xi xinerama xrandr xrender |
27 |
USE_GL= gl glew glu |
30 |
USE_GL= gl glew glu |
28 |
|
31 |
|
Lines 31-45
Link Here
|
31 |
USE_GITHUB= yes |
34 |
USE_GITHUB= yes |
32 |
GH_ACCOUNT= godotengine |
35 |
GH_ACCOUNT= godotengine |
33 |
|
36 |
|
34 |
MAKE_ARGS+= platform=x11 builtin_freetype=False \ |
37 |
MAKE_ARGS+= platform=linuxbsd builtin_freetype=False \ |
|
|
38 |
builtin_graphite=False builtin_harfbuzz=False \ |
35 |
builtin_libpng=False builtin_libvpx=False \ |
39 |
builtin_libpng=False builtin_libvpx=False \ |
36 |
builtin_pcre2=False builtin_zlib=False verbose=True |
40 |
builtin_pcre2=False builtin_zlib=False verbose=True |
37 |
MAKE_ARGS+= ${MAKE_ARGS_${CHOSEN_COMPILER_TYPE}} |
41 |
MAKE_ARGS+= ${MAKE_ARGS_${CHOSEN_COMPILER_TYPE}} |
38 |
MAKE_ARGS_clang= use_llvm=True use_lld=True |
42 |
MAKE_ARGS_clang= use_llvm=True linker=lld |
39 |
CXXFLAGS_i386= ${CXXFLAGS_i386_${CHOSEN_COMPILER_TYPE}} |
43 |
CXXFLAGS_i386= ${CXXFLAGS_i386_${CHOSEN_COMPILER_TYPE}} |
40 |
CXXFLAGS_i386_gcc= -march=i586 |
44 |
CXXFLAGS_i386_gcc= -march=i586 |
41 |
|
45 |
|
42 |
# option MONO doesn't build (needs 5.12+) so for now leave it out as an option |
|
|
43 |
OPTIONS_DEFINE= EXAMPLES TOOLS UDEV |
46 |
OPTIONS_DEFINE= EXAMPLES TOOLS UDEV |
44 |
OPTIONS_DEFAULT= ALSA UDEV |
47 |
OPTIONS_DEFAULT= ALSA UDEV |
45 |
# Moved to devel/godot-tools |
48 |
# Moved to devel/godot-tools |
Lines 51-72
Link Here
|
51 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
54 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
52 |
ALSA_MAKE_ARGS= alsa=True |
55 |
ALSA_MAKE_ARGS= alsa=True |
53 |
ALSA_MAKE_ARGS_OFF= alsa=False |
56 |
ALSA_MAKE_ARGS_OFF= alsa=False |
54 |
# tagged 6/11/21 for 3.4 |
57 |
# 4.0 head at 3/3 |
55 |
EXAMPLES_GH_TUPLE= godotengine:godot-demo-projects:585455e67ca3:DEMOS |
58 |
EXAMPLES_GH_TUPLE= godotengine:godot-demo-projects:778baf07cc7d:DEMOS |
56 |
EXAMPLES_PORTEXAMPLES= * |
59 |
EXAMPLES_PORTEXAMPLES= * |
57 |
# mono support doesn't build at present |
|
|
58 |
MONO_BUILD_DEPENDS= msbuild:devel/msbuild |
59 |
MONO_LIB_DEPENDS= libinotify.so:devel/libinotify |
60 |
MONO_GH_TUPLE= mono:nuget-binary:ebedbf8:NUGT/nuget-binary |
61 |
MONO_MAKE_ARGS= module_mono_enabled=yes mono_glue=True |
62 |
MONO_USES= gettext-runtime mono:nuget |
63 |
NUGET_DEPENDS= DotNet.Glob=2.1.1 |
64 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
60 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
65 |
PULSEAUDIO_MAKE_ARGS= pulseaudio=True |
61 |
PULSEAUDIO_MAKE_ARGS= pulseaudio=True |
66 |
PULSEAUDIO_MAKE_ARGS_OFF= pulseaudio=False |
62 |
PULSEAUDIO_MAKE_ARGS_OFF= pulseaudio=False |
67 |
TOOLS_DESC= Include development tools (IDE) |
63 |
TOOLS_DESC= Include development tools (IDE) |
68 |
TOOLS_MAKE_ARGS= target=release_debug tools=True |
64 |
TOOLS_MAKE_ARGS= target=editor |
69 |
TOOLS_MAKE_ARGS_OFF= target=release tools=False |
65 |
TOOLS_MAKE_ARGS_OFF= target=template_release |
70 |
TOOLS_DESKTOP_ENTRIES= "Godot" "${COMMENT}" "${GODOTFILE}" \ |
66 |
TOOLS_DESKTOP_ENTRIES= "Godot" "${COMMENT}" "${GODOTFILE}" \ |
71 |
"${GODOTFILE}" "Development;IDE;" "" |
67 |
"${GODOTFILE}" "Development;IDE;" "" |
72 |
TOOLS_PLIST_FILES= share/pixmaps/${GODOTFILE}.png \ |
68 |
TOOLS_PLIST_FILES= share/pixmaps/${GODOTFILE}.png \ |
Lines 96-118
Link Here
|
96 |
post-patch: |
92 |
post-patch: |
97 |
@${REINPLACE_CMD} -e 's|custom_build|${OPSYS}_Ports_build|' \ |
93 |
@${REINPLACE_CMD} -e 's|custom_build|${OPSYS}_Ports_build|' \ |
98 |
${WRKSRC}/methods.py |
94 |
${WRKSRC}/methods.py |
99 |
@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|' \ |
|
|
100 |
${WRKSRC}/platform/x11/os_x11.cpp |
101 |
|
95 |
|
102 |
pre-build-MONO-on: makenuget |
|
|
103 |
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
104 |
${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} \ |
105 |
target=release_debug tools=True platform=server mono_glue=False) |
106 |
@(cd ${WRKSRC} && ${FIND} ${WRKSRC}/bin -name 'godot*' -exec {} \ |
107 |
--generate-mono-glue modules/mono/glue \; && \ |
108 |
${FIND} ${WRKSRC}/bin -name 'godot*' -delete) |
109 |
|
110 |
# The official godot binary name reflects options used to compile |
96 |
# The official godot binary name reflects options used to compile |
111 |
# We just want a simple name matching the portname |
97 |
# We just want a simple name matching the portname |
112 |
# This gives us bin/godot for runtime and bin/godot-tools for the IDE |
98 |
# This gives us bin/godot for runtime and bin/godot-tools for the IDE |
113 |
do-install: |
99 |
do-install: |
114 |
@${RM} ${WRKSRC}/bin/*.debugsymbols |
100 |
@${RM} ${WRKSRC}/bin/*.debugsymbols |
115 |
cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} godot.x11* \ |
101 |
cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} godot.linuxbsd* \ |
116 |
${STAGEDIR}/${PREFIX}/bin/${GODOTFILE} |
102 |
${STAGEDIR}/${PREFIX}/bin/${GODOTFILE} |
117 |
|
103 |
|
118 |
do-install-EXAMPLES-on: |
104 |
do-install-EXAMPLES-on: |