Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2017 18:33:11 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432641 - in head/devel/godot: . files
Message-ID:  <201701281833.v0SIXBMh019944@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Jan 28 18:33:11 2017
New Revision: 432641
URL: https://svnweb.freebsd.org/changeset/ports/432641

Log:
  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)

Added:
  head/devel/godot/files/patch-drivers_SCsub   (contents, props changed)
  head/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp   (contents, props changed)
  head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp   (contents, props changed)
     - copied, changed from r432640, head/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp
  head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h   (contents, props changed)
     - copied, changed from r432640, head/devel/godot/files/patch-drivers_rtaudio_RtAudio.h
Deleted:
  head/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp
  head/devel/godot/files/patch-drivers_rtaudio_RtAudio.h
  head/devel/godot/files/patch-main_main.cpp
Modified:
  head/devel/godot/Makefile   (contents, props changed)
  head/devel/godot/distinfo   (contents, props changed)
  head/devel/godot/files/patch-SConstruct   (contents, props changed)
  head/devel/godot/files/patch-platform_x11_detect.py   (contents, props changed)

Modified: head/devel/godot/Makefile
==============================================================================
--- head/devel/godot/Makefile	Sat Jan 28 18:22:31 2017	(r432640)
+++ head/devel/godot/Makefile	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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 scon
 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" "${COMMEN
 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}
 

Modified: head/devel/godot/distinfo
==============================================================================
--- head/devel/godot/distinfo	Sat Jan 28 18:22:31 2017	(r432640)
+++ head/devel/godot/distinfo	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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

Modified: head/devel/godot/files/patch-SConstruct
==============================================================================
--- head/devel/godot/files/patch-SConstruct	Sat Jan 28 18:22:31 2017	(r432640)
+++ head/devel/godot/files/patch-SConstruct	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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'] = ''

Added: head/devel/godot/files/patch-drivers_SCsub
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/godot/files/patch-drivers_SCsub	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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

Added: head/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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
+ 

Modified: head/devel/godot/files/patch-platform_x11_detect.py
==============================================================================
--- head/devel/godot/files/patch-platform_x11_detect.py	Sat Jan 28 18:22:31 2017	(r432640)
+++ head/devel/godot/files/patch-platform_x11_detect.py	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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
- 
--        ssl_error=os.system("pkg-config openssl --modversion > /dev/null ")
--        if (ssl_error):
--                print("OpenSSL 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
 -
- 	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')
- 
- 	if (env["openssl"]=="yes"):
--		env.ParseConfig('pkg-config openssl --cflags --libs')
-+		env.ParseConfig('echo -lssl -lcrypto')
- 
- 
- 	if (env["freetype"]=="yes"):
-@@ -152,12 +149,13 @@ def configure(env):
- 
- 	env.Append(CPPFLAGS=['-DOPENGL_ENABLED'])
- 
--	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"])
+     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['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 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")
+ 
+     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 (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")

Copied and modified: head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp (from r432640, head/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp)
==============================================================================
--- head/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp	Sat Jan 28 18:22:31 2017	(r432640, copy source)
+++ head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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>

Copied and modified: head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h (from r432640, head/devel/godot/files/patch-drivers_rtaudio_RtAudio.h)
==============================================================================
--- head/devel/godot/files/patch-drivers_rtaudio_RtAudio.h	Sat Jan 28 18:22:31 2017	(r432640, copy source)
+++ head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h	Sat Jan 28 18:33:11 2017	(r432641)
@@ -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__



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701281833.v0SIXBMh019944>