diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-01-28 18:33:11 +0000 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-01-28 18:33:11 +0000 |
commit | ab48c24dd639e35b7bfc2ce63190eb9255575190 (patch) | |
tree | bd040c4584ad9aa4fbacafefe589e3be43ab54e8 | |
parent | 71206ce7d2482852139a2240aa19accd86e67aba (diff) | |
download | FreeBSD-ports-ab48c24dd639e35b7bfc2ce63190eb9255575190.zip FreeBSD-ports-ab48c24dd639e35b7bfc2ce63190eb9255575190.tar.gz |
devel/godot: update to 2.1.2
Changes: https://godotengine.org/article/maintenance-release-godot-2-1-1
Changes: https://godotengine.org/article/maintenance-release-godot-2-1-2
PR: 216227
Submitted by: Shane <FreeBSD@ShaneWare.Biz> (maintainer)
-rw-r--r-- | devel/godot/Makefile | 23 | ||||
-rw-r--r-- | devel/godot/distinfo | 6 | ||||
-rw-r--r-- | devel/godot/files/patch-SConstruct | 59 | ||||
-rw-r--r-- | devel/godot/files/patch-drivers_SCsub | 11 | ||||
-rw-r--r-- | devel/godot/files/patch-main_main.cpp | 11 | ||||
-rw-r--r-- | devel/godot/files/patch-modules_speex_audio__stream__speex.cpp | 10 | ||||
-rw-r--r-- | devel/godot/files/patch-platform_x11_detect.py | 113 | ||||
-rw-r--r-- | devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp (renamed from devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp) | 4 | ||||
-rw-r--r-- | devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h (renamed from devel/godot/files/patch-drivers_rtaudio_RtAudio.h) | 4 |
9 files changed, 128 insertions, 113 deletions
diff --git a/devel/godot/Makefile b/devel/godot/Makefile index 6d28860..239d650 100644 --- a/devel/godot/Makefile +++ b/devel/godot/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= godot -PORTVERSION= 2.1 +PORTVERSION= 2.1.2 DISTVERSIONSUFFIX= -stable CATEGORIES= devel games @@ -14,7 +14,10 @@ LICENSE_COMB= multi LICENSE_FILE_CC-BY-3.0= ${WRKSRC}/LOGO_LICENSE.md LICENSE_FILE_MIT= ${WRKSRC}/LICENSE.md -LIB_DEPENDS= libfreetype.so:print/freetype2 +LIB_DEPENDS= libfreetype.so:print/freetype2 \ + libpng.so:graphics/png \ + libmpcdec.so:audio/musepack \ + libspeex.so:audio/speex RUN_DEPENDS= xdg-user-dir:devel/xdg-user-dirs \ xdg-open:devel/xdg-utils \ xmessage:x11/xmessage @@ -26,7 +29,7 @@ USES= compiler:c++11-lib pkgconfig scons ssl USE_XORG= x11 xcursor xinerama xrandr USE_GL= gl -MAKE_ARGS+= platform=x11 +MAKE_ARGS+= platform=x11 builtin_speex=no builtin_libmpcdec=no MAKE_ARGS+= ${MAKE_ARGS_${CHOSEN_COMPILER_TYPE}} MAKE_ARGS_clang= use_llvm=yes CXXFLAGS+= -DGLEW_NO_GLU -DRTAUDIO_ENABLED @@ -36,6 +39,7 @@ CXXFLAGS_aarch64= -DNO_THREADS CXXFLAGS_sparc64= -DNO_THREADS CXXFLAGS_mips= -DNO_THREADS CXXFLAGS_mips64= -DNO_THREADS +LDFLAGS+= -lspeex -lmpcdec OPTIONS_DEFINE= EXAMPLES TOOLS OPTIONS_DEFAULT= OSS @@ -44,10 +48,16 @@ OPTIONS_EXCLUDE?= EXAMPLES TOOLS OPTIONS_GROUP= AUDIO OPTIONS_GROUP_AUDIO= ALSA OSS PULSEAUDIO +AUDIO_DESC= Audio support +ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib +ALSA_MAKE_ARGS= alsa=yes EXAMPLES_GH_PROJECT= godot-demo-projects:DEMOS # Branch HEAD for PORTVERSION EXAMPLES_GH_TAGNAME= dfa1274:DEMOS EXAMPLES_PORTEXAMPLES= * +OSS_MAKE_ARGS= oss=yes +PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio +PULSEAUDIO_MAKE_ARGS= pulseaudio=yes TOOLS_DESC= Include development tools (IDE) TOOLS_MAKE_ARGS= target=release_debug tools=yes TOOLS_MAKE_ARGS_OFF= target=release tools=no @@ -56,13 +66,6 @@ TOOLS_DESKTOP_ENTRIES= "Godot" "${COMMENT}" "${GODOTFILE}" \ TOOLS_PLIST_FILES= share/pixmaps/${GODOTFILE}.png \ share/pixmaps/${GODOTFILE}.svg -AUDIO_DESC= Audio support -ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib -ALSA_MAKE_ARGS= alsa=yes -OSS_MAKE_ARGS= oss=yes -PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio -PULSEAUDIO_MAKE_ARGS= pulseaudio=yes - GODOTFILE= ${PORTNAME}${PKGNAMESUFFIX} PLIST_FILES= bin/${GODOTFILE} diff --git a/devel/godot/distinfo b/devel/godot/distinfo index 7034785..6d3d320b 100644 --- a/devel/godot/distinfo +++ b/devel/godot/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1470729135 -SHA256 (godotengine-godot-2.1-stable_GH0.tar.gz) = 0d2a6f5a3689a818cb4859e7655e64a4d603940fae1bdf16a18b980c22b0b6fe -SIZE (godotengine-godot-2.1-stable_GH0.tar.gz) = 17917448 +TIMESTAMP = 1485416056 +SHA256 (godotengine-godot-2.1.2-stable_GH0.tar.gz) = 29b3131449f8ca908be800c4c07020efaa9f90a29b6bc1be8a18a331dc34b49a +SIZE (godotengine-godot-2.1.2-stable_GH0.tar.gz) = 14399692 SHA256 (godotengine-godot-demo-projects-dfa1274_GH0.tar.gz) = 42420f7f473b1391a13f226473d1cc850605f24d2865220e4c5acde05f1c340c SIZE (godotengine-godot-demo-projects-dfa1274_GH0.tar.gz) = 18423807 diff --git a/devel/godot/files/patch-SConstruct b/devel/godot/files/patch-SConstruct index 5c89810..3716b3f 100644 --- a/devel/godot/files/patch-SConstruct +++ b/devel/godot/files/patch-SConstruct @@ -1,35 +1,36 @@ ---- SConstruct.orig 2016-08-09 07:52:15 UTC +--- SConstruct.orig 2016-11-15 18:44:21 UTC +++ SConstruct -@@ -63,7 +63,7 @@ elif (os.name=="nt"): - if (os.getenv("VSINSTALLDIR")==None or platform_arg=="android"): - custom_tools=['mingw'] +@@ -65,7 +65,7 @@ elif (os.name == "nt"): + if (os.getenv("VSINSTALLDIR") == None or platform_arg == "android"): + custom_tools = ['mingw'] --env_base=Environment(tools=custom_tools); -+env_base=Environment(tools=custom_tools, ENV = os.environ); +-env_base = Environment(tools=custom_tools) ++env_base = Environment(tools=custom_tools, ENV = os.environ) + if 'TERM' in os.environ: + env_base['ENV']['TERM'] = os.environ['TERM'] env_base.AppendENVPath('PATH', os.getenv('PATH')) - env_base.AppendENVPath('PKG_CONFIG_PATH', os.getenv('PKG_CONFIG_PATH')) - env_base.global_defaults=global_defaults -@@ -231,15 +231,17 @@ if selected_platform in platform_list: - if env["extra_suffix"] != '' : - env.extra_suffix += '.'+env["extra_suffix"] +@@ -247,15 +247,16 @@ if selected_platform in platform_list: + if env["extra_suffix"] != '': + env.extra_suffix += '.' + env["extra_suffix"] -- CCFLAGS = env.get('CCFLAGS', '') -- env['CCFLAGS'] = '' -+ env['CC'] = os.environ['CC'] -+ env['CXX'] = os.environ['CXX'] -+ -+ CFLAGS = os.environ['CFLAGS'] -+ env['CFLAGS'] = [] -+ env.Append(CFLAGS=string.split(str(CFLAGS))) - -+ CCFLAGS = os.environ['CXXFLAGS'] -+ env['CCFLAGS'] = [] - env.Append(CCFLAGS=string.split(str(CCFLAGS))) - -- CFLAGS = env.get('CFLAGS', '') -- env['CFLAGS'] = '' +- CCFLAGS = env.get('CCFLAGS', '') +- env['CCFLAGS'] = '' +- +- env.Append(CCFLAGS=string.split(str(CCFLAGS))) +- +- CFLAGS = env.get('CFLAGS', '') +- env['CFLAGS'] = '' - -- env.Append(CFLAGS=string.split(str(CFLAGS))) ++ env['CC'] = os.environ['CC'] ++ env['CXX'] = os.environ['CXX'] ++ ++ CFLAGS = os.environ['CFLAGS'] ++ env['CFLAGS'] = [] + env.Append(CFLAGS=string.split(str(CFLAGS))) ++ ++ CCFLAGS = os.environ['CXXFLAGS'] ++ env['CCFLAGS'] = [] ++ env.Append(CCFLAGS=string.split(str(CCFLAGS))) - LINKFLAGS = env.get('LINKFLAGS', '') - env['LINKFLAGS'] = '' + LINKFLAGS = env.get('LINKFLAGS', '') + env['LINKFLAGS'] = '' diff --git a/devel/godot/files/patch-drivers_SCsub b/devel/godot/files/patch-drivers_SCsub new file mode 100644 index 0000000..ada0563 --- /dev/null +++ b/devel/godot/files/patch-drivers_SCsub @@ -0,0 +1,11 @@ +--- drivers/SCsub.orig 2016-11-30 21:41:21 UTC ++++ drivers/SCsub +@@ -14,7 +14,7 @@ SConscript('windows/SCsub') + # Sounds drivers + SConscript('alsa/SCsub') + SConscript('pulseaudio/SCsub') +-if (env["platform"] == "windows"): ++if (env["platform"] == "windows") or (env["platform"] == "x11"): + SConscript("rtaudio/SCsub") + + # Graphics drivers diff --git a/devel/godot/files/patch-main_main.cpp b/devel/godot/files/patch-main_main.cpp deleted file mode 100644 index f181693..0000000 --- a/devel/godot/files/patch-main_main.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- main/main.cpp.orig 2016-08-09 07:52:15 UTC -+++ main/main.cpp -@@ -161,7 +161,7 @@ void Main::print_help(const char* p_bina - } - OS::get_singleton()->print(")\n"); - OS::get_singleton()->print("\t-ldpi\t : Force low-dpi mode (OSX Only)"); -- -+ OS::get_singleton()->print("\n"); - OS::get_singleton()->print("\t-ad DRIVER\t : Audio Driver ("); - for (int i=0;i<OS::get_singleton()->get_audio_driver_count();i++) { - diff --git a/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp b/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp new file mode 100644 index 0000000..b07c514 --- /dev/null +++ b/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp @@ -0,0 +1,10 @@ +--- modules/speex/audio_stream_speex.cpp.orig 2016-11-28 17:58:00 UTC ++++ modules/speex/audio_stream_speex.cpp +@@ -28,7 +28,6 @@ + /*************************************************************************/ + #include "audio_stream_speex.h" + +-#include "os_support.h" + #include "os/os.h" + #define READ_CHUNK 1024 + diff --git a/devel/godot/files/patch-platform_x11_detect.py b/devel/godot/files/patch-platform_x11_detect.py index 05dc281..49a99c6 100644 --- a/devel/godot/files/patch-platform_x11_detect.py +++ b/devel/godot/files/patch-platform_x11_detect.py @@ -1,65 +1,66 @@ ---- platform/x11/detect.py.orig 2016-08-09 07:52:15 UTC +--- platform/x11/detect.py.orig 2016-11-15 18:44:21 UTC +++ platform/x11/detect.py -@@ -30,11 +30,6 @@ def can_build(): - print("X11 not found.. x11 disabled.") - return False +@@ -31,11 +31,6 @@ def can_build(): + print("X11 not found.. x11 disabled.") + return False -- ssl_error=os.system("pkg-config openssl --modversion > /dev/null ") -- if (ssl_error): -- print("OpenSSL not found.. x11 disabled.") -- return False +- ssl_error = os.system("pkg-config openssl --modversion > /dev/null ") +- if (ssl_error): +- print("OpenSSL not found.. x11 disabled.") +- return False - - x11_error=os.system("pkg-config xcursor --modversion > /dev/null ") - if (x11_error): - print("xcursor not found.. x11 disabled.") -@@ -60,7 +55,9 @@ def get_opts(): - ('use_static_cpp','link stdc++ statically','no'), - ('use_sanitizer','Use llvm compiler sanitize address','no'), - ('use_leak_sanitizer','Use llvm compiler sanitize memory leaks','no'), -- ('pulseaudio','Detect & Use pulseaudio','yes'), -+ ('alsa','Detect & Use alsa audio','no'), -+ ('oss','Detect & Use OSS audio','no'), -+ ('pulseaudio','Detect & Use pulseaudio','no'), - ('udev','Use udev for gamepad connection callbacks','no'), - ('debug_release', 'Add debug symbols to release version','no'), - ] -@@ -141,7 +138,7 @@ def configure(env): - env.ParseConfig('pkg-config xrandr --cflags --libs') + x11_error = os.system("pkg-config xcursor --modversion > /dev/null ") + if (x11_error): + print("xcursor not found.. x11 disabled.") +@@ -61,7 +56,9 @@ def get_opts(): + ('use_static_cpp', 'link stdc++ statically', 'no'), + ('use_sanitizer', 'Use llvm compiler sanitize address', 'no'), + ('use_leak_sanitizer', 'Use llvm compiler sanitize memory leaks', 'no'), +- ('pulseaudio', 'Detect & Use pulseaudio', 'yes'), ++ ('alsa','Detect & Use alsa audio','no'), ++ ('oss','Detect & Use OSS audio','no'), ++ ('pulseaudio', 'Detect & Use pulseaudio', 'no'), + ('udev', 'Use udev for gamepad connection callbacks', 'no'), + ('debug_release', 'Add debug symbols to release version', 'no'), + ] +@@ -134,7 +131,7 @@ def configure(env): + env.ParseConfig('pkg-config xrandr --cflags --libs') - if (env["openssl"]=="yes"): -- env.ParseConfig('pkg-config openssl --cflags --libs') -+ env.ParseConfig('echo -lssl -lcrypto') + if (env['builtin_openssl'] == 'no'): +- env.ParseConfig('pkg-config openssl --cflags --libs') ++ env.ParseConfig('echo -lssl -lcrypto') + if (env['builtin_libwebp'] == 'no'): + env.ParseConfig('pkg-config libwebp --cflags --libs') +@@ -173,12 +170,13 @@ def configure(env): + if (env['builtin_glew'] == 'no'): + env.ParseConfig('pkg-config glew --cflags --libs') - if (env["freetype"]=="yes"): -@@ -152,12 +149,13 @@ def configure(env): +- if os.system("pkg-config --exists alsa") == 0: +- print("Enabling ALSA") +- env.Append(CPPFLAGS=["-DALSA_ENABLED"]) +- env.ParseConfig('pkg-config alsa --cflags --libs') +- else: +- print("ALSA libraries not found, disabling driver") ++ if (env["alsa"]=="yes"): ++ if os.system("pkg-config --exists alsa")==0: ++ print("Enabling ALSA") ++ env.Append(CPPFLAGS=["-DALSA_ENABLED"]) ++ env.Append(LIBS=['asound']) ++ else: ++ print("ALSA libraries not found, disabling driver") - env.Append(CPPFLAGS=['-DOPENGL_ENABLED']) + if (platform.system() == "Linux"): + env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"]) +@@ -193,6 +191,11 @@ def configure(env): + else: + print("libudev development libraries not found, disabling udev support") -- if os.system("pkg-config --exists alsa")==0: -- print("Enabling ALSA") -- env.Append(CPPFLAGS=["-DALSA_ENABLED"]) -- env.Append(LIBS=['asound']) -- else: -- print("ALSA libraries not found, disabling driver") -+ if (env["alsa"]=="yes"): -+ if os.system("pkg-config --exists alsa")==0: -+ print("Enabling ALSA") -+ env.Append(CPPFLAGS=["-DALSA_ENABLED"]) -+ env.Append(LIBS=['asound']) -+ else: -+ print("ALSA libraries not found, disabling driver") - - if (platform.system() == "Linux"): - env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"]) -@@ -172,6 +170,10 @@ def configure(env): - else: - print("libudev development libraries not found, disabling udev support") - -+ if (env["oss"]=="yes"): -+ print("Enabling OSS Audio") -+ env.Append(CPPFLAGS=["-DOSS_ENABLED"]) ++ if (env["oss"]=="yes"): ++ print("Enabling OSS Audio") ++ env.Append(CPPFLAGS=["-DOSS_ENABLED"]) ++ env.Append(CCFLAGS=['-Ithirdparty/rtaudio']) + - if (env["pulseaudio"]=="yes"): - if not os.system("pkg-config --exists libpulse-simple"): - print("Enabling PulseAudio") + if (env["pulseaudio"] == "yes"): + if not os.system("pkg-config --exists libpulse-simple"): + print("Enabling PulseAudio") diff --git a/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp b/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp index c211e2e..02dd714 100644 --- a/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp +++ b/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp @@ -1,5 +1,5 @@ ---- drivers/rtaudio/RtAudio.cpp.orig 2016-08-09 07:52:15 UTC -+++ drivers/rtaudio/RtAudio.cpp +--- thirdparty/rtaudio/RtAudio.cpp.orig 2016-08-09 07:52:15 UTC ++++ thirdparty/rtaudio/RtAudio.cpp @@ -8589,6 +8589,12 @@ bool RtApiPulse::probeDeviceOpen( unsign #include <errno.h> #include <math.h> diff --git a/devel/godot/files/patch-drivers_rtaudio_RtAudio.h b/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h index 5eb1b84..010a822 100644 --- a/devel/godot/files/patch-drivers_rtaudio_RtAudio.h +++ b/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h @@ -1,5 +1,5 @@ ---- drivers/rtaudio/RtAudio.h.orig 2016-08-09 07:52:15 UTC -+++ drivers/rtaudio/RtAudio.h +--- thirdparty/rtaudio/RtAudio.h.orig 2016-08-09 07:52:15 UTC ++++ thirdparty/rtaudio/RtAudio.h @@ -5,7 +5,13 @@ #if defined(OSX_ENABLED) #define __MACOSX_CORE__ |