291176c6f2
PR: ports/156216 Submitted by: Stas Timokhin (maintainer)
26 lines
950 B
Text
26 lines
950 B
Text
--- Sconstruct.orig 2011-03-15 18:22:35.000000000 +0600
|
|
+++ Sconstruct 2011-03-22 16:06:25.000000000 +0600
|
|
@@ -47,7 +47,7 @@
|
|
|
|
env = Environment( options = opts )
|
|
|
|
- if sys.platform == "linux2" or sys.platform == "darwin":
|
|
+ if sys.platform == "linux2" or sys.platform == "darwin" or sys.platform > "freebsd":
|
|
if str(env['debug']) == "1":
|
|
cppflags += ['-Wall', '-g2', '-ggdb', '-O0']
|
|
for flag in env["optflags"].split(" "):
|
|
@@ -91,11 +91,12 @@
|
|
includes.append( '/opt/local/include' )
|
|
includes.append( '/usr/local/include/jack' )
|
|
|
|
- elif sys.platform == 'linux2':
|
|
+ elif str(env['alsa']) == "1" and sys.platform > 'freebsd' :
|
|
ldflags.append('-lpthread')
|
|
ldflags.append('-lasound')
|
|
# ldflags.append('-lrubberband')
|
|
-
|
|
+ elif sys.platform > 'freebsd' :
|
|
+ print "Alsa disabled; nothing to do"
|
|
elif sys.platform == "win32":
|
|
includes.append( '3rdparty\libsndfile-1_0_17' )
|
|
includes.append( 'build\pthreads\include' )
|