summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch')
-rw-r--r--net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch b/net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch
new file mode 100644
index 000000000..717087505
--- /dev/null
+++ b/net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch
@@ -0,0 +1,53 @@
+--- SConstruct.bkp 2006-09-17 22:41:56.000000000 +0200
++++ SConstruct 2006-09-17 23:36:47.000000000 +0200
+@@ -34,8 +34,7 @@
+ opts.Add(ListOption('MULOG', 'Set debug output', '', ['debug', 'cycle', 'calltrace', 'traffictime']))
+ opts.Add(ListOption('MUSEEQTRANSLATIONS', 'Build translations for', '', ['fr','de','es','it','pl','ru','pt_BR','ja','zh','sk','he', 'ar', 'cs' ]))
+ print "Reading CFLAGS from defaults.py and Command Line arguments"
+-opts.Add(ListOption('CFLAGS', 'Set your CCFLAGS here', '', ['fPIC', 'Wall', 'pipe', "g", "O0", "O1", "O2", "O3", "funrollloop", "Os", "fomit-frame-pointer"]))
+-# New CCFLAGS must be added to the above option, or you'll just get error messages
++opts.Add('CFLAGS', 'Set your CCFLAGS here', '')
+ opts.Add(BoolOption('EPOLL', 'Use epoll when available', ''))
+ opts.Add(BoolOption('MUCOUS', 'Install Mucous (when SWIG can be found', ''))
+ opts.Add(BoolOption('MUSETUPGTK', 'Install Musetup-GTK', ''))
+@@ -103,20 +102,9 @@
+ # env['CFLAGS'] = ['-fPIC', '-Wall', '-pipe'] # allows x86_64 to compile
+ # ['-Wall', '-pipe']) # original
+ flags = []
+- for flag in str(env['CFLAGS']).split(','):
+- flags.append("-"+flag)
+- env.Append(CCFLAGS = flags)
++ env.Append(CCFLAGS = env['CFLAGS'].split(' '))
+
+- if env['RELEASE'] and "-fomit-frame-pointer" not in env["CCFLAGS"]:
+- env.Append(CCFLAGS = ['-fomit-frame-pointer'])
+- if env['PROFILE'] and "-pg" not in env["CCFLAGS"]:
+- env.Append(CCFLAGS = ['-pg'])
+- if not env['RELEASE'] and not env['PROFILE'] and "-g" not in env["CCFLAGS"]:
+- env.Append(CCFLAGS = ['-g'])
+- flagstring =""
+- for i in env["CCFLAGS"]:
+- flagstring += i + " "
+- print "BUILDING with CCFLAGS: "+ flagstring
++ print "BUILDING with CFLAGS: "+ env['CFLAGS']
+
+
+ # Set up additional include and library paths
+@@ -185,7 +173,7 @@
+ print "Couldn't figure out how to use the dynamic run-time linker"
+ Exit(1)
+ env.Replace(LIBS = libs)
+- env.Append(CCFLAGS = ['-fPIC'])
++ env.Append(CCFLAGS = ' -fPIC')
+
+
+ if check_deps == 1:
+@@ -390,7 +378,7 @@
+ f.write('BUILDDIR = %s\n' % (`env['BUILDDIR']`))
+ f.write('RELEASE = %s\n' % (`env['RELEASE']`))
+ f.write('MULOG = %s\n' % (`string.join(env['MULOG'], ',')`))
+-f.write('CFLAGS = %s\n' % (`string.join(env['CFLAGS'], ',')`))
++f.write('CFLAGS = %s\n' % (`env['CFLAGS']`))
+ f.write('EPOLL = %s\n' % (`env['EPOLL']`))
+ f.write('RELAY = %s\n' % (`env['RELAY']`))
+ f.write('BINRELOC = %s\n' % (`env['BINRELOC']`))