summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2009-05-17 18:54:30 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2009-05-17 18:54:30 +0000
commit8900cd7297dd099ff64539a4a35f9d4ea678a0be (patch)
treecb1098f1f0a808e8f3bc806640dc9aea464a42b9 /media-video/transcode
parent- Use the patch from bug 261720 which: (diff)
downloadgentoo-2-8900cd7297dd099ff64539a4a35f9d4ea678a0be.tar.gz
gentoo-2-8900cd7297dd099ff64539a4a35f9d4ea678a0be.tar.bz2
gentoo-2-8900cd7297dd099ff64539a4a35f9d4ea678a0be.zip
Build the deprecated but still useful tcrequant with --enable-deprecated. Move sed to src_prepare to squash repoman warning.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'media-video/transcode')
-rw-r--r--media-video/transcode/ChangeLog10
-rw-r--r--media-video/transcode/transcode-1.1.2-r1.ebuild110
2 files changed, 118 insertions, 2 deletions
diff --git a/media-video/transcode/ChangeLog b/media-video/transcode/ChangeLog
index b1c91f53102f..94d1670b05fc 100644
--- a/media-video/transcode/ChangeLog
+++ b/media-video/transcode/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/transcode
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.256 2009/04/14 20:01:01 aballier Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.257 2009/05/17 18:54:30 je_fro Exp $
+
+*transcode-1.1.2-r1 (17 May 2009)
+
+ 17 May 2009; Jeff Gardner <je_fro@gentoo.org> +transcode-1.1.2-r1.ebuild:
+ Build the deprecated but still useful tcrequant with --enable-deprecated.
+ Move sed to src_prepare to squash repoman warning.
*transcode-1.1.2 (14 Apr 2009)
diff --git a/media-video/transcode/transcode-1.1.2-r1.ebuild b/media-video/transcode/transcode-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..137663cd2895
--- /dev/null
+++ b/media-video/transcode/transcode-1.1.2-r1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-1.1.2-r1.ebuild,v 1.1 2009/05/17 18:54:30 je_fro Exp $
+
+EAPI="2"
+
+WANT_AUTOCONF="2.5"
+WANT_AUTOMAKE="1.10"
+
+inherit libtool flag-o-matic eutils multilib autotools
+
+MY_P=${P/_}
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="video stream processing tool"
+HOMEPAGE="http://www.transcoding.org/cgi-bin/transcode"
+SRC_URI="mirror://berlios/tcforge/${MY_P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X 3dnow a52 aac alsa altivec dv dvd iconv imagemagick jpeg lzo mjpeg mp3 mmx nuv ogg oss postproc quicktime sdl sse sse2 theora truetype v4l2 vorbis x264 xml xvid"
+
+RDEPEND="aac? ( media-libs/faac )
+ a52? ( media-libs/a52dec )
+ alsa? ( media-libs/alsa-lib )
+ dv? ( media-libs/libdv )
+ dvd? ( media-libs/libdvdread )
+ mjpeg? ( media-video/mjpegtools )
+ lzo? ( >=dev-libs/lzo-2 )
+ imagemagick? ( media-gfx/imagemagick )
+ mp3? ( media-sound/lame )
+ sdl? ( media-libs/libsdl[X] )
+ quicktime? ( >=media-libs/libquicktime-1.0.0 )
+ 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_p20081014
+ || ( sys-libs/glibc dev-libs/libiconv )
+ media-libs/libmpeg2
+ x264? ( media-libs/x264 )
+ xml? ( dev-libs/libxml2 )
+ xvid? ( media-libs/xvid )
+ X? ( x11-libs/libXpm
+ x11-libs/libXaw
+ x11-libs/libXv )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ v4l2? ( >=sys-kernel/linux-headers-2.6.11 )"
+
+src_prepare() {
+ sed -i -e "s:\$(datadir)/doc/transcode:\$(datadir)/doc/${PF}:" \
+ "${S}"/Makefile.am "${S}"/docs/Makefile.am "${S}"/docs/html/Makefile.am \
+ "${S}"/docs/pvm3/Makefile.am "${S}"/docs/tech/html/Makefile.am \
+ "${S}"/docs/tech/Makefile.am
+
+ eautoreconf
+}
+
+src_configure() {
+ # NuppelVideo is supported only on x86 platform yet
+ # TODO: mask nuv useflag for all other arches
+ # TODO: watch tcrequant for change. It's currently enabled with --enable-deprecated.
+ use x86 && myconf="${myconf} $(use_enable nuv)"
+ 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 truetype freetype2) \
+ $(use_enable mp3 lame) \
+ $(use_enable x264) \
+ $(use_enable xvid) \
+ $(use_enable ogg) \
+ $(use_enable vorbis) \
+ $(use_enable theora) \
+ $(use_enable dvd libdvdread) \
+ $(use_enable dv libdv) \
+ $(use_enable quicktime libquicktime) \
+ $(use_enable imagemagick) \
+ $(use_enable postproc libpostproc) \
+ $(use_enable lzo) \
+ $(use_enable a52) \
+ $(use_enable aac faac) \
+ $(use_enable xml libxml2) \
+ $(use_enable mjpeg mjpegtools) \
+ $(use_enable sdl) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable iconv) \
+ $(use_with X x) \
+ --enable-deprecated \
+ --enable-experimental \
+ --with-mod-path=/usr/$(get_libdir)/transcode"
+
+ econf ${myconf} || die "econf failed"
+}
+
+src_install () {
+ make DESTDIR="${D}" install || die "make install failed"
+ rm -fr "${D}/usr/share/doc/transcode"
+
+ dodoc AUTHORS ChangeLog README TODO STYLE
+ dodoc docs/*
+ dohtml docs/html/*
+}