summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-08-26 12:10:05 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-08-26 12:10:05 +0000
commitdc68b3c4c4ff684f0a10eace446c5f93cacfd0c8 (patch)
treeb539ad98f7e34ff7be2a993cf9c7fdab4fe7b330
parentadding dev-python/pyfo, a pythonic xml generator using dictionary and arrays (diff)
downloadliquidx-dc68b3c4c4ff684f0a10eace446c5f93cacfd0c8.tar.gz
liquidx-dc68b3c4c4ff684f0a10eace446c5f93cacfd0c8.tar.bz2
liquidx-dc68b3c4c4ff684f0a10eace446c5f93cacfd0c8.zip
ported gpac-cvs from gentoo multimedia overlay because i need it privately. unmask using -* if you really need this.
svn path=/; revision=66
-rw-r--r--media-video/gpac/CREDIT6
-rw-r--r--media-video/gpac/Manifest15
-rw-r--r--media-video/gpac/files/digest-gpac-99991
-rw-r--r--media-video/gpac/files/gpac-configure-ogg.patch25
-rw-r--r--media-video/gpac/gpac-9999.ebuild154
5 files changed, 201 insertions, 0 deletions
diff --git a/media-video/gpac/CREDIT b/media-video/gpac/CREDIT
new file mode 100644
index 0000000..4f4cb48
--- /dev/null
+++ b/media-video/gpac/CREDIT
@@ -0,0 +1,6 @@
+http://forums.gentoo.org/viewtopic-t-382903.html
+
+From Gentoo Experiemental Media Overlay
+- Modified to work with ffmpeg-svn
+- Moved patching to src_unpack rather than src_compile
+- Changed to gpac-9999 rather than a different package
diff --git a/media-video/gpac/Manifest b/media-video/gpac/Manifest
new file mode 100644
index 0000000..fa5b45f
--- /dev/null
+++ b/media-video/gpac/Manifest
@@ -0,0 +1,15 @@
+AUX gpac-configure-ogg.patch 953 RMD160 4b3123affdca748728122a19d919bc3b0e8ed587 SHA1 b3a69363c0adfae273c25d09c6ab3ea9b17edc61 SHA256 3bbc6314361eb82d15671ce0c0dc2bab82fea5dd3819ecc7e45825f0e452d7b3
+MD5 98d9c034d753c5a188664a96c935eee9 files/gpac-configure-ogg.patch 953
+RMD160 4b3123affdca748728122a19d919bc3b0e8ed587 files/gpac-configure-ogg.patch 953
+SHA256 3bbc6314361eb82d15671ce0c0dc2bab82fea5dd3819ecc7e45825f0e452d7b3 files/gpac-configure-ogg.patch 953
+EBUILD gpac-9999.ebuild 3767 RMD160 30f9e1cf447d4960c6a6f1808bc6db8e42a51750 SHA1 07b836e31565ac4fd4a71c0f76f41da3976dfb81 SHA256 322b94867860947204c29c2dc7a901a48b6e542ae51817c427e6b40bab9e0939
+MD5 14d25941541aa3b6316c2d7f8f5aa992 gpac-9999.ebuild 3767
+RMD160 30f9e1cf447d4960c6a6f1808bc6db8e42a51750 gpac-9999.ebuild 3767
+SHA256 322b94867860947204c29c2dc7a901a48b6e542ae51817c427e6b40bab9e0939 gpac-9999.ebuild 3767
+MISC CREDIT 235 RMD160 2f6fe046b58e72441eede949e8d79ac8b5c1fa05 SHA1 71054a089a0c68d7af436db317238d56495ed376 SHA256 e1aec365153c47c2b110ff85b9d4f6a23e806ce635161ca5b2e1b00328096fe6
+MD5 b8833c3fb850b27f40624025817757d7 CREDIT 235
+RMD160 2f6fe046b58e72441eede949e8d79ac8b5c1fa05 CREDIT 235
+SHA256 e1aec365153c47c2b110ff85b9d4f6a23e806ce635161ca5b2e1b00328096fe6 CREDIT 235
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-gpac-9999 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-gpac-9999 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-gpac-9999 1
diff --git a/media-video/gpac/files/digest-gpac-9999 b/media-video/gpac/files/digest-gpac-9999
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/media-video/gpac/files/digest-gpac-9999
@@ -0,0 +1 @@
+
diff --git a/media-video/gpac/files/gpac-configure-ogg.patch b/media-video/gpac/files/gpac-configure-ogg.patch
new file mode 100644
index 0000000..257f6a1
--- /dev/null
+++ b/media-video/gpac/files/gpac-configure-ogg.patch
@@ -0,0 +1,25 @@
+--- configure.old 2006-06-12 20:55:32.000000000 -0400
++++ configure 2006-06-12 20:59:23.000000000 -0400
+@@ -143,6 +143,9 @@
+ echo " --use-mad=OPT force MAD OPT=[no,local]"
+ echo " --use-xvid=OPT force XVID OPT=[no,local]"
+ echo " --use-ffmpeg=OPT force FFMPEG OPT=[no,local]"
++echo " --use-ogg=OPT force OGG OPT=[no,system,local]"
++echo " --use-vorbis=OPT force vorbis OPT=[no,system,local]"
++echo " --use-theora=OPT force theora OPT=[no,system,local]"
+ echo ""
+ echo "NOTE: The object files are build at the place where configure is launched"
+ exit 1
+@@ -783,6 +786,12 @@
+ ;;
+ --use-jpeg=*) has_jpeg=${opt#--use-jpeg=}
+ ;;
++ --use-ogg=*) has_ogg=${opt#--use-ogg=}
++ ;;
++ --use-vorbis=*) has_vorbis=${opt#--use-vorbis=}
++ ;;
++ --use-theora=*) has_theora=${opt#--use-theora=}
++ ;;
+ --use-ffmpeg=*) has_ffmpeg=${opt#--use-ffmpeg=}
+ ;;
+ --use-png=*) has_png=${opt#--use-png=}
diff --git a/media-video/gpac/gpac-9999.ebuild b/media-video/gpac/gpac-9999.ebuild
new file mode 100644
index 0000000..3b77eb5
--- /dev/null
+++ b/media-video/gpac/gpac-9999.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit wxwidgets flag-o-matic cvs
+
+DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C."
+HOMEPAGE="http://gpac.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-*"
+IUSE="aac amr debug ffmpeg ipv6 jpeg mad mozilla ogg opengl oss png sdl ssl theora truetype vorbis wxwindows xml2 xvid"
+ECVS_SERVER="gpac.cvs.sourceforge.net:/cvsroot/gpac"
+ECVS_MODULE="gpac"
+
+S="${WORKDIR}/${ECVS_MODULE}"
+
+DEPEND="aac? ( media-libs/faad2 )
+ ffmpeg? ( media-video/ffmpeg )
+ jpeg? ( media-libs/jpeg )
+ mad? ( media-libs/libmad )
+ mozilla? ( dev-lang/spidermonkey )
+ mpeg? ( media-libs/faad2 )
+ opengl? ( virtual/opengl )
+ ogg? ( media-libs/libogg )
+ png? ( media-libs/libpng )
+ vorbis? ( media-libs/libvorbis )
+ theora? ( media-libs/libtheora )
+ truetype? ( >=media-libs/freetype-2.1 )
+ wxwindows? ( >=x11-libs/wxGTK-2.6.0 )
+ xml2? ( >=dev-libs/libxml2-2.6.0 )
+ xvid? ( >=media-libs/xvid-1.0.1 )
+ sdl? ( media-libs/libsdl )"
+
+pkg_setup() {
+ if use ffmpeg; then
+ myconf="${myconf} --use-ffmpeg=system"
+ else
+ myconf="${myconf} --use-ffmpeg=no"
+ fi
+ if use aac; then
+ myconf="${myconf} --use-faad=system"
+ else
+ myconf="${myconf} --use-faad=no"
+ fi
+ if use jpeg; then
+ myconf="${myconf} --use-jpeg=system"
+ else
+ myconf="${myconf} --use-jpeg=no"
+ fi
+ if use mad; then
+ myconf="${myconf} --use-mad=system"
+ else
+ myconf="${myconf} --use-mad=no"
+ fi
+ if use mozilla; then
+ myconf="${myconf} --use-js=system"
+ else
+ myconf="${myconf} --use-js=no"
+ fi
+ if use png; then
+ myconf="${myconf} --use-png=system"
+ else
+ myconf="${myconf} --use-png=no"
+ fi
+ if use truetype; then
+ myconf="${myconf} --use-ft=system"
+ else
+ myconf="${myconf} --use-ft=no"
+ fi
+ if use xvid; then
+ myconf="${myconf} --use-xvid=system"
+ else
+ myconf="${myconf} --use-xvid=no"
+ fi
+ if use ogg; then
+ myconf="${myconf} --use-ogg=system"
+ if use vorbis; then
+ myconf="${myconf} --use-vorbis=system"
+ fi
+ if use theora; then
+ myconf="${myconf} --use-theora=system"
+ fi
+ else
+ myconf="${myconf} --use-ogg=no"
+ fi
+}
+
+src_unpack() {
+ cvs_src_unpack
+ cd ${S}
+ chmod -R u+w .
+ epatch ${FILESDIR}/gpac-configure-ogg.patch
+
+ # fix hardcoded paths in source
+ sed -i -e \
+ "s:\([^f]\)\ M4_PLUGIN_PATH:\1 \"/usr/$(get_libdir)\":" \
+ applications/mp4client/main.c \
+ applications/osmo4_wx/wxOsmo4.cpp \
+ || die "path fixation failed"
+
+ # remove FFMPEG_VERSION
+ sed -i -e 's:FFMPEG_VERSION:"CVS":' modules/ffmpeg_in/ffmpeg_decode.c
+}
+
+src_compile() {
+ cd ${S}
+ chmod +x configure
+ # make sure configure looks for wx-2.6
+ if use wxwindows; then
+ sed -i -e 's/wx-config/wx-config-2.6/' configure
+ fi
+
+ use !sdl && sed -i 's:^has_sdl=yes:has_sdl=no:' configure
+
+ # make sure mozilla won't be used
+ if ! use mozilla; then
+ sed -i -e 's/osmozilla//g' applications/Makefile
+ fi
+
+ # use this to cut down on the warnings noise
+ append-flags -fno-strict-aliasing
+ # amd64 compile
+ [ "${ARCH}" = "amd64" ] && append-flags -fPIC
+
+ ./configure \
+ --prefix=${D}/usr \
+ --host=${CHOST} \
+ --mandir=${D}/usr/share/man \
+ --infodir=${D}/usr/share/info \
+ --datadir=${D}/usr/share \
+ --sysconfdir=${D}/etc \
+ --localstatedir=${D}/var/lib \
+ --enable-svg \
+ $(use_enable amr) \
+ $(use_enable debug) \
+ $(use_enable ipv6) \
+ $(use_enable opengl) \
+ $(use_enable oss oss-audio) \
+ $(use_enable ssl) \
+ $(use_enable wxwindows wx) \
+ ${myconf} \
+ die "configure died"
+
+ make OPTFLAGS="${CFLAGS}" || die "emake failed."
+}
+
+src_install() {
+ make OPTFLAGS="${CFLAGS}" install || die
+ make OPTLFAGS="${CFLAGS}" install-lib || die
+ dodoc AUTHORS BUGS Changelog README TODO
+ dodoc doc/*.html doc/*.txt doc/libisomedia_license doc/SGGen
+}