summaryrefslogtreecommitdiff
path: root/media-video/ffmpeg2theora/files
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-06-14 19:42:51 +0100
committerNick White <git@njw.me.uk>2009-06-14 19:42:51 +0100
commitdb58686ea91f7276adbf68e9db40fba0a4112405 (patch)
treec1afdd244def5611db551bb25f9a319e7a2aa93b /media-video/ffmpeg2theora/files
downloadnjw-gentoo-local-db58686ea91f7276adbf68e9db40fba0a4112405.tar.bz2
njw-gentoo-local-db58686ea91f7276adbf68e9db40fba0a4112405.zip
Initial commit
Diffstat (limited to 'media-video/ffmpeg2theora/files')
-rw-r--r--media-video/ffmpeg2theora/files/libkate.ebuild.patch39
-rw-r--r--media-video/ffmpeg2theora/files/libkate.patch44
2 files changed, 83 insertions, 0 deletions
diff --git a/media-video/ffmpeg2theora/files/libkate.ebuild.patch b/media-video/ffmpeg2theora/files/libkate.ebuild.patch
new file mode 100644
index 0000000..1c92aa2
--- /dev/null
+++ b/media-video/ffmpeg2theora/files/libkate.ebuild.patch
@@ -0,0 +1,39 @@
+--- ffmpeg2theora-0.24.ebuild 2009-04-05 09:08:24.000000000 +0100
++++ ffmpeg2theora-0.24.ebuild 2009-05-27 11:24:13.000000000 +0100
+@@ -13,7 +13,7 @@ SRC_URI="http://www.v2v.cc/~j/ffmpeg2the
+ LICENSE="GPL-2"
+ SLOT="0"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+-IUSE=""
++IUSE="kate"
+
+ RDEPEND="
+ || ( <media-video/ffmpeg-9999[vhook]
+@@ -21,16 +21,24 @@ RDEPEND="
+ >=media-libs/libvorbis-1.1
+ >=media-libs/libogg-1.1
+ >=media-libs/libtheora-1.0_beta1[encode]
+- media-libs/libkate"
++ kate? ( media-libs/libkate )"
+ DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ >=dev-util/scons-1.0.0"
+
++src_unpack() {
++ unpack ${A}
++ cd "${S}"
++ epatch "${FILESDIR}/libkate.patch"
++}
++
+ src_compile() {
+- scons APPEND_CFLAGS="${CFLAGS}" APPEND_LINKFLAGS="${LDFLAGS}" || die "scons failed"
++ myconf=""
++ use kate || myconf="${myconf} libkate=no"
++ scons APPEND_CFLAGS="${CFLAGS}" APPEND_LINKFLAGS="${LDFLAGS}" ${myconf} || die "scons failed"
+ }
+
+ src_install() {
+- scons destdir="${D}" prefix=/usr mandir=PREFIX/share/man install || die "install failed"
++ scons destdir="${D}" prefix=/usr mandir=PREFIX/share/man ${myconf} install || die "install failed"
+ dodoc AUTHORS ChangeLog README TODO || die
+ }
diff --git a/media-video/ffmpeg2theora/files/libkate.patch b/media-video/ffmpeg2theora/files/libkate.patch
new file mode 100644
index 0000000..0dcb0e1
--- /dev/null
+++ b/media-video/ffmpeg2theora/files/libkate.patch
@@ -0,0 +1,44 @@
+--- SConstruct 2009-05-27 10:38:45.594552002 +0100
++++ SConstruct 2009-05-27 10:41:13.091260241 +0100
+@@ -29,6 +29,7 @@ opts.AddOptions(
+ ('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 @@ if conf.CheckCHeader('libavformat/frameh
+ ])
+
+ 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