diff options
Diffstat (limited to 'media-video/transcode/transcode-1.1.0_pre20070705.ebuild')
-rw-r--r-- | media-video/transcode/transcode-1.1.0_pre20070705.ebuild | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/media-video/transcode/transcode-1.1.0_pre20070705.ebuild b/media-video/transcode/transcode-1.1.0_pre20070705.ebuild new file mode 100644 index 000000000000..f7dff46c4f4d --- /dev/null +++ b/media-video/transcode/transcode-1.1.0_pre20070705.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-1.1.0_pre20070705.ebuild,v 1.1 2007/07/27 02:55:29 beandog Exp $ + +WANT_AUTOMAKE=latest +WANT_AUTOCONF=latest + +inherit libtool flag-o-matic eutils multilib autotools + +MY_PV=${PV/_pre/-cvs-} +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} +DESCRIPTION="video stream processing tool" +HOMEPAGE="http://www.transcoding.org/cgi-bin/transcode" +SRC_URI="http://fromani.exit1.org/${MY_P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="X 3dnow a52 aac alsa altivec dv dvdread iconv imagemagick jpeg lzo mjpeg mp3 mmx nuv ogg oss postproc quicktime sdl sse sse2 theora truetype v4l2 vorbis x264 xvid xml" + +RDEPEND="a52? ( media-libs/a52dec ) + dv? ( media-libs/libdv ) + dvdread? ( media-libs/libdvdread ) + xvid? ( media-libs/xvid ) + mjpeg? ( media-video/mjpegtools ) + lzo? ( >=dev-libs/lzo-2 ) + imagemagick? ( media-gfx/imagemagick ) + mp3? ( media-sound/lame ) + sdl? ( media-libs/libsdl ) + quicktime? ( >=media-libs/libquicktime-0.9.3 ) + vorbis? ( media-libs/libvorbis ) + ogg? ( media-libs/libogg ) + theora? ( media-libs/libtheora ) + jpeg? ( media-libs/jpeg ) + truetype? ( >=media-libs/freetype-2 ) + >=media-video/ffmpeg-0.4.9_p20050226-r3 + || ( sys-libs/glibc dev-libs/libiconv ) + media-libs/libmpeg2 + x264? ( media-libs/x264-svn ) + xml? ( dev-libs/libxml2 ) + X? ( x11-libs/libXpm + x11-libs/libXaw + x11-libs/libXv )" + +DEPEND="${RDEPEND} + v4l2? ( >=sys-kernel/linux-headers-2.6.11 )" +# Make sure the assembler USE flags are unmasked on amd64 +# Remove this once default-linux/amd64/2006.1 is deprecated +DEPEND="${DEPEND} amd64? ( >=sys-apps/portage-2.1.2 )" + +src_unpack() { + unpack ${A} + cd "${S}" + + dosed -i -e "s:\$(datadir)/doc/transcode:\$(datadir)/doc/${PF}:" \ + "${S}"/Makefile.am "${S}"/docs/Makefile.am "${S}"/docs/html/Makefile.am \ + "${S}"/docs/release-notes/Makefile.am + + eautoreconf +} + +src_compile() { + filter-flags -maltivec -mabi=altivec -momit-leaf-frame-pointer + #145849 + use amd64 && filter-flags -fweb + + if use ppc || use ppc64 ; then + append-flags -U__ALTIVEC__ + fi + + append-flags -DDCT_YUV_PRECISION=1 + + use xvid && myconf="${myconf} --with-default-xvid=xvid4" + myconf="${myconf} \ + $(use_enable mmx) \ + $(use_enable 3dnow) \ + $(use_enable sse) \ + $(use_enable sse2) \ + $(use_enable altivec) \ + $(use_enable v4l2 v4l) \ + $(use_enable alsa) \ + $(use_enable oss) \ + $(use_enable postproc libpostproc) \ + $(use_enable truetype freetype2) \ + $(use_enable mp3 lame) \ + $(use_enable x264) \ + $(use_enable xvid) \ + $(use_enable ogg) \ + $(use_enable vorbis) \ + $(use_enable theora) \ + $(use_enable dvdread libdvdread) \ + $(use_enable dv libdv) \ + $(use_enable quicktime libquicktime) \ + $(use_enable lzo) \ + $(use_enable a52) \ + $(use_enable aac faac) \ + $(use_enable xml libxml2) \ + $(use_enable mjpeg mjpegtools) \ + $(use_enable sdl) \ + $(use_enable imagemagick) \ + $(use_enable jpeg libjpeg) \ + $(use_enable iconv) \ + $(use_enable nuv) \ + $(use_with X x) \ + --with-mod-path=/usr/$(get_libdir)/transcode \ + --with-libpostproc-libs=/usr/$(get_libdir)" + econf ${myconf} || die + + emake all || die +} + +src_install () { + make DESTDIR="${D}" install || die + rm -fr "${D}/usr/share/doc/transcode" + + dodoc AUTHORS ChangeLog README TODO STYLE + dodoc docs/* + dohtml docs/html/* +} |