summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-12-09 22:15:42 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-12-09 22:15:42 +0000
commit2df09c7bd31027dda23a681c4d9a00ebaf979767 (patch)
treead9ca9da078a0654651ea9a5eba382d20678beb4
parentadding manifests and digests to ec2 ami tools (diff)
downloadliquidx-2df09c7bd31027dda23a681c4d9a00ebaf979767.tar.gz
liquidx-2df09c7bd31027dda23a681c4d9a00ebaf979767.tar.bz2
liquidx-2df09c7bd31027dda23a681c4d9a00ebaf979767.zip
Adding fixed versions of gpac for non-X11 environments
svn path=/; revision=88
-rw-r--r--media-video/gpac/Manifest17
-rw-r--r--media-video/gpac/files/digest-gpac-0.4.2-r9912
-rw-r--r--media-video/gpac/files/digest-gpac-99991
-rw-r--r--media-video/gpac/gpac-0.4.2-r99.ebuild146
4 files changed, 172 insertions, 4 deletions
diff --git a/media-video/gpac/Manifest b/media-video/gpac/Manifest
index fa5b45f..f48d474 100644
--- a/media-video/gpac/Manifest
+++ b/media-video/gpac/Manifest
@@ -2,6 +2,14 @@ AUX gpac-configure-ogg.patch 953 RMD160 4b3123affdca748728122a19d919bc3b0e8ed587
MD5 98d9c034d753c5a188664a96c935eee9 files/gpac-configure-ogg.patch 953
RMD160 4b3123affdca748728122a19d919bc3b0e8ed587 files/gpac-configure-ogg.patch 953
SHA256 3bbc6314361eb82d15671ce0c0dc2bab82fea5dd3819ecc7e45825f0e452d7b3 files/gpac-configure-ogg.patch 953
+DIST 26104-610.zip 292640 RMD160 84b2642709ca072c30658a71a6d8bec50fceb2fe SHA1 7ee6dcb29e2a28f905befd87857ce07a7062fa5b SHA256 8dc9453f9b93202247b4800a1d946ae6eaa3b9d0c48237ae8848144feb88399e
+DIST 26204-600.zip 255764 RMD160 d85a1879e60deeaa9b371646a1d43dd07ae07777 SHA1 fe0746e0456abe9285a54f0c3fd8e20598ee0408 SHA256 01513a7ae5d26ff16a37fba5deec2994a1992829180b4a15d9c646c51eb8fcdb
+DIST gpac-0.4.2-patches.tar.bz2 3899 RMD160 42f9de741f27ca2a942728640582978a497e8721 SHA1 d29abbb5d1aa563e95e45647b5b265bdbbe21a9b SHA256 d0316a55dfc6077437645b8b11a6b0f77ff9d896efd31c8b6fae4d827e7e0e84
+DIST gpac-0.4.2.tar.gz 3916608 RMD160 17d2691651b633497ae96ec71912cfafa864c90a SHA1 800db66f33849886888b24414fb580eaa034a134 SHA256 0e300b02824f12767e5fa0c70b138b6a17375c3d6000aea2568464a9bb1cd956
+EBUILD gpac-0.4.2-r99.ebuild 4049 RMD160 71741d7e76d8dad45754a6ef24f4d4022cabe95b SHA1 a107ec138f71c85d9dd7e6e76cd3c99894c6f502 SHA256 1b176728232a0836357b2f0dea7acc8ade20d5d551c5dcd417ee34c4075bd12a
+MD5 631736354970ea7a9769f8e54dca093b gpac-0.4.2-r99.ebuild 4049
+RMD160 71741d7e76d8dad45754a6ef24f4d4022cabe95b gpac-0.4.2-r99.ebuild 4049
+SHA256 1b176728232a0836357b2f0dea7acc8ade20d5d551c5dcd417ee34c4075bd12a gpac-0.4.2-r99.ebuild 4049
EBUILD gpac-9999.ebuild 3767 RMD160 30f9e1cf447d4960c6a6f1808bc6db8e42a51750 SHA1 07b836e31565ac4fd4a71c0f76f41da3976dfb81 SHA256 322b94867860947204c29c2dc7a901a48b6e542ae51817c427e6b40bab9e0939
MD5 14d25941541aa3b6316c2d7f8f5aa992 gpac-9999.ebuild 3767
RMD160 30f9e1cf447d4960c6a6f1808bc6db8e42a51750 gpac-9999.ebuild 3767
@@ -10,6 +18,9 @@ MISC CREDIT 235 RMD160 2f6fe046b58e72441eede949e8d79ac8b5c1fa05 SHA1 71054a089a0
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
+MD5 55c51bbc91cbdf60550e92e71ae627f5 files/digest-gpac-0.4.2-r99 928
+RMD160 1c9ad78dc0dba2b8cdbd9a05cfdf515a721d85ad files/digest-gpac-0.4.2-r99 928
+SHA256 397999a1e7316e095eabeb09481b0c7ef90c0917bdba649ad4e3040a093b76ce files/digest-gpac-0.4.2-r99 928
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gpac-9999 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-gpac-9999 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-gpac-9999 0
diff --git a/media-video/gpac/files/digest-gpac-0.4.2-r99 b/media-video/gpac/files/digest-gpac-0.4.2-r99
new file mode 100644
index 0000000..b12762f
--- /dev/null
+++ b/media-video/gpac/files/digest-gpac-0.4.2-r99
@@ -0,0 +1,12 @@
+MD5 cfd9012bff83afdf5ad069b86d3063b6 26104-610.zip 292640
+RMD160 84b2642709ca072c30658a71a6d8bec50fceb2fe 26104-610.zip 292640
+SHA256 8dc9453f9b93202247b4800a1d946ae6eaa3b9d0c48237ae8848144feb88399e 26104-610.zip 292640
+MD5 e78e35eabe09eea50198f1a27b81eb60 26204-600.zip 255764
+RMD160 d85a1879e60deeaa9b371646a1d43dd07ae07777 26204-600.zip 255764
+SHA256 01513a7ae5d26ff16a37fba5deec2994a1992829180b4a15d9c646c51eb8fcdb 26204-600.zip 255764
+MD5 7c40146553ab621154e52a8c43344083 gpac-0.4.2-patches.tar.bz2 3899
+RMD160 42f9de741f27ca2a942728640582978a497e8721 gpac-0.4.2-patches.tar.bz2 3899
+SHA256 d0316a55dfc6077437645b8b11a6b0f77ff9d896efd31c8b6fae4d827e7e0e84 gpac-0.4.2-patches.tar.bz2 3899
+MD5 834910b42ef007410fcc49a5acd4656b gpac-0.4.2.tar.gz 3916608
+RMD160 17d2691651b633497ae96ec71912cfafa864c90a gpac-0.4.2.tar.gz 3916608
+SHA256 0e300b02824f12767e5fa0c70b138b6a17375c3d6000aea2568464a9bb1cd956 gpac-0.4.2.tar.gz 3916608
diff --git a/media-video/gpac/files/digest-gpac-9999 b/media-video/gpac/files/digest-gpac-9999
index 8b13789..e69de29 100644
--- a/media-video/gpac/files/digest-gpac-9999
+++ b/media-video/gpac/files/digest-gpac-9999
@@ -1 +0,0 @@
-
diff --git a/media-video/gpac/gpac-0.4.2-r99.ebuild b/media-video/gpac/gpac-0.4.2-r99.ebuild
new file mode 100644
index 0000000..c6328fe
--- /dev/null
+++ b/media-video/gpac/gpac-0.4.2-r99.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/gpac-0.4.2-r1.ebuild,v 1.2 2006/11/24 17:21:57 aballier Exp $
+
+inherit eutils wxwidgets flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C."
+HOMEPAGE="http://gpac.sourceforge.net/"
+NBV="610"
+WBV="600"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://gentoo/${P}-patches.tar.bz2
+ amr? ( http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-${NBV}.zip
+ http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-${WBV}.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
+IUSE="aac amr debug ffmpeg jpeg javascript mad ogg opengl oss png sdl ssl theora truetype vorbis wxwindows xml xvid"
+
+S="${WORKDIR}/${PN}"
+
+RDEPEND="aac? ( media-libs/faad2 )
+ ffmpeg? ( media-video/ffmpeg )
+ jpeg? ( media-libs/jpeg )
+ javascript? ( dev-lang/spidermonkey )
+ mad? ( media-libs/libmad )
+ 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 )
+ xml? ( >=dev-libs/libxml2-2.6.0 )
+ xvid? ( >=media-libs/xvid-1.0.1 )
+ sdl? ( media-libs/libsdl )
+ || ( (
+ x11-libs/libXt
+ x11-libs/libX11
+ x11-libs/libXext
+ ) virtual/x11 )"
+
+DEPEND="${RDEPEND}"
+
+my_use() {
+ local flag="$1" pflag="${2:-$1}"
+ if use ${flag}; then
+ echo "--use-${pflag}=system"
+ else
+ echo "--use-${pflag}=no"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${WORKDIR}/${P}-configure-ogg.patch"
+ epatch "${WORKDIR}/${P}-DESTDIR.patch"
+ epatch "${WORKDIR}/${P}-static-defs.patch"
+ epatch "${WORKDIR}/${P}-nostrip.patch"
+ epatch "${WORKDIR}/${P}-soname.patch"
+ epatch "${WORKDIR}/${P}-ffmpeg-snapshots-compat.patch"
+ sed -ie '/ldconfig / d' "${S}/Makefile"
+
+ if use amr; then
+ cd modules/amr_float_dec
+ unzip -jaq ${WORKDIR}/26104-${NBV}_ANSI_C_source_code.zip -d amr_nb_ft
+ unzip -jaq ${WORKDIR}/26204-${WBV}_ANSI-C_source_code.zip -d amr_wb_ft
+ fi
+
+ 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
+ else
+ sed -i 's:^has_wx="yes:has_wx="no:' configure
+ fi
+
+ use !sdl && sed -i 's:^has_sdl=yes:has_sdl=no:' configure
+
+ # 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"
+
+ # make sure mozilla won't be used
+ sed -i -e 's/osmozilla//g' applications/Makefile
+
+ # use this to cute down on the warnings noise
+ append-flags -fno-strict-aliasing
+
+ # multilib libdir fix
+ sed -i 's:$(prefix)/lib:$(prefix)/'$(get_libdir)':' Makefile src/Makefile
+ sed -i 's:/lib/gpac:/'$(get_libdir)'/gpac:' configure
+
+ epatch "${WORKDIR}/${P}-pic.patch"
+
+ # only build modules/x11_out if SDL is enabled
+ sed -i -e 's:CONFIG_LINUX:CONFIG_SDL:' modules/Makefile
+}
+
+src_compile() {
+ 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
+
+ econf \
+ --enable-svg \
+ $(use_enable amr) \
+ $(use_enable debug) \
+ $(use_enable opengl) \
+ $(use_enable oss oss-audio) \
+ $(use_enable ssl) \
+ $(my_use ffmpeg) \
+ $(my_use aac faad) \
+ $(my_use jpeg) \
+ $(my_use mad) \
+ $(my_use javascript js) \
+ $(my_use png) \
+ $(my_use truetype ft) \
+ $(my_use xvid) \
+ ${myconf} || die "configure died"
+
+ make CC=$(tc-getCC) OPTFLAGS="${CFLAGS}" || die "emake failed."
+}
+
+src_install() {
+ make OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install || die
+ make OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install-lib || die
+ dodoc AUTHORS BUGS Changelog README TODO
+ dodoc doc/*.html doc/*.txt doc/libisomedia_license doc/SGGen
+}