| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-ac,v 1.4 2009/12/30 13:19:58 joerg Exp $ | | 1 | $NetBSD: patch-ac,v 1.5 2012/02/07 21:17:49 sbd Exp $ |
2 | | | 2 | |
3 | --- SConstruct.orig 2006-03-15 15:22:43.000000000 +0000 | | 3 | --- SConstruct.orig 2006-03-15 15:22:43.000000000 +0000 |
4 | +++ SConstruct | | 4 | +++ SConstruct |
5 | @@ -50,6 +50,10 @@ def today(): | | 5 | @@ -50,6 +50,10 @@ def today(): |
6 | def getPlatform(): | | 6 | def getPlatform(): |
7 | if sys.platform[:5] == 'linux': | | 7 | if sys.platform[:5] == 'linux': |
8 | return 'linux' | | 8 | return 'linux' |
9 | + elif sys.platform[:6] == 'netbsd': | | 9 | + elif sys.platform[:6] == 'netbsd': |
10 | + return 'netbsd' | | 10 | + return 'netbsd' |
11 | + elif sys.platform[:9] == 'dragonfly': | | 11 | + elif sys.platform[:9] == 'dragonfly': |
12 | + return 'dragonfly' | | 12 | + return 'dragonfly' |
13 | elif sys.platform[:3] == 'win': | | 13 | elif sys.platform[:3] == 'win': |
14 | return 'mingw' | | 14 | return 'mingw' |
| @@ -88,27 +88,27 @@ $NetBSD: patch-ac,v 1.4 2009/12/30 13:19 | | | @@ -88,27 +88,27 @@ $NetBSD: patch-ac,v 1.4 2009/12/30 13:19 |
88 | + guiProgramEnvironment.Append(LINKFLAGS = ['-pthread']) | | 88 | + guiProgramEnvironment.Append(LINKFLAGS = ['-pthread']) |
89 | + else: | | 89 | + else: |
90 | + csoundProgramEnvironment.Append(LIBS = ['pthread', 'm']) | | 90 | + csoundProgramEnvironment.Append(LIBS = ['pthread', 'm']) |
91 | + vstEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm']) | | 91 | + vstEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm']) |
92 | + guiProgramEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm']) | | 92 | + guiProgramEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm']) |
93 | if getPlatform() == 'darwin': | | 93 | if getPlatform() == 'darwin': |
94 | csoundProgramEnvironment.Append(LINKFLAGS = Split(''' | | 94 | csoundProgramEnvironment.Append(LINKFLAGS = Split(''' |
95 | -framework Carbon -framework CoreAudio -framework CoreMidi | | 95 | -framework Carbon -framework CoreAudio -framework CoreMidi |
96 | @@ -989,7 +1021,7 @@ makePlugin(pluginEnvironment, 'stdopcod' | | 96 | @@ -989,7 +1021,7 @@ makePlugin(pluginEnvironment, 'stdopcod' |
97 | pluginLibraries.append('opcodes.dir') | | 97 | pluginLibraries.append('opcodes.dir') |
98 | MacOSX_InstallPlugin('opcodes.dir') | | 98 | MacOSX_InstallPlugin('opcodes.dir') |
99 | | | 99 | |
100 | -if getPlatform() == 'linux' or getPlatform() == 'darwin': | | 100 | -if getPlatform() == 'linux' or getPlatform() == 'darwin': |
101 | +if getPlatform() == 'linux' or getPlatform() == 'darwin' or getPlatform == 'netbsd' or getPlatform == 'dragonfly': | | 101 | +if getPlatform() == 'linux' or getPlatform() == 'darwin' or getPlatform() == 'netbsd' or getPlatform() == 'dragonfly': |
102 | makePlugin(pluginEnvironment, 'control', ['Opcodes/control.c']) | | 102 | makePlugin(pluginEnvironment, 'control', ['Opcodes/control.c']) |
103 | makePlugin(pluginEnvironment, 'ftest', ['Opcodes/ftest.c']) | | 103 | makePlugin(pluginEnvironment, 'ftest', ['Opcodes/ftest.c']) |
104 | makePlugin(pluginEnvironment, 'mixer', ['Opcodes/mixer.cpp']) | | 104 | makePlugin(pluginEnvironment, 'mixer', ['Opcodes/mixer.cpp']) |
105 | @@ -1042,6 +1074,13 @@ else: | | 105 | @@ -1042,6 +1074,13 @@ else: |
106 | -framework Carbon -framework CoreAudio -framework CoreMidi | | 106 | -framework Carbon -framework CoreAudio -framework CoreMidi |
107 | -framework ApplicationServices | | 107 | -framework ApplicationServices |
108 | ''')) | | 108 | ''')) |
109 | + elif getPlatform() == 'netbsd': | | 109 | + elif getPlatform() == 'netbsd': |
110 | + widgetsEnvironment.ParseConfig('fltk-config --use-images --cflags --cxxflags --ldflags') | | 110 | + widgetsEnvironment.ParseConfig('fltk-config --use-images --cflags --cxxflags --ldflags') |
111 | + widgetsEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm']) | | 111 | + widgetsEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm']) |
112 | + elif getPlatform() == 'dragonfly': | | 112 | + elif getPlatform() == 'dragonfly': |
113 | + widgetsEnvironment.ParseConfig('fltk-config --use-images --cflags --cxxflags --ldflags') | | 113 | + widgetsEnvironment.ParseConfig('fltk-config --use-images --cflags --cxxflags --ldflags') |
114 | + widgetsEnvironment.Append(LIBS = ['stdc++', 'm']) | | 114 | + widgetsEnvironment.Append(LIBS = ['stdc++', 'm']) |