diff options
author | 2008-04-14 01:12:19 +0000 | |
---|---|---|
committer | 2008-04-14 01:12:19 +0000 | |
commit | 118fe810ce5fc63bdbfe21af37042f0845a78ab7 (patch) | |
tree | b00ead741c1d667834d5514fd80b3f6275241d36 /media-video | |
parent | touchup the new mv/atomic2 test (diff) | |
download | gentoo-2-118fe810ce5fc63bdbfe21af37042f0845a78ab7.tar.gz gentoo-2-118fe810ce5fc63bdbfe21af37042f0845a78ab7.tar.bz2 gentoo-2-118fe810ce5fc63bdbfe21af37042f0845a78ab7.zip |
Adding latest transcode-1.1.0_alpha for testing with new ffmpeg (hardmasked)
(Portage version: 2.1.5_rc3)
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/transcode/ChangeLog | 10 | ||||
-rw-r--r-- | media-video/transcode/files/transcode-1.1.0_alpha7-new-ffmpeg-headers.patch | 131 | ||||
-rw-r--r-- | media-video/transcode/transcode-1.1.0_alpha7.ebuild | 126 |
3 files changed, 266 insertions, 1 deletions
diff --git a/media-video/transcode/ChangeLog b/media-video/transcode/ChangeLog index 3cb482f6d040..73796dce1d78 100644 --- a/media-video/transcode/ChangeLog +++ b/media-video/transcode/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-video/transcode # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.205 2008/04/07 22:25:47 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.206 2008/04/14 01:12:18 yngwin Exp $ + +*transcode-1.1.0_alpha7 (14 Apr 2008) + + 14 Apr 2008; Ben de Groot <yngwin@gentoo.org> + +files/transcode-1.1.0_alpha7-new-ffmpeg-headers.patch, + +transcode-1.1.0_alpha7.ebuild: + Adding latest 1.1.0 alpha, which needs more testing/fixing. Patched for + new ffmpeg headers layout (bug #214740). 07 Apr 2008; Ben de Groot <yngwin@gentoo.org> transcode-1.1.0_alpha4.ebuild: diff --git a/media-video/transcode/files/transcode-1.1.0_alpha7-new-ffmpeg-headers.patch b/media-video/transcode/files/transcode-1.1.0_alpha7-new-ffmpeg-headers.patch new file mode 100644 index 000000000000..5dd98f64f048 --- /dev/null +++ b/media-video/transcode/files/transcode-1.1.0_alpha7-new-ffmpeg-headers.patch @@ -0,0 +1,131 @@ +diff -burN transcode-1.1.0alpha7.orig/configure.in transcode-1.1.0alpha7/configure.in +--- transcode-1.1.0alpha7.orig/configure.in 2008-01-27 16:22:30.000000000 +0100 ++++ transcode-1.1.0alpha7/configure.in 2008-04-14 02:09:54.000000000 +0200 +@@ -598,14 +598,14 @@ + esac], + [enable_libavcodec_static=no]) + LIBAVCODEC_EXTRA_LIBS="$LIBAVCODEC_EXTRA_LIBS $($PKG_CONFIG --libs libavcodec)" +-TC_PKG_CHECK(libavcodec, required, LIBAVCODEC, no, [ffmpeg/avcodec.h], ++TC_PKG_CHECK(libavcodec, required, LIBAVCODEC, no, [libavcodec/avcodec.h], + avcodec, avcodec_thread_init, libavcodec, [http://www.ffmpeg.org/]) + if test x"$have_libavcodec" = x"yes" ; then + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBAVCODEC_CFLAGS" + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <stdio.h> +-#include <ffmpeg/avcodec.h> ++#include <libavcodec/avcodec.h> + int + main() + { +@@ -625,8 +625,8 @@ + [LIBAVCODEC_VERSION="`./conftest$ac_exeext | sed -ne 's,VER=\(.*\),\1,p'`" + LIBAVCODEC_BUILD="`./conftest$ac_exeext | sed -ne 's,BUILD=\(.*\),\1,p'`"], + [AC_MSG_RESULT([failed]) +- TC_PKG_ERROR(libavcodec, ffmpeg/avcodec.h, required, FFmpeg, [http://www.ffmpeg.org], +- [cannot compile ffmpeg/avcodec.h])], ++ TC_PKG_ERROR(libavcodec, libavcodec/avcodec.h, required, FFmpeg, [http://www.ffmpeg.org], ++ [cannot compile libavcodec/avcodec.h])], + [AC_MSG_RESULT([cross compiling; assumed OK...]) + LIBAVCODEC_VERSION="" + LIBAVCODEC_BUILD=""]) +@@ -637,7 +637,7 @@ + save_LIBS="$LIBS" + dnl $_w_libavcodec_l comes from TC_PKG_CHECK() + LIBS="$LIBS $w_libavcodec_l${deflib}/libavcodec.a $LIBAVCODEC_EXTRA_LIBS" +- AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ffmpeg/avcodec.h>],[[ ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <libavcodec/avcodec.h>],[[ + AVCodecContext *ctx = (void *)0; + avcodec_thread_init(ctx, 0); + ]])], +@@ -665,15 +665,15 @@ + esac], + [enable_libavformat_static=no]) + LIBAVFORMAT_EXTRA_LIBS="$LIBAVFORMAT_EXTRA_LIBS $($PKG_CONFIG --libs libavformat)" +-TC_PKG_CHECK(libavformat, required, LIBAVFORMAT, no, [ffmpeg/avformat.h], ++TC_PKG_CHECK(libavformat, required, LIBAVFORMAT, no, [libavformat/avformat.h], + avformat, av_register_all, libavformat, [http://www.ffmpeg.org/]) + if test x"$have_libavformat" = x"yes" ; then + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $LIBAVFORMAT_CFLAGS" + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <stdio.h> +-#include <ffmpeg/avformat.h> +-#include <ffmpeg/avcodec.h> ++#include <libavformat/avformat.h> ++#include <libavcodec/avcodec.h> + int + main() + { +@@ -693,8 +693,8 @@ + [LIBAVFORMAT_VERSION="`./conftest$ac_exeext | sed -ne 's,VER=\(.*\),\1,p'`" + LIBAVFORMAT_BUILD="`./conftest$ac_exeext | sed -ne 's,BUILD=\(.*\),\1,p'`"], + [AC_MSG_RESULT([failed]) +- TC_PKG_ERROR(libavformat, ffmpeg/avformat.h, required, FFmpeg, [http://www.ffmpeg.org], +- [cannot compile ffmpeg/avformat.h])], ++ TC_PKG_ERROR(libavformat, libavformat/avformat.h, required, FFmpeg, [http://www.ffmpeg.org], ++ [cannot compile libavformat/avformat.h])], + [AC_MSG_RESULT([cross compiling; assumed OK...]) + LIBAVCODEC_VERSION="" + LIBAVCODEC_BUILD=""]) +@@ -705,7 +705,7 @@ + save_LIBS="$LIBS" + dnl $_w_libavcodec_l comes from TC_PKG_CHECK() + LIBS="$LIBS $w_libavcodec_l${deflib}/libavcodec.a $w_libavformat_l${deflib}/libavformat.a $LIBAVFORMAT_EXTRA_LIBS" +- AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ffmpeg/avcodec.h>],[[ ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <libavcodec/avcodec.h>],[[ + av_register_all(); + ]])], + [LIBAVFORMAT_LIBS="$LIBS $w_libavcodec_l${deflib}/libavcodec.a $w_libavformat_l${deflib}/libavformat.a $LIBAVFORMAT_EXTRA_LIBS"], +diff -burN transcode-1.1.0alpha7.orig/export/ffmpeg_cfg.h transcode-1.1.0alpha7/export/ffmpeg_cfg.h +--- transcode-1.1.0alpha7.orig/export/ffmpeg_cfg.h 2006-04-17 17:48:43.000000000 +0200 ++++ transcode-1.1.0alpha7/export/ffmpeg_cfg.h 2008-04-14 02:10:29.000000000 +0200 +@@ -2,7 +2,7 @@ + #define __FFMPEG_CFG_H + + #include "libtc/cfgfile.h" +-#include <ffmpeg/avcodec.h> ++#include <libavcodec/avcodec.h> + + //char *lavc_param_vcodec = "mpeg4"; + //extern int lavc_param_vbitrate; +diff -burN transcode-1.1.0alpha7.orig/filter/filter_resample.c transcode-1.1.0alpha7/filter/filter_resample.c +--- transcode-1.1.0alpha7.orig/filter/filter_resample.c 2007-06-06 22:37:16.000000000 +0200 ++++ transcode-1.1.0alpha7/filter/filter_resample.c 2008-04-14 02:12:20.000000000 +0200 +@@ -37,7 +37,7 @@ + #include "libtc/optstr.h" + #include "libtc/tcmodule-plugin.h" + +-#include <ffmpeg/avcodec.h> ++#include <libavcodec/avcodec.h> + + typedef struct + { +diff -burN transcode-1.1.0alpha7.orig/libtc/tcavcodec.h transcode-1.1.0alpha7/libtc/tcavcodec.h +--- transcode-1.1.0alpha7.orig/libtc/tcavcodec.h 2007-08-08 19:53:33.000000000 +0200 ++++ transcode-1.1.0alpha7/libtc/tcavcodec.h 2008-04-14 02:13:42.000000000 +0200 +@@ -27,9 +27,9 @@ + #include "config.h" + #endif + +-#include <ffmpeg/avformat.h> +-#include <ffmpeg/avcodec.h> +-#include <ffmpeg/avutil.h> ++#include <libavformat/avformat.h> ++#include <libavcodec/avcodec.h> ++#include <libavutil/avutil.h> + + /*************************************************************************/ + +diff -burN transcode-1.1.0alpha7.orig/configure.in transcode-1.1.0alpha7/configure.in +--- transcode-1.1.0alpha7.orig/configure.in 2008-04-14 02:27:10.000000000 +0200 ++++ transcode-1.1.0alpha7/configure.in 2008-04-14 02:32:52.000000000 +0200 +@@ -822,7 +822,7 @@ + dnl libpostproc + dnl + LIBPOSTPROC_EXTRA_LIBS="$LIBPOSTPROC_EXTRA_LIBS $($PKG_CONFIG --libs libpostproc)" +-TC_PKG_CHECK(libpostproc, no, LIBPOSTPROC, no, [postproc/postprocess.h], ++TC_PKG_CHECK(libpostproc, no, LIBPOSTPROC, no, [libpostproc/postprocess.h], + postproc, pp_postprocess, libpostproc, [http://www.ffmpeg.org/]) + TC_PKG_HAVE(libpostproc, LIBPOSTPROC) + diff --git a/media-video/transcode/transcode-1.1.0_alpha7.ebuild b/media-video/transcode/transcode-1.1.0_alpha7.ebuild new file mode 100644 index 000000000000..e937e471a9de --- /dev/null +++ b/media-video/transcode/transcode-1.1.0_alpha7.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2008 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_alpha7.ebuild,v 1.1 2008/04/14 01:12:18 yngwin Exp $ + +WANT_AUTOCONF="2.5" +WANT_AUTOMAKE="1.10" + +inherit libtool flag-o-matic eutils multilib autotools + +MY_PV=${PV/_alpha/alpha} +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 ) + alsa? ( media-libs/alsa-lib ) + 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_p20080326 + || ( sys-libs/glibc dev-libs/libiconv ) + media-libs/libmpeg2 + x264? ( media-libs/x264 ) + xml? ( dev-libs/libxml2 ) + X? ( x11-libs/libXpm + x11-libs/libXaw + x11-libs/libXv )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + 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 + + # patch for new ffmpeg headers outlay, bug #214740 + epatch "${FILESDIR}"/${P}-new-ffmpeg-headers.patch + 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" + # NuppelVideo is supported only on x86 platform yet + # TODO: mask nuv useflag for all other arches + use x86 && myconf="${myconf} $(use_enable nuv)" + # TODO: these two need work + # $(use_enable postproc libpostproc) - compile error + # $(use_enable imagemagick) - can't find header + 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 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 jpeg libjpeg) \ + $(use_enable iconv) \ + $(use_with X x) \ + --with-mod-path=/usr/$(get_libdir)/transcode \ + --with-libpostproc-libs=/usr/$(get_libdir)" + econf ${myconf} || die "econf failed" + + emake all || die "emake all 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/* +} |