diff options
-rw-r--r-- | media-video/ffmpeg/ChangeLog | 8 | ||||
-rw-r--r-- | media-video/ffmpeg/Manifest | 18 | ||||
-rw-r--r-- | media-video/ffmpeg/ffmpeg-0.4.9_p20050906.ebuild | 162 | ||||
-rw-r--r-- | media-video/ffmpeg/files/digest-ffmpeg-0.4.9_p20050906 | 1 |
4 files changed, 180 insertions, 9 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index ff1077677f75..2728dad8b458 100644 --- a/media-video/ffmpeg/ChangeLog +++ b/media-video/ffmpeg/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-video/ffmpeg # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.86 2005/08/26 16:00:51 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.87 2005/09/08 14:27:00 lu_zero Exp $ + +*ffmpeg-0.4.9_p20050906 (08 Sep 2005) + + 08 Sep 2005; Luca Barbato <lu_zero@gentoo.org> + +ffmpeg-0.4.9_p20050906.ebuild: + New snapshot, src_test added. 26 Aug 2005; Seemant Kulleen <seemant@gentoo.org> ffmpeg-0.4.9_p20050226-r5.ebuild: diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 296aa90050b7..fd740f2fc2fc 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -1,17 +1,19 @@ -MD5 01acd497041dbdc9aa6e35fdc735b27c ChangeLog 13607 -MD5 c57ec7ef531e1088a91de5d6d9ba1dfa ffmpeg-0.4.8.ebuild 2430 MD5 7300a7b361fa9f48e37722c6952bd432 metadata.xml 158 +MD5 e5006d7ad05d13c216b0bfa66da8f4fa ffmpeg-0.4.9_p20050906.ebuild 4750 +MD5 c57ec7ef531e1088a91de5d6d9ba1dfa ffmpeg-0.4.8.ebuild 2430 +MD5 5cf4c412dc53b728b65176157636473f ffmpeg-0.4.9_p20050226-r5.ebuild 4539 MD5 bb5094085c4fff51dc773d7735117475 ffmpeg-0.4.9_p20050226-r3.ebuild 4393 +MD5 75a016a298a44508a75f228e2e44e4fd ChangeLog 13762 MD5 437df7598487b85a8678e49317d897b1 ffmpeg-0.4.9_pre1-r1.ebuild 4065 -MD5 5cf4c412dc53b728b65176157636473f ffmpeg-0.4.9_p20050226-r5.ebuild 4539 -MD5 0a76b7a4442aea90d56ac85508b2eff5 files/digest-ffmpeg-0.4.8 65 +MD5 e16a2db90cc2c151bdba748297e137dd files/digest-ffmpeg-0.4.9_pre1-r1 70 +MD5 e592f1aa79ce0d709ac4980404956e87 files/ffmpeg-a52.patch 1111 +MD5 b4ecc62e882107f766cf621bfc6c7e20 files/ffmpeg-osx.patch 5940 MD5 f0c54c934c78216a2bd0b157028a6f84 files/gentoo-ffmpeg001.patch 752 +MD5 39cf7a98d0f59cfde5b82ab7fedf19d0 files/digest-ffmpeg-0.4.9_p20050906 73 MD5 b1cd277309faaaa03e3dafb3b89b2a09 files/ffmpeg-libdir-pic.patch 6027 +MD5 0a76b7a4442aea90d56ac85508b2eff5 files/digest-ffmpeg-0.4.8 65 MD5 99176b97ac8dd94ffc1d23961cc54906 files/digest-ffmpeg-0.4.9_p20050226-r3 73 MD5 20274823abfde904ae73478349585dd0 files/ffmpeg-0.4.9_p20050226-gcc4.patch 2319 -MD5 99176b97ac8dd94ffc1d23961cc54906 files/digest-ffmpeg-0.4.9_p20050226-r5 73 -MD5 e592f1aa79ce0d709ac4980404956e87 files/ffmpeg-a52.patch 1111 MD5 1a8c0be3a5a5ba1d929b7773265943b7 files/ffmpeg-missing_links.patch 1199 MD5 003b0062185efcb0ea5a6115fa8a646a files/0.4.8-gcc3.4-magicF2W.patch 994 -MD5 e16a2db90cc2c151bdba748297e137dd files/digest-ffmpeg-0.4.9_pre1-r1 70 -MD5 b4ecc62e882107f766cf621bfc6c7e20 files/ffmpeg-osx.patch 5940 +MD5 99176b97ac8dd94ffc1d23961cc54906 files/digest-ffmpeg-0.4.9_p20050226-r5 73 diff --git a/media-video/ffmpeg/ffmpeg-0.4.9_p20050906.ebuild b/media-video/ffmpeg/ffmpeg-0.4.9_p20050906.ebuild new file mode 100644 index 000000000000..b05d6e5d655a --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-0.4.9_p20050906.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20050906.ebuild,v 1.1 2005/09/08 14:27:00 lu_zero Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs + +DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec." +HOMEPAGE="http://ffmpeg.sourceforge.net/" +MY_P=${P/_/-} +S=${WORKDIR} +S_BASE=${WORKDIR}/${MY_P} +S_STATIC=${S_BASE}-static +S_SHARED=${S_BASE}-shared + +SRC_URI="mirror://sourceforge/ffmpeg/${MY_P}.tbz2" + +LICENSE="GPL-2" +SLOT="0" +# ~alpha need to test aac useflag +# ~ia64 ~arm ~mips ~hppa +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="aac altivec debug doc ieee1394 a52 encode imlib mmx ogg vorbis oss test theora threads truetype v4l xvid dts network zlib sdl" + +DEPEND="imlib? ( media-libs/imlib2 ) + truetype? ( >=media-libs/freetype-2 ) + sdl? ( >=media-libs/libsdl-1.2.1 ) + doc? ( app-text/texi2html ) + encode? ( media-sound/lame ) + ogg? ( media-libs/libogg ) + vorbis? ( media-libs/libvorbis ) + theora? ( media-libs/libtheora ) + aac? ( media-libs/faad2 media-libs/faac ) + a52? ( >=media-libs/a52dec-0.7.4-r4 ) + xvid? ( >=media-libs/xvid-1.0 ) + zlib? ( sys-libs/zlib ) + dts? ( media-libs/libdts ) + ieee1394? ( media-libs/libdc1394 + sys-libs/libraw1394 ) + test? ( net-misc/wget )" + +src_unpack() { + unpack ${A} || die + cd ${S_BASE} + + #Append -fomit-frame-pointer to avoid some common issues + use debug || append-flags "-fomit-frame-pointer" + + # for some reason it tries to #include <X11/Xlib.h>, but doesn't use it + sed -i s:\#define\ HAVE_X11:\#define\ HAVE_LINUX: ffplay.c + + # Fix building with gcc4 + # epatch ${FILESDIR}/${P}-gcc4.patch + + #ffmpeg doesn'g use libtool, so the condition for PIC code + #is __PIC__, not PIC. + sed -i -e 's/#\(\(.*def *\)\|\(.*defined *\)\|\(.*defined(*\)\)PIC/#\1__PIC__/' \ + libavcodec/i386/dsputil_mmx{.c,_rnd.h,_avg.h} \ + libavcodec/msmpeg4.c \ + libavutil/common.h \ + || die "sed failed (__PIC__)" + + # epatch ${FILESDIR}/${PN}-libdir-pic.patch + # epatch ${FILESDIR}/${PN}-a52.patch + # epatch ${FILESDIR}/${PN}-missing_links.patch + # To make sure the ffserver test will work + sed -i -e "s:-e debug=off::" tests/server-regression.sh + cd ${S} + cp -R ${S_BASE} ${S_STATIC} + mv ${S_BASE} ${S_SHARED} +} + +src_compile() { + #Note; library makefiles don't propogate flags from config.mak so + #use specified CFLAGS are only used in executables + filter-flags -fforce-addr -momit-leaf-frame-pointer + + local myconf="" + + #disable mmx accelerated code if not requirested, or if PIC is required + # as the provided asm decidedly isn't PIC. + if ( ! has_pic && use mmx ) || use amd64; then + myconf="${myconf} --enable-mmx" + else + myconf="${myconf} --disable-mmx" + fi + + if use elibc_FreeBSD; then + myconf="${myconf} --enable-memalign-hack" + fi + + myconf="${myconf} + $(use_enable altivec) \ + $(use_enable debug) \ + $(use_enable encode mp3lame) \ + $(use_enable a52) --disable-a52bin \ + $(use_enable oss audio-oss) \ + $(use_enable v4l) \ + $(use_enable ieee1394 dv1394) $(use_enable ieee1394 dc1394) \ + $(use_enable threads pthreads) \ + $(use_enable xvid) \ + $(use_enable ogg) \ + $(use_enable vorbis) \ + $(use_enable theora) \ + $(use_enable dts) \ + $(use_enable network) \ + $(use_enable zlib) \ + $(use_enable sdl ffplay) \ + $(use_enable aac faad) $(use_enable aac faac) --disable-faadbin \ + --enable-gpl \ + --enable-pp \ + --disable-opts" + + cd ${S_STATIC} + econf --disable-shared-pp --disable-shared --enable-static ${myconf} || die "Configure failed" + emake CC="$(tc-getCC)" || die "static failed" + + cd ${S_SHARED} + econf --enable-shared-pp --enable-shared --disable-static ${myconf} || die "Configure failed" + emake CC="$(tc-getCC)" || die "shared failed" +} + +src_install() { + for d in ${S_STATIC} ${S_SHARED}; do + cd ${d} + + use doc && make documentation + make DESTDIR=${D} \ + prefix=${D}/usr \ + libdir=${D}/usr/$(get_libdir) \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + bindir=${D}/usr/bin \ + install installlib || die "Install Failed" + done + + cd ${S_SHARED} + dodoc ChangeLog README INSTALL + dodoc doc/* + + cd ${S_STATIC}/libavcodec/libpostproc + make prefix=${D}/usr libdir=${D}/usr/$(get_libdir) \ + install || die "Failed to install libpostproc.a!" + + cd ${S_SHARED}/libavcodec/libpostproc + make prefix=${D}/usr libdir=${D}/usr/$(get_libdir) \ + SHARED_PP="yes" \ + install || die "Failed to install libpostproc.so!" + + # Some stuff like transcode can use this one. + dolib ${S_STATIC}/libavcodec/libpostproc/libpostproc.a + + preplib /usr +} + +# Never die for now... +src_test() { + + for d in ${S_STATIC} ${S_SHARED}; do + cd ${d} + make test || ewarn "Some test failed" + done +} diff --git a/media-video/ffmpeg/files/digest-ffmpeg-0.4.9_p20050906 b/media-video/ffmpeg/files/digest-ffmpeg-0.4.9_p20050906 new file mode 100644 index 000000000000..69d53de0bd8a --- /dev/null +++ b/media-video/ffmpeg/files/digest-ffmpeg-0.4.9_p20050906 @@ -0,0 +1 @@ +MD5 677fabc5adf9b812c42924e9fd300a65 ffmpeg-0.4.9-p20050906.tbz2 1671242 |