freebsd-ports/multimedia/dvbcut/files/patch-SConstruct
Stefan Eßer 225726f71f Add dvbcut, a Qt based program for cutting of MPEG TS stream files
(e.g. DVB) and the conversion from MPEG transport stream to program
stream.
2005-12-29 00:18:05 +00:00

22 lines
525 B
Text

--- SConstruct~ Sun Dec 11 12:07:09 2005
+++ SConstruct Thu Dec 29 00:19:48 2005
@@ -38,13 +38,17 @@
###### BUILD ENVIRONMENT
+opts.Add('CFLAGS','compiler flags', "-O3 -Wall")
+opts.Add('LDFLAGS','linker flags', "")
+
env=Environment(options=opts, ENV=os.environ)
debug=int(env['DEBUG'])
if (debug>0):
env.Append(CCFLAGS=['-g3','-Wall'])
-else:
- env.Append(CCFLAGS=['-O3','-Wall'])
+env.Append(CCFLAGS=Split(env["CFLAGS"]))
+
+env.Append(LINKFLAGS=Split(env["LDFLAGS"]))
env.Replace(CXXFILESUFFIX=".cpp")