summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-07-13 20:43:42 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-07-13 20:43:42 +0000
commita8f37ce4858c2fc180effbe5932c3fc8161c2408 (patch)
treeb82a2f68c699e7ec611d1c3829757c3da9818f73 /media-video/gpac
parentMark 4.2.3.2 stable on ia64 (diff)
downloadhistorical-a8f37ce4858c2fc180effbe5932c3fc8161c2408.tar.gz
historical-a8f37ce4858c2fc180effbe5932c3fc8161c2408.tar.bz2
historical-a8f37ce4858c2fc180effbe5932c3fc8161c2408.zip
New revision. Rework ebuild to be less repetitive and more readable. Remove mozilla USE flag since mozilla will masked soon. Fix for multilib-strict (bug #127145).
Package-Manager: portage-2.1.1_pre2-r8
Diffstat (limited to 'media-video/gpac')
-rw-r--r--media-video/gpac/ChangeLog11
-rw-r--r--media-video/gpac/Manifest31
-rw-r--r--media-video/gpac/files/digest-gpac-0.4.1_pre20060122-r13
-rw-r--r--media-video/gpac/files/gpac-0.4.1_pre20060122-DESTDIR.patch96
-rw-r--r--media-video/gpac/gpac-0.4.1_pre20060122-r1.ebuild125
5 files changed, 250 insertions, 16 deletions
diff --git a/media-video/gpac/ChangeLog b/media-video/gpac/ChangeLog
index ad4600053ef7..43c84956655e 100644
--- a/media-video/gpac/ChangeLog
+++ b/media-video/gpac/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-video/gpac
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.19 2006/07/05 07:54:24 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.20 2006/07/13 20:43:42 chutzpah Exp $
+
+*gpac-0.4.1_pre20060122-r1 (13 Jul 2006)
+
+ 13 Jul 2006; Patrick McLean <chutzpah@gentoo.org>
+ +files/gpac-0.4.1_pre20060122-DESTDIR.patch,
+ +gpac-0.4.1_pre20060122-r1.ebuild:
+ New revision. Rework ebuild to be less repetitive and more readable. Remove
+ mozilla USE flag since mozilla will masked soon. Fix for multilib-strict
+ (bug #127145).
05 Jul 2006; Michael Sterrett <mr_bones_@gentoo.org> gpac-0.2.1.ebuild,
gpac-0.4.0.ebuild, gpac-0.4.1_pre20060122.ebuild:
diff --git a/media-video/gpac/Manifest b/media-video/gpac/Manifest
index 56bba63034f0..8abbcfbbc651 100644
--- a/media-video/gpac/Manifest
+++ b/media-video/gpac/Manifest
@@ -1,10 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX gpac-0.4.0-downloader.patch 508 RMD160 0c59dcc820dd4855c92458464fb20ded6b37eb22 SHA1 64ebd112159d4ad872421e6a9df1e85d3305397e SHA256 125115249fa40432e014a6fbf443c579b411cb20c010bd671a22d4f82b3126e7
MD5 1c649e710e682d92d42ffa69d945c8f1 files/gpac-0.4.0-downloader.patch 508
RMD160 0c59dcc820dd4855c92458464fb20ded6b37eb22 files/gpac-0.4.0-downloader.patch 508
SHA256 125115249fa40432e014a6fbf443c579b411cb20c010bd671a22d4f82b3126e7 files/gpac-0.4.0-downloader.patch 508
+AUX gpac-0.4.1_pre20060122-DESTDIR.patch 4588 RMD160 ebb99f7f8a79140fde0e934cc980ecb59a4e31d3 SHA1 e84e75a8cb6f19205ce9fc9f635d0350736edb49 SHA256 6dcae7a2c52559a7d62071b0ae91edcdd6a5ba3048a053b5cfdfbd25794a6e3a
+MD5 6d62dc94d006a431cfe3d976565dbba2 files/gpac-0.4.1_pre20060122-DESTDIR.patch 4588
+RMD160 ebb99f7f8a79140fde0e934cc980ecb59a4e31d3 files/gpac-0.4.1_pre20060122-DESTDIR.patch 4588
+SHA256 6dcae7a2c52559a7d62071b0ae91edcdd6a5ba3048a053b5cfdfbd25794a6e3a files/gpac-0.4.1_pre20060122-DESTDIR.patch 4588
AUX gpac-0.4.1_pre20060122-configure-ogg.patch 976 RMD160 6d89bac9687976a402530a44332f98524b6ccfce SHA1 f6aa32c887094c662752543c32f832dc1bcad4b2 SHA256 93b988c336d0f9e2d06ea93863108206afe528aec6361d80f527ba9521079cfe
MD5 e8838b10433f7a102853052c71313252 files/gpac-0.4.1_pre20060122-configure-ogg.patch 976
RMD160 6d89bac9687976a402530a44332f98524b6ccfce files/gpac-0.4.1_pre20060122-configure-ogg.patch 976
@@ -13,7 +14,7 @@ DIST 26104-610.zip 292640
DIST 26204-600.zip 255764
DIST gpac-0.2.1.tar.gz 2227080
DIST gpac-0.4.0.tar.gz 2836606
-DIST gpac-0.4.1_pre20060122.tar.bz2 2455736 RMD160 9bf7f5e26255edf843b5ad02e86ecd8e1740a4b4 SHA256 ff543380a2408b28df00d91611a0004ca88540af01f23a4bdc4f87eba64b531a
+DIST gpac-0.4.1_pre20060122.tar.bz2 2455736 RMD160 9bf7f5e26255edf843b5ad02e86ecd8e1740a4b4 SHA1 e0b10233c5b5a782828289e017da35c72e8d436b SHA256 ff543380a2408b28df00d91611a0004ca88540af01f23a4bdc4f87eba64b531a
DIST gpac_extra_libs-0.1.3_linux.tar.gz 7293588
EBUILD gpac-0.2.1.ebuild 2365 RMD160 b803d1191362b4567f4fe4aa9f638386dec30834 SHA1 8c7288dd47c0c76bdda7a8f957037d1dc56bae4f SHA256 d70184ffe58c0b1b5de54fafd61eca1e47783ab1ed2b2aaf067aa611346c2b12
MD5 c9b13c3d97f859170d1104a38e2fc951 gpac-0.2.1.ebuild 2365
@@ -23,14 +24,18 @@ EBUILD gpac-0.4.0.ebuild 2931 RMD160 a237b118413386818905ef21d116754ed657563c SH
MD5 ad1180ed7a633d4d70ce898b9b03d94b gpac-0.4.0.ebuild 2931
RMD160 a237b118413386818905ef21d116754ed657563c gpac-0.4.0.ebuild 2931
SHA256 f7c97c86d5b57720ce7ee30a48a93da0381f8a730aaea0b442381a4a8dc72d48 gpac-0.4.0.ebuild 2931
+EBUILD gpac-0.4.1_pre20060122-r1.ebuild 3204 RMD160 670621c070916c1285fc389064817257bcaf1142 SHA1 5dab81e3bdb2661fc0ec2de7e7308e9c83081dc2 SHA256 fe1645b85d1a93ba94b7208147e50c71bfa30fccf61276509184d417f3a905bd
+MD5 b7fe69aa18bb61ba88225ce452e5e0d9 gpac-0.4.1_pre20060122-r1.ebuild 3204
+RMD160 670621c070916c1285fc389064817257bcaf1142 gpac-0.4.1_pre20060122-r1.ebuild 3204
+SHA256 fe1645b85d1a93ba94b7208147e50c71bfa30fccf61276509184d417f3a905bd gpac-0.4.1_pre20060122-r1.ebuild 3204
EBUILD gpac-0.4.1_pre20060122.ebuild 3811 RMD160 bd0248f363244dbd662a9bcf4c2f0a53d96b3ba6 SHA1 be5aa0bd2465dc8631388d66ce93998f22ee9143 SHA256 223c7f4caea69a5db5d625f6d17819032de6bfa455143caaf37fb820eb493445
MD5 d0c6bc1e7ba9cb8708c7f23c63fab42a gpac-0.4.1_pre20060122.ebuild 3811
RMD160 bd0248f363244dbd662a9bcf4c2f0a53d96b3ba6 gpac-0.4.1_pre20060122.ebuild 3811
SHA256 223c7f4caea69a5db5d625f6d17819032de6bfa455143caaf37fb820eb493445 gpac-0.4.1_pre20060122.ebuild 3811
-MISC ChangeLog 2714 RMD160 e292a9039d7b713dd9be7cf8f81a3a42099e2513 SHA1 6cb9bec47dca99512086be3dc630885682d3a453 SHA256 f2b3972b76940b0a4cd5c35110432b74fa3e168f1614b5bc755bcf4f965ca6ba
-MD5 7c6987f644dec541d612f2a3d80ece9a ChangeLog 2714
-RMD160 e292a9039d7b713dd9be7cf8f81a3a42099e2513 ChangeLog 2714
-SHA256 f2b3972b76940b0a4cd5c35110432b74fa3e168f1614b5bc755bcf4f965ca6ba ChangeLog 2714
+MISC ChangeLog 3062 RMD160 afb69f729c7392dfcf96056531c2297b8aea62eb SHA1 bf69ddfd71cea46fc7795f57aa562c411a38888e SHA256 b2e11002b4788b2d62c2cbfff0057d938bcde0e794543e91547403ddaff70392
+MD5 944805de9ed1ec4fe2f5d6ae1e9ba613 ChangeLog 3062
+RMD160 afb69f729c7392dfcf96056531c2297b8aea62eb ChangeLog 3062
+SHA256 b2e11002b4788b2d62c2cbfff0057d938bcde0e794543e91547403ddaff70392 ChangeLog 3062
MISC metadata.xml 347 RMD160 41aa55c1c1abb3244d641ac280b0ff134fd20720 SHA1 08f88c0a9437bad24a2c6655e8e370870145c833 SHA256 702b878c0a6c23d19442ee367c51725d5f7c0a61e0c7b2a57a2708f4622ba8fc
MD5 cb378e7131783653c967c6365ca31a16 metadata.xml 347
RMD160 41aa55c1c1abb3244d641ac280b0ff134fd20720 metadata.xml 347
@@ -44,10 +49,6 @@ SHA256 18f550d15e87b514aee5db77939954b35511beaadf7be7f10ff718eeb27c2180 files/di
MD5 a6321fea8c2ef2433efe7c5d6ee26732 files/digest-gpac-0.4.1_pre20060122 274
RMD160 3b6d935f0e8606854638144a70c63d0d2cafef4e files/digest-gpac-0.4.1_pre20060122 274
SHA256 e372e8b2d3d7f27b263be4d38163966a7922e8c9143c1f72f7b906ea5ea9b437 files/digest-gpac-0.4.1_pre20060122 274
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.4 (GNU/Linux)
-
-iD8DBQFEq3A49AbAhSK0CiwRAq7/AJ4u1ta8RTYPRHYU9rIgcst1cwYjdACbB6e/
-vNjU8Zh/P9nG13p+3yL7gQ4=
-=diw9
------END PGP SIGNATURE-----
+MD5 a6321fea8c2ef2433efe7c5d6ee26732 files/digest-gpac-0.4.1_pre20060122-r1 274
+RMD160 3b6d935f0e8606854638144a70c63d0d2cafef4e files/digest-gpac-0.4.1_pre20060122-r1 274
+SHA256 e372e8b2d3d7f27b263be4d38163966a7922e8c9143c1f72f7b906ea5ea9b437 files/digest-gpac-0.4.1_pre20060122-r1 274
diff --git a/media-video/gpac/files/digest-gpac-0.4.1_pre20060122-r1 b/media-video/gpac/files/digest-gpac-0.4.1_pre20060122-r1
new file mode 100644
index 000000000000..fc220572b526
--- /dev/null
+++ b/media-video/gpac/files/digest-gpac-0.4.1_pre20060122-r1
@@ -0,0 +1,3 @@
+MD5 db0f93078d76b4b2d9c7c80dc050a218 gpac-0.4.1_pre20060122.tar.bz2 2455736
+RMD160 9bf7f5e26255edf843b5ad02e86ecd8e1740a4b4 gpac-0.4.1_pre20060122.tar.bz2 2455736
+SHA256 ff543380a2408b28df00d91611a0004ca88540af01f23a4bdc4f87eba64b531a gpac-0.4.1_pre20060122.tar.bz2 2455736
diff --git a/media-video/gpac/files/gpac-0.4.1_pre20060122-DESTDIR.patch b/media-video/gpac/files/gpac-0.4.1_pre20060122-DESTDIR.patch
new file mode 100644
index 000000000000..6259ac22c9f7
--- /dev/null
+++ b/media-video/gpac/files/gpac-0.4.1_pre20060122-DESTDIR.patch
@@ -0,0 +1,96 @@
+diff -ur gpac.orig/Makefile gpac/Makefile
+--- gpac.orig/Makefile 2006-07-13 16:17:01.000000000 -0400
++++ gpac/Makefile 2006-07-13 16:17:07.000000000 -0400
+@@ -53,14 +53,14 @@
+ ( tar zcvf ~/$(FILE).tar.gz ../gpac --exclude CVS --exclude bin --exclude lib --exclude Obj --exclude temp --exclude amr_nb --exclude amr_nb_ft --exclude amr_wb_ft --exclude *.mak --exclude *.o --exclude *.~*)
+
+ install:
+- install -d "$(prefix)/bin"
+- install $(INSTFLAGS) -m 755 bin/gcc/MP4Box "$(prefix)/bin"
+- install $(INSTFLAGS) -m 755 bin/gcc/MP42Avi "$(prefix)/bin"
++ install -d "$(DESTDIR)$(prefix)/bin"
++ install $(INSTFLAGS) -m 755 bin/gcc/MP4Box "$(DESTDIR)$(prefix)/bin"
++ install $(INSTFLAGS) -m 755 bin/gcc/MP42Avi "$(DESTDIR)$(prefix)/bin"
+ $(MAKE) -C applications install
+- install -d "$(moddir)"
+- install bin/gcc/*.$(DYN_LIB_SUFFIX) "$(moddir)"
+- rm -f $(moddir)/libgpac.$(DYN_LIB_SUFFIX)
+- rm -f $(moddir)/nposmozilla.$(DYN_LIB_SUFFIX)
++ install -d "$(DESTDIR)$(moddir)"
++ install bin/gcc/*.$(DYN_LIB_SUFFIX) "$(DESTDIR)$(moddir)"
++ rm -f $(DESTDIR)$(moddir)/libgpac.$(DYN_LIB_SUFFIX)
++ rm -f $(DESTDIR)$(moddir)/nposmozilla.$(DYN_LIB_SUFFIX)
+ ifeq ($(CONFIG_WIN32),yes)
+ install $(INSTFLAGS) -m 755 bin/gcc/libgpac.dll $(prefix)/lib
+ else
+@@ -71,16 +71,15 @@
+ install -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(prefix)/lib/libgpac-$(VERSION).$(DYN_LIB_SUFFIX)
+ ln -sf libgpac-$(VERSION).$(DYN_LIB_SUFFIX) $(prefix)/lib/libgpac.$(DYN_LIB_SUFFIX)
+ else
+- install $(INSTFLAGS) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(prefix)/lib/libgpac-$(VERSION).$(DYN_LIB_SUFFIX)
+- ln -sf libgpac-$(VERSION).$(DYN_LIB_SUFFIX) $(prefix)/lib/libgpac.$(DYN_LIB_SUFFIX)
+- ldconfig || true
++ install $(INSTFLAGS) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) "$(DESTDIR)$(prefix)/lib/libgpac-$(VERSION).$(DYN_LIB_SUFFIX)"
++ ln -sf libgpac-$(VERSION).$(DYN_LIB_SUFFIX) "$(DESTDIR)$(prefix)/lib/libgpac.$(DYN_LIB_SUFFIX)"
+ endif
+ endif
+- install -d "$(mandir)/man1"
+- install -m 644 doc/man/mp4box.1 $(mandir)/man1/
+- install -m 644 doc/man/mp42avi.1 $(mandir)/man1/
+- install -m 644 doc/man/mp4client.1 $(mandir)/man1/
+- install -m 644 doc/man/gpac.1 $(mandir)/man1/
++ install -d "$(DESTDIR)$(mandir)/man1"
++ install -m 644 doc/man/mp4box.1 $(DESTDIR)$(mandir)/man1/
++ install -m 644 doc/man/mp42avi.1 $(DESTDIR)$(mandir)/man1/
++ install -m 644 doc/man/mp4client.1 $(DESTDIR)$(mandir)/man1/
++ install -m 644 doc/man/gpac.1 $(DESTDIR)$(mandir)/man1/
+
+ uninstall:
+ $(MAKE) -C applications uninstall
+@@ -95,14 +94,14 @@
+ rm -rf $(mandir)/man1/gpac.1
+
+ install-lib:
+- mkdir -p "$(prefix)/include/gpac"
+- install -m 644 $(SRC_PATH)/include/gpac/*.h "$(prefix)/include/gpac"
+- mkdir -p "$(prefix)/include/gpac/internal"
+- install -m 644 $(SRC_PATH)/include/gpac/internal/*.h "$(prefix)/include/gpac/internal"
+- mkdir -p "$(prefix)/include/gpac/modules"
+- install -m 644 $(SRC_PATH)/include/gpac/modules/*.h "$(prefix)/include/gpac/modules"
+- mkdir -p "$(prefix)/lib"
+- install -m 644 "./bin/gcc/libgpac_static.a" "$(prefix)/lib"
++ mkdir -p "$(DESTDIR)$(prefix)/include/gpac"
++ install -m 644 $(SRC_PATH)/include/gpac/*.h "$(DESTDIR)$(prefix)/include/gpac"
++ mkdir -p "$(DESTDIR)$(prefix)/include/gpac/internal"
++ install -m 644 $(SRC_PATH)/include/gpac/internal/*.h "$(DESTDIR)$(prefix)/include/gpac/internal"
++ mkdir -p "$(DESTDIR)$(prefix)/include/gpac/modules"
++ install -m 644 $(SRC_PATH)/include/gpac/modules/*.h "$(DESTDIR)$(prefix)/include/gpac/modules"
++ mkdir -p "$(DESTDIR)$(prefix)/lib"
++ install -m 644 "./bin/gcc/libgpac_static.a" "$(DESTDIR)$(prefix)/lib"
+
+ uninstall-lib:
+ rm -rf "$(prefix)/include/gpac/internal"
+diff -ur gpac.orig/applications/mp4client/Makefile gpac/applications/mp4client/Makefile
+--- gpac.orig/applications/mp4client/Makefile 2006-07-13 16:17:01.000000000 -0400
++++ gpac/applications/mp4client/Makefile 2006-07-13 16:17:07.000000000 -0400
+@@ -41,7 +41,7 @@
+
+ install: clean
+ make -override BUILD_INSTALL=yes all
+- install -c -s -m 755 ../../bin/gcc/MP4Client "$(prefix)/bin"
++ install -c -s -m 755 ../../bin/gcc/MP4Client "$(DESTDIR)$(prefix)/bin"
+
+ uninstall:
+ rm -rf $(prefix)/bin/MP4Client
+diff -ur gpac.orig/applications/osmo4_wx/Makefile gpac/applications/osmo4_wx/Makefile
+--- gpac.orig/applications/osmo4_wx/Makefile 2006-07-13 16:17:01.000000000 -0400
++++ gpac/applications/osmo4_wx/Makefile 2006-07-13 16:17:07.000000000 -0400
+@@ -56,7 +56,7 @@
+ else
+ rm -f wxOsmo4.o
+ make -override BUILD_INSTALL=yes all
+- install -c -s -m 755 ../../bin/gcc/Osmo4 "$(prefix)/bin"
++ install -c -s -m 755 ../../bin/gcc/Osmo4 "$(DESTDIR)$(prefix)/bin"
+ endif
+
+ uninstall:
diff --git a/media-video/gpac/gpac-0.4.1_pre20060122-r1.ebuild b/media-video/gpac/gpac-0.4.1_pre20060122-r1.ebuild
new file mode 100644
index 000000000000..1c2d1e3bffe7
--- /dev/null
+++ b/media-video/gpac/gpac-0.4.1_pre20060122-r1.ebuild
@@ -0,0 +1,125 @@
+# 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.1_pre20060122-r1.ebuild,v 1.1 2006/07/13 20:43:42 chutzpah Exp $
+
+inherit wxwidgets flag-o-matic multilib
+
+DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C."
+HOMEPAGE="http://gpac.sourceforge.net/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="aac amr debug faad ffmpeg ft jpeg js 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 )
+ 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"
+ if use ${flag}; then
+ echo "--use-${flag}=system"
+ else
+ echo "--use-${flag}=no"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch "${FILESDIR}/${P}-configure-ogg.patch"
+ epatch "${FILESDIR}/${P}-DESTDIR.patch"
+ chmod +x configure
+}
+
+src_compile() {
+ # 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
+
+ # amd64 compile
+ [ "${ARCH}" = "amd64" ] && append-flags -fPIC
+
+ # multilib libdir fix
+ sed -i 's:$(prefix)/lib:$(prefix)/'$(get_libdir)':' Makefile src/Makefile
+ sed -i 's:/lib/gpac:/'$(get_libdir)'/gpac:' configure
+
+ 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 faad) \
+ $(my_use jpeg) \
+ $(my_use mad) \
+ $(my_use js) \
+ $(my_use png) \
+ $(my_use ft) \
+ $(my_use xvid) \
+ ${myconf} || die "configure died"
+
+ make 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
+}