summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/gpac/ChangeLog9
-rw-r--r--media-video/gpac/Manifest11
-rw-r--r--media-video/gpac/gpac-0.4.5.ebuild143
3 files changed, 157 insertions, 6 deletions
diff --git a/media-video/gpac/ChangeLog b/media-video/gpac/ChangeLog
index 9010b88fdb50..26510b5e1264 100644
--- a/media-video/gpac/ChangeLog
+++ b/media-video/gpac/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/gpac
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.65 2008/10/05 12:48:02 aballier Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.66 2009/01/31 15:32:32 aballier Exp $
+
+*gpac-0.4.5 (31 Jan 2009)
+
+ 31 Jan 2009; Alexis Ballier <aballier@gentoo.org> +gpac-0.4.5.ebuild:
+ version bump
05 Oct 2008; Alexis Ballier <aballier@gentoo.org>
-files/gpac-0.4.2-DESTDIR.patch, -files/gpac-0.4.2-bsd.patch,
diff --git a/media-video/gpac/Manifest b/media-video/gpac/Manifest
index a8042dc94b59..d2d3a5db7cf0 100644
--- a/media-video/gpac/Manifest
+++ b/media-video/gpac/Manifest
@@ -5,13 +5,16 @@ DIST 26104-610.zip 292640 RMD160 84b2642709ca072c30658a71a6d8bec50fceb2fe SHA1 7
DIST 26204-600.zip 255764 RMD160 d85a1879e60deeaa9b371646a1d43dd07ae07777 SHA1 fe0746e0456abe9285a54f0c3fd8e20598ee0408 SHA256 01513a7ae5d26ff16a37fba5deec2994a1992829180b4a15d9c646c51eb8fcdb
DIST gpac-0.4.4-patches-6.tar.bz2 5926 RMD160 675599b6b8a401863e72c675c5627c7d0bb5502d SHA1 fdea8fe820bb81c68c2bba23895ffbef77990e87 SHA256 a6f06c796312f4db3e466b7acc567f481e02a5cf03ba13ea2538d4f8f580d4d5
DIST gpac-0.4.4.tar.gz 4375687 RMD160 3812d236d326e70ddc601786317837c1c77517f4 SHA1 99b185966632376295f4406821223f5d60d1a32c SHA256 30417b233eaada0a467e47f852383897ad6f96327fed3defbb3dc3660b934704
+DIST gpac-0.4.5-patches-1.tar.bz2 3447 RMD160 ff72fc92ca40a6b72c59ef41a258a0d079c267ce SHA1 9358a3440cdb98af2b47f6c8c3d7187c228fbb0d SHA256 eb3927b507f6dbf827ea6d6c145665fee6bb88abd84986498416f8ff3bd7e6c8
+DIST gpac-0.4.5.tar.gz 4269054 RMD160 21249249a412efa5d1237907cb6b8cfe6282e86f SHA1 2ec03c1d7dc3f4d10c0f7b47696cc1e753a56fc8 SHA256 f4039763ebec6630dc38e5e030c6573b47ced28fd009770c2e0e18b087753671
EBUILD gpac-0.4.4-r1.ebuild 3922 RMD160 52276f88d54a82cb4904dbf954c375fcbf7b3bbc SHA1 ee6254d0d4f7bcd3f6c6d13e10ec567fc09ddf04 SHA256 99f7c1d13ebd837c2440040c9d8798aae5605c6851eef011afc94918f5c23f9e
-MISC ChangeLog 9612 RMD160 99f98aa9aab64a172c8b4d1e24f861e9a768caeb SHA1 268017fe12501cc22bdbf824aef5b25e19a9ef33 SHA256 55756c303a985202f05c24e31f2d796d6b88be14c3a9619696067de0f5878b5d
+EBUILD gpac-0.4.5.ebuild 3771 RMD160 253a19aec88a947f9a4a00d67cddf6c524bd40a5 SHA1 d1c8bd04f5c3d839ac7d959643393b15f0c835cf SHA256 799073f5fafd9580a16fa990b696a01a664303d1d01908cd0e20a4343276dddb
+MISC ChangeLog 9727 RMD160 8c321b28b2d62fe2f56af4c2c3aa7ec33c6980be SHA1 42c50385faaef5cb9cbf5255898da1df8afc8788 SHA256 f7d4388f14b3c48981bc8843faf352ad6d4fe5aa5dfffffbe1c7a8185768eeb4
MISC metadata.xml 465 RMD160 32e7ff16a199c89e72a05f60849601dc1fa1452a SHA1 7740a56b8f7061ce7391cf65f5a515f76c62efe0 SHA256 501d9674a483b0ade39ea40123b20f2d332f3b69447a89389560f749fcb6a04c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkjot4gACgkQvFcC4BYPU0pecACgi9d1g72/Iwys9cY9UsN+JMYr
-c4MAnilP4DKkpGbjhoZQcf393ExNY6/c
-=Y0f+
+iEYEARECAAYFAkmEbxgACgkQvFcC4BYPU0rLewCgx71dC5bfGHRa12BYNhtDaUjo
+5t4AmwckEkMBAt5n1uZ3gNPjtIBmNViw
+=PH+9
-----END PGP SIGNATURE-----
diff --git a/media-video/gpac/gpac-0.4.5.ebuild b/media-video/gpac/gpac-0.4.5.ebuild
new file mode 100644
index 000000000000..ab1bd20fffea
--- /dev/null
+++ b/media-video/gpac/gpac-0.4.5.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/gpac-0.4.5.ebuild,v 1.1 2009/01/31 15:32:32 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"
+PATCHLEVEL="1"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://gentoo/${P}-patches-${PATCHLEVEL}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="a52 aac alsa amr debug ffmpeg ipv6 jack jpeg jpeg2k javascript mad ogg opengl oss png pulseaudio sdl ssl theora truetype vorbis wxwindows xml xvid"
+
+S="${WORKDIR}/${PN}"
+
+RDEPEND="
+ a52? ( media-libs/a52dec )
+ aac? ( >=media-libs/faad2-2.0 )
+ alsa? ( media-libs/alsa-lib )
+ amr? ( media-libs/amrnb media-libs/amrwb )
+ ffmpeg? ( media-video/ffmpeg )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jpeg? ( media-libs/jpeg )
+ javascript? ( >=dev-lang/spidermonkey-1.5 )
+ mad? ( >=media-libs/libmad-0.15.1b )
+ opengl? ( virtual/opengl virtual/glut )
+ ogg? ( >=media-libs/libogg-1.1 )
+ png? ( >=media-libs/libpng-1.2.5 )
+ vorbis? ( >=media-libs/libvorbis-1.1 )
+ theora? ( media-libs/libtheora )
+ truetype? ( >=media-libs/freetype-2.1.4 )
+ wxwindows? ( =x11-libs/wxGTK-2.8* )
+ xml? ( >=dev-libs/libxml2-2.6.0 )
+ xvid? ( >=media-libs/xvid-1.0.1 )
+ sdl? ( media-libs/libsdl )
+ jpeg2k? ( media-libs/openjpeg )
+ ssl? ( dev-libs/openssl )
+ pulseaudio? ( media-sound/pulseaudio )
+ x11-libs/libXt
+ x11-libs/libX11
+ x11-libs/libXv
+ x11-libs/libXext"
+
+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_SUFFIX="patch" epatch "${WORKDIR}/patches"
+
+ sed -ie '/ldconfig / d' "${S}/Makefile"
+
+ cd "${S}"
+
+ chmod +x configure
+ # make sure configure looks for wx-2.6
+ if use wxwindows; then
+ WX_GTK_VER=2.8
+ need-wxwidgets unicode
+ sed -i -e "s:wx-config:${WX_CONFIG}:g" configure
+ else
+ sed -i -e 's:^has_wx="yes:has_wx="no:' configure
+ fi
+
+ use sdl || sed -i 's:^has_sdl=yes:has_sdl=no:' configure
+ use alsa || sed -i 's:^has_alsa="yes":has_alsa=no:' configure
+
+ # make sure mozilla won't be used
+ sed -i -e 's/osmozilla//g' applications/Makefile
+
+ # use this to cut down on the warnings noise
+ append-flags -fno-strict-aliasing
+
+ # multilib libdir fix
+ sed -i -e 's:$(prefix)/lib:$(prefix)/'$(get_libdir)':' Makefile src/Makefile
+ sed -i -e 's:/lib/gpac:/'$(get_libdir)'/gpac:' configure
+}
+
+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
+
+ tc-export CC CXX
+
+ econf \
+ --enable-svg \
+ --enable-pic \
+ $(use_enable amr) \
+ $(use_enable debug) \
+ $(use_enable opengl) \
+ $(use_enable oss oss-audio) \
+ $(use_enable ssl) \
+ $(use_enable ipv6) \
+ $(use_enable jack)=yes \
+ $(use_enable pulseaudio)=yes \
+ $(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) \
+ $(my_use jpeg2k openjpeg) \
+ $(my_use a52) \
+ --cc="$(tc-getCC)" \
+ ${myconf} || die "configure died"
+
+ emake -j1 OPTFLAGS="${CFLAGS}" || die "emake failed."
+}
+
+src_install() {
+ emake OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install || die
+ emake OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install-lib || die
+ dodoc AUTHORS BUGS Changelog README TODO
+ dodoc doc/*.txt
+ dohtml doc/*.html
+}