diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2003-03-17 00:34:15 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2003-03-17 00:34:15 +0000 |
commit | ec33d42b42cc1e01cbffd48050c0465e4f824111 (patch) | |
tree | c378e2f469fa9e97389797cb182712239348551c /media-video | |
parent | unmasked x86. (diff) | |
download | gentoo-2-ec33d42b42cc1e01cbffd48050c0465e4f824111.tar.gz gentoo-2-ec33d42b42cc1e01cbffd48050c0465e4f824111.tar.bz2 gentoo-2-ec33d42b42cc1e01cbffd48050c0465e4f824111.zip |
Should work on ppc
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/transcode/ChangeLog | 10 | ||||
-rw-r--r-- | media-video/transcode/files/digest-transcode-0.6.4.20030311 | 1 | ||||
-rw-r--r-- | media-video/transcode/transcode-0.6.4.20030311.ebuild | 126 |
3 files changed, 136 insertions, 1 deletions
diff --git a/media-video/transcode/ChangeLog b/media-video/transcode/ChangeLog index 72945290e7a4..73821c031457 100644 --- a/media-video/transcode/ChangeLog +++ b/media-video/transcode/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-video/transcode # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.32 2003/03/12 22:20:39 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.33 2003/03/17 00:34:15 lu_zero Exp $ + +*transcode-0.6.4.20030311 (24 Feb 2003) + + 16 Mar 2003; Luca Barbato <azarah@gentoo.org> transcode-0.6.4.20030311.ebuild : + That works on ppc, thanks to Strubie from the ppc forum + + 05 Mar 2003; Martin Schlemmer <azarah@gentoo.org> transcode-0.6.3.ebuild : + Get to work with latest netpbm (10.*0). *transcode-0.6.3 (24 Feb 2003) diff --git a/media-video/transcode/files/digest-transcode-0.6.4.20030311 b/media-video/transcode/files/digest-transcode-0.6.4.20030311 new file mode 100644 index 000000000000..0b8a7a7643d0 --- /dev/null +++ b/media-video/transcode/files/digest-transcode-0.6.4.20030311 @@ -0,0 +1 @@ +MD5 e4de529a6cb428d12f1563b62a776f0b transcode-0.6.4.20030311.tar.gz 2501001 diff --git a/media-video/transcode/transcode-0.6.4.20030311.ebuild b/media-video/transcode/transcode-0.6.4.20030311.ebuild new file mode 100644 index 000000000000..8aa7a44a39ae --- /dev/null +++ b/media-video/transcode/transcode-0.6.4.20030311.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-0.6.4.20030311.ebuild,v 1.1 2003/03/17 00:34:15 lu_zero Exp $ + +inherit libtool flag-o-matic + +# Don't build with -mfpmath=sse || -fPic or it will break. (Bug #14920) +filter-flags -mfpmath=sse +filter-flags -fPic + +filter-flags "-maltivec -mabi=altivec" + +IUSE="sdl mmx mpeg sse encode X quicktime avi altivec" +DESCRIPTION="video stream processing tool" +SRC_URI="http://www.zebra.fh-weingarten.de/~transcode/pre/${P}.tar.gz" +HOMEPAGE="http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc" +DEPEND=">=media-libs/a52dec-0.7.3 + >=media-libs/libdv-0.9.5 + x86? ( >=dev-lang/nasm-0.98.34 ) + >=media-libs/libdvdread-0.9.0 + >=media-video/mplayer-0.90_pre10 + >=media-video/ffmpeg-0.4.0 + >=media-libs/xvid-0.9.0 + >=media-video/mjpegtools-1.6.0 + >=dev-libs/lzo-1.08 + >=media-libs/libfame-0.9.0 + >=media-gfx/imagemagick-5.4.9.0 + media-libs/netpbm + X? ( virtual/x11 ) + avi? ( >=media-video/avifile-0.7.25 ) + mpeg? ( media-libs/libmpeg3 ) + encode? ( >=media-sound/lame-3.89 ) + sdl? ( media-libs/libsdl ) + quicktime? ( media-libs/quicktime4linux media-libs/openquicktime )" + +src_unpack() { + unpack ${A} + + if has_version '>=media-libs/netpbm-9.13' + then + einfo "New netbpm (>9.12)..." + cp ${S}/contrib/subrip/Makefile ${S}/contrib/subrip/Makefile.orig + sed -e 's:-lppm:-lnetpbm:' \ + ${S}/contrib/subrip/Makefile.orig > ${S}/contrib/subrip/Makefile + else + einfo "Old netbpm (<=9.12)..." + fi +} + +src_compile() { + # fix invalid paths in .la files of plugins + elibtoolize + + local myconf= + myconf="--with-dvdread" + + use mmx \ + && myconf="${myconf} --enable-mmx" + use mmx || ( use 3dnow || use sse ) \ + || myconf="${myconf} --disable-mmx" + # Dont disable mmx if 3dnow or sse are requested. + + use sse \ + && myconf="${myconf} --enable-sse" \ + || myconf="${myconf} --disable-sse" + + use altivec \ + && myconf="${myconf} --enable-altivec" \ + || myconf="${myconf} --disable-altivec" + + use avi \ + && myconf="${myconf} --with-avifile-mods --enable-avifile6" \ + || myconf="${myconf} --without-avifile-mods --disable-avifile6" + + use encode \ + && myconf="${myconf} --with-lame" \ + || myconf="${myconf} --without-lame" + + use mpeg \ + && myconf="${myconf} --with-libmpeg3" \ + || myconf="${myconf} --without-libmpeg3" + + use quicktime \ + && myconf="${myconf} --with-qt --with-openqt" \ + || myconf="${myconf} --without-qt --without-openqt" + + use X \ + && myconf="${myconf} --enable-x" \ + || myconf="${myconf} --disable-x" + + # Use the MPlayer libpostproc if present + [ -f ${ROOT}/usr/lib/libpostproc.a ] && \ + [ -f ${ROOT}/usr/include/postprocess.h ] && \ + myconf="${myconf} --with-libpostproc-builddir=${ROOT}/usr/lib" + + + econf ${myconf} CFLAGS="${CFLAGS} -DDCT_YUV_PRECISION=1" || die + + # Do not use emake !! + # export CFLAGS="${CFLAGS} -DDCT_YUV_PRECISION=1" + + make all || die + + # subrip stuff + cd contrib/subrip + make || die +} + +src_install () { + + make \ + DESTDIR=${D} \ + install || die + + dodoc AUTHORS COPYING ChangeLog README TODO + + # subrip stuff + cd contrib/subrip + dobin pgm2txt srttool subtitle2pgm subtitle2vobsub + einfo "" + einfo "This ebuild uses subtitles !!!" + einfo "" +} |