[xiph-commits] r16052 - trunk/ffmpeg2theora
j at svn.xiph.org
j at svn.xiph.org
Wed May 27 03:21:42 PDT 2009
Author: j
Date: 2009-05-27 03:21:37 -0700 (Wed, 27 May 2009)
New Revision: 16052
Modified:
trunk/ffmpeg2theora/SConstruct
Log:
make libkate optional, patch by Nick White
Modified: trunk/ffmpeg2theora/SConstruct
===================================================================
--- trunk/ffmpeg2theora/SConstruct 2009-05-27 05:00:06 UTC (rev 16051)
+++ trunk/ffmpeg2theora/SConstruct 2009-05-27 10:21:37 UTC (rev 16052)
@@ -29,6 +29,7 @@
('destdir', 'extra install time prefix', ''),
('APPEND_CCFLAGS', 'Additional C/C++ compiler flags'),
('APPEND_LINKFLAGS', 'Additional linker flags'),
+ BoolOption('libkate', 'enable libkate support', 1),
BoolOption('crossmingw', 'Set to 1 for crosscompile with mingw', 0)
)
env = Environment(options = opts)
@@ -134,19 +135,20 @@
])
KATE_LIBS="oggkate"
-if os.path.exists("./libkate/misc/pkgconfig"):
- os.environ['PKG_CONFIG_PATH'] = "./libkate/misc/pkgconfig:" + os.environ.get('PKG_CONFIG_PATH', '')
-if os.path.exists("./libkate/pkg/pkgconfig"):
- os.environ['PKG_CONFIG_PATH'] = "./libkate/pkg/pkgconfig:" + os.environ.get('PKG_CONFIG_PATH', '')
-if conf.CheckPKG(KATE_LIBS):
- ParsePKGConfig(env, KATE_LIBS)
- env.Append(CCFLAGS=['-DHAVE_KATE', '-DHAVE_OGGKATE'])
-else:
- print """
- Could not find libkate. Subtitles support will be disabled.
- You can also run ./get_libkate.sh (for more information see INSTALL)
- or update PKG_CONFIG_PATH to point to libkate's source folder
- """
+if env['libkate']:
+ if os.path.exists("./libkate/misc/pkgconfig"):
+ os.environ['PKG_CONFIG_PATH'] = "./libkate/misc/pkgconfig:" + os.environ.get('PKG_CONFIG_PATH', '')
+ if os.path.exists("./libkate/pkg/pkgconfig"):
+ os.environ['PKG_CONFIG_PATH'] = "./libkate/pkg/pkgconfig:" + os.environ.get('PKG_CONFIG_PATH', '')
+ if conf.CheckPKG(KATE_LIBS):
+ ParsePKGConfig(env, KATE_LIBS)
+ env.Append(CCFLAGS=['-DHAVE_KATE', '-DHAVE_OGGKATE'])
+ else:
+ print """
+ Could not find libkate. Subtitles support will be disabled.
+ You can also run ./get_libkate.sh (for more information see INSTALL)
+ or update PKG_CONFIG_PATH to point to libkate's source folder
+ """
env = conf.Finish()
# ffmpeg2theora
More information about the commits
mailing list