diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2006-07-13 20:43:42 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2006-07-13 20:43:42 +0000 |
commit | 452ea9fcb0fc9c2b8a90c61d58842d07a16663cf (patch) | |
tree | 077f3604042e2bda383333a5dcddc6397b48d47c /media-video | |
parent | Mark 4.2.3.2 stable on ia64 (diff) | |
download | gentoo-2-452ea9fcb0fc9c2b8a90c61d58842d07a16663cf.tar.gz gentoo-2-452ea9fcb0fc9c2b8a90c61d58842d07a16663cf.tar.bz2 gentoo-2-452ea9fcb0fc9c2b8a90c61d58842d07a16663cf.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).
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/gpac/ChangeLog | 11 | ||||
-rw-r--r-- | media-video/gpac/files/digest-gpac-0.4.1_pre20060122-r1 | 3 | ||||
-rw-r--r-- | media-video/gpac/files/gpac-0.4.1_pre20060122-DESTDIR.patch | 96 | ||||
-rw-r--r-- | media-video/gpac/gpac-0.4.1_pre20060122-r1.ebuild | 125 |
4 files changed, 234 insertions, 1 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/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 +} |