summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg2theora/files/patch-SConstruct
blob: 3ea68362898dde2f360be0d8bb5a9d4942cead9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- SConstruct.orig	2012-06-26 02:15:16.000000000 +0900
+++ SConstruct	2012-07-04 01:17:19.000000000 +0900
@@ -37,7 +37,7 @@
   BoolVariable('libkate', 'enable libkate support', 1),
   BoolVariable('crossmingw', 'Set to 1 for crosscompile with mingw', 0)
 )
-env = Environment(options = opts)
+env = Environment(options = opts, CC = Split(os.environ['CC']))
 Help(opts.GenerateHelpText(env))
 
 pkg_flags="--cflags --libs"
@@ -151,7 +151,6 @@
       "libavcodec >= 52.30.0",
       "libpostproc",
       "libswscale",
-      "libswresample",
       "libavutil",
   ]
   if os.path.exists("./ffmpeg"):
@@ -203,6 +202,7 @@
       if conf.CheckLib('iconv'):
           env.Append(LIBS=['iconv'])
 
+  env.Append(LIBS=['m'])
   if env['crossmingw']:
       env.Append(CCFLAGS=['-Wl,-subsystem,windows'])
       env.Append(LIBS=['m'])