aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2019-10-03 03:51:23 +0800
committersunpoet <sunpoet@FreeBSD.org>2019-10-03 03:51:23 +0800
commit0a8aa7bae4cc854df9618bb7a8b0cbe8ba989e66 (patch)
treeb183d02ece363a552d85b6836277e6240d1540a7 /lang
parent5390afb46e7bc01b74da1d3ad8b79597ca45d72b (diff)
downloadfreebsd-ports-gnome-0a8aa7bae4cc854df9618bb7a8b0cbe8ba989e66.tar.gz
freebsd-ports-gnome-0a8aa7bae4cc854df9618bb7a8b0cbe8ba989e66.tar.zst
freebsd-ports-gnome-0a8aa7bae4cc854df9618bb7a8b0cbe8ba989e66.zip
Fix build with scons 3.1.1
PR: 240584 Exp-run by: antoine
Diffstat (limited to 'lang')
-rw-r--r--lang/tolua++/files/patch-SConstruct28
1 files changed, 24 insertions, 4 deletions
diff --git a/lang/tolua++/files/patch-SConstruct b/lang/tolua++/files/patch-SConstruct
index 648dbe164ae6..f0856026d593 100644
--- a/lang/tolua++/files/patch-SConstruct
+++ b/lang/tolua++/files/patch-SConstruct
@@ -1,6 +1,26 @@
---- SConstruct.orig 2006-04-10 13:45:44.000000000 +0400
-+++ SConstruct 2008-08-22 01:43:56.000000000 +0400
-@@ -17,6 +17,7 @@
+--- SConstruct.orig 2008-04-21 00:05:35 UTC
++++ SConstruct
+@@ -7,21 +7,22 @@ if os.name == 'nt':
+
+ env = Environment(tools = tools)
+
+-options_file = None
++variables_file = None
+ if sys.platform == 'linux2':
+- options_file = "linux"
++ variables_file = "linux"
+
+ elif 'msvc' in env['TOOLS']:
+- options_file = "msvc"
++ variables_file = "msvc"
+ else:
+- options_file = "posix"
++ variables_file = "posix"
+
+-opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
++opts = Variables(["config_"+variables_file+".py", "custom.py", "custom_"+variables_file+".py"], ARGUMENTS)
+ opts.Add('CC', 'The C compiler.')
+ opts.Add('CXX', 'The C++ compiler (for the tests)')
opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])
opts.Add('LINK', 'The linker.')
opts.Add('LINKFLAGS', 'Linker flags.', [])
@@ -8,7 +28,7 @@
opts.Add('no_cygwin', 'Use -mno-cygwin to build using the mingw compiler on cygwin', 0)
opts.Add('LIBS', 'libraries', [])
opts.Add('LIBPATH', 'library path', [])
-@@ -128,7 +129,9 @@
+@@ -145,7 +146,9 @@ Files will be installed on <prefix>/bin,
########### end of helper builders
env['CPPPATH'] = '#/include'