summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-04-27 11:14:34 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-04-27 11:14:34 +0000
commitf06d8eeefbac00a63f417cd164a537841bf8df36 (patch)
tree96225063b2e536ce8b5d2e4f2a7708a61c8003b6 /media-video/transcode
parentAdded transcode 1.0.0_beta* to p.mask. (diff)
downloadgentoo-2-f06d8eeefbac00a63f417cd164a537841bf8df36.tar.gz
gentoo-2-f06d8eeefbac00a63f417cd164a537841bf8df36.tar.bz2
gentoo-2-f06d8eeefbac00a63f417cd164a537841bf8df36.zip
Removed gcc4 patch which screwed up logic both on 3.4 and 4 compilers and bumped so to have no more bug reports about that. Moved patches into a standalone tarball instead of having them on filesdir. Added new (masked) upstream version 1.0.0_beta3.
(Portage version: 2.0.51.20-r5)
Diffstat (limited to 'media-video/transcode')
-rw-r--r--media-video/transcode/ChangeLog19
-rw-r--r--media-video/transcode/Manifest31
-rw-r--r--media-video/transcode/files/digest-transcode-0.6.14-r11
-rw-r--r--media-video/transcode/files/digest-transcode-0.6.14-r22
-rw-r--r--media-video/transcode/files/digest-transcode-1.0.0_beta31
-rw-r--r--media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch21
-rw-r--r--media-video/transcode/files/transcode-0.6.14-gcc4.patch124
-rw-r--r--media-video/transcode/files/transcode-0.6.14-libquicktime094.patch109
-rw-r--r--media-video/transcode/transcode-0.6.14-r2.ebuild (renamed from media-video/transcode/transcode-0.6.14-r1.ebuild)28
-rw-r--r--media-video/transcode/transcode-1.0.0_beta3.ebuild135
10 files changed, 179 insertions, 292 deletions
diff --git a/media-video/transcode/ChangeLog b/media-video/transcode/ChangeLog
index d51255b13d83..a5c1beed1230 100644
--- a/media-video/transcode/ChangeLog
+++ b/media-video/transcode/ChangeLog
@@ -1,6 +1,23 @@
# ChangeLog for media-video/transcode
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.98 2005/04/25 23:10:53 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.99 2005/04/27 11:14:34 flameeyes Exp $
+
+*transcode-1.0.0_beta3 (27 Apr 2005)
+*transcode-0.6.14-r2 (27 Apr 2005)
+
+ 27 Apr 2005; Diego Pettenò <flameeyes@gentoo.org>
+ -files/transcode-0.6.14-amd64_mmx.patch,
+ -files/transcode-0.6.14-gcc4.patch,
+ -files/transcode-0.6.14-libquicktime094.patch,
+ -transcode-0.6.14-r1.ebuild, +transcode-0.6.14-r2.ebuild,
+ +transcode-1.0.0_beta3.ebuild:
+ Removed gcc4 patch as it screw up logic both with old and new gcc, bumped to
+ 0.6.14-r2 so that all the users who compiled with that patch will recompile
+ without it. The new -r2 also uses a patch tarball instead of having the
+ patches in files/.
+
+ Added the latest upstream version (1.0.0_beta3) but still p.masked as it's
+ beta-quality software which needs testing.
25 Apr 2005; Martin Schlemmer <azarah@gentoo.org>
+files/transcode-0.6.14-gcc4.patch, transcode-0.6.14-r1.ebuild:
diff --git a/media-video/transcode/Manifest b/media-video/transcode/Manifest
index 3a705dfea051..e9c1fc3f4214 100644
--- a/media-video/transcode/Manifest
+++ b/media-video/transcode/Manifest
@@ -1,33 +1,24 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 30a5dcfbce733c16c2b21f42384916fc ChangeLog 18124
-MD5 b2575706251f8d608ded9ce2eb4c3fd5 transcode-0.6.12-r1.ebuild 3683
-MD5 2b88185c0f2670050398fa72228293a2 transcode-0.6.11.ebuild 3876
MD5 7300a7b361fa9f48e37722c6952bd432 metadata.xml 158
+MD5 b2575706251f8d608ded9ce2eb4c3fd5 transcode-0.6.12-r1.ebuild 3683
MD5 888fabc580c2ef6e1e5fb0722631628e transcode-0.6.12-r2.ebuild 4374
MD5 89bfa93308a46f45e9b41adb7747ad0f transcode-0.6.13-r1.ebuild 2843
MD5 119a7d425650a2c2ad7ee46ed133bcda transcode-0.6.14.ebuild 3566
-MD5 06d4ba2d7b43728b3a4cf6a1640fa4ab transcode-0.6.14-r1.ebuild 4248
-MD5 2cb7b1a00a0529a8256fc0104b5f2a09 files/transcode-gcc34.patch 460
+MD5 2b88185c0f2670050398fa72228293a2 transcode-0.6.11.ebuild 3876
+MD5 57c8cdbe2dfecd488365c99fec890d69 transcode-1.0.0_beta3.ebuild 3783
+MD5 1d1704909b5103d4d6014920a8739abc transcode-0.6.14-r2.ebuild 4213
MD5 bc1cb5a39d56ce5216c803c74e73545d files/digest-transcode-0.6.11 69
MD5 8fde4803c96e026f6caa94fa0e42687f files/digest-transcode-0.6.12-r1 69
-MD5 b2561dbf66455c878a08afd19868dc5d files/transcode-0.6.12-gcc-3.4.patch 2503
-MD5 3b957eef288ce095a2ff0a256aec7c93 files/transcode-0.6.11-no-mmx.patch 1491
MD5 8fde4803c96e026f6caa94fa0e42687f files/digest-transcode-0.6.12-r2 69
+MD5 870fbce21a78f1dcde8efc61df838497 files/digest-transcode-0.6.13-r1 69
+MD5 613fd9a0d03f4df95d439dd0a4c1bccb files/digest-transcode-0.6.14 69
+MD5 3b957eef288ce095a2ff0a256aec7c93 files/transcode-0.6.11-no-mmx.patch 1491
+MD5 b2561dbf66455c878a08afd19868dc5d files/transcode-0.6.12-gcc-3.4.patch 2503
MD5 085f514d559cd32a401241bbbf639d39 files/transcode-0.6.12-r2-dvdmenu.patch 4840
MD5 90f42fff1c2a0b4be8df0b015ac2b309 files/transcode-0.6.12-r2-gcc34.patch 2963
-MD5 870fbce21a78f1dcde8efc61df838497 files/digest-transcode-0.6.13-r1 69
MD5 936b66bb309cb3c1dfa33924d3114fa9 files/transcode-0.6.13-r1-bitstream.patch 446
-MD5 613fd9a0d03f4df95d439dd0a4c1bccb files/digest-transcode-0.6.14 69
-MD5 613fd9a0d03f4df95d439dd0a4c1bccb files/digest-transcode-0.6.14-r1 69
MD5 157144ea855da2e35b32ff043fc7f851 files/transcode-0.6.14-amd64_mmx.patch 743
MD5 a61546c26ec03e13a25a25eaced110e0 files/transcode-0.6.14-libquicktime094.patch 3880
-MD5 0e69e43a5e4bb37d974f50d0b8524b33 files/transcode-0.6.14-gcc4.patch 3118
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFCbXn/1ZcsMnZjRyIRAgApAKCwgsCZD/kcCdL7vVoZHIdZgT4XggCgkdnC
-6/0Y70C57Dvx6JhayoSXLaM=
-=uQiN
------END PGP SIGNATURE-----
+MD5 2cb7b1a00a0529a8256fc0104b5f2a09 files/transcode-gcc34.patch 460
+MD5 c70e2a40a01f7a060b1cdad18adccf46 files/digest-transcode-1.0.0_beta3 73
+MD5 8e1251c76b508dfdfe0e4f0c0b166540 files/digest-transcode-0.6.14-r2 144
diff --git a/media-video/transcode/files/digest-transcode-0.6.14-r1 b/media-video/transcode/files/digest-transcode-0.6.14-r1
deleted file mode 100644
index 76fd263f2079..000000000000
--- a/media-video/transcode/files/digest-transcode-0.6.14-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 9bfef83b7e0fe2c27d25d871fef75a92 transcode-0.6.14.tar.gz 2614579
diff --git a/media-video/transcode/files/digest-transcode-0.6.14-r2 b/media-video/transcode/files/digest-transcode-0.6.14-r2
new file mode 100644
index 000000000000..129f4c437e03
--- /dev/null
+++ b/media-video/transcode/files/digest-transcode-0.6.14-r2
@@ -0,0 +1,2 @@
+MD5 9bfef83b7e0fe2c27d25d871fef75a92 transcode-0.6.14.tar.gz 2614579
+MD5 70009391411b9a386a920f945afe9a13 transcode-patches-0.6.14-r2.tbz2 2002
diff --git a/media-video/transcode/files/digest-transcode-1.0.0_beta3 b/media-video/transcode/files/digest-transcode-1.0.0_beta3
new file mode 100644
index 000000000000..44349da779dc
--- /dev/null
+++ b/media-video/transcode/files/digest-transcode-1.0.0_beta3
@@ -0,0 +1 @@
+MD5 963645ae3c08363d8035e874dffc89e7 transcode-1.0.0beta3.tar.gz 2346963
diff --git a/media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch b/media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch
deleted file mode 100644
index f364d079eccf..000000000000
--- a/media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -ur transcode-0.6.14.orig/libvo/yuv2rgb.c transcode-0.6.14/libvo/yuv2rgb.c
---- transcode-0.6.14.orig/libvo/yuv2rgb.c 2004-11-03 04:45:39.000000000 +0100
-+++ transcode-0.6.14/libvo/yuv2rgb.c 2005-04-13 01:37:20.095054432 +0200
-@@ -71,7 +71,8 @@
- void yuv2rgb_init (int bpp, int mode)
- {
- yuv2rgb = NULL;
--#ifdef ARCH_X86
-+#ifdef HAVE_MMX
-+# if defined(ARCH_X86) || defined(ARCH_X86_64)
- if ((yuv2rgb == NULL) && (vo_mm_accel & MM_ACCEL_X86_MMXEXT)) {
- yuv2rgb = yuv2rgb_init_mmxext (bpp, mode);
- if (yuv2rgb != NULL)
-@@ -82,6 +83,7 @@
- if (yuv2rgb != NULL)
- fprintf (stderr, "Using MMX for colorspace transform\n");
- }
-+# endif
- #endif
- #ifdef LIBVO_MLIB
- if ((yuv2rgb == NULL) && (vo_mm_accel & MM_ACCEL_MLIB)) {
diff --git a/media-video/transcode/files/transcode-0.6.14-gcc4.patch b/media-video/transcode/files/transcode-0.6.14-gcc4.patch
deleted file mode 100644
index 08a736a1b4bc..000000000000
--- a/media-video/transcode/files/transcode-0.6.14-gcc4.patch
+++ /dev/null
@@ -1,124 +0,0 @@
---- transcode-0.6.14/libac3/bitstream.c 2005-04-25 21:46:31.000000000 +0000
-+++ transcode-0.6.14.az/libac3/bitstream.c 2005-04-25 21:47:25.000000000 +0000
-@@ -97,7 +97,7 @@
- static inline void
- bitstream_fill_current()
- {
-- current_word = *((uint_32*)buffer_start)++;
-+ current_word = *buffer_start++;
- current_word = swab32(current_word);
- }
-
---- transcode-0.6.14/import/extract_mpeg2.c
-+++ transcode-0.6.14.az/import/extract_mpeg2.c
-@@ -38,7 +38,7 @@
- static uint8_t buffer[BUFFER_SIZE];
- static FILE *in_file, *out_file;
-
--int verbose;
-+static int verbose;
-
- static void ps_loop (void)
- {
---- transcode-0.6.14/import/extract_mp3.c
-+++ transcode-0.6.14.az/import/extract_mp3.c
-@@ -39,7 +39,7 @@
- static uint8_t buffer[BUFFER_SIZE];
- static FILE *in_file, *out_file;
-
--int verbose;
-+static int verbose;
-
- static int demux_track=0xc0;
-
---- transcode-0.6.14/import/extract_ogm.c
-+++ transcode-0.6.14.az/import/extract_ogm.c
-@@ -45,7 +45,7 @@
- int no[3];
- int xraw = 0;
-
--int verbose = 0;
-+static int verbose = 0;
-
- #if (HAVE_OGG && HAVE_VORBIS)
-
---- transcode-0.6.14/import/demuxer.c
-+++ transcode-0.6.14.az/import/demuxer.c
-@@ -37,7 +37,7 @@
- #include "demuxer.h"
- #include "packets.h"
-
--int verbose=TC_QUIET;
-+static int verbose=TC_QUIET;
- static int demux_mode=TC_DEMUX_SEQ_ADJUST;
-
- int gop, gop_pts, gop_cnt;
---- transcode-0.6.14/src/transcode.h
-+++ transcode-0.6.14.az/src/transcode.h
-@@ -579,7 +579,7 @@
-
- #define pow2(b) (((b)==0) ? 1 : 1<<(b))
-
--extern int verbose;
-+static int verbose;
- extern int pcmswap;
- extern int rescale;
- extern int im_clip;
---- transcode-0.6.14/src/video_trans.h
-+++ transcode-0.6.14.az/src/video_trans.h
-@@ -149,7 +149,7 @@
- extern redtab_t hori_table_8[];
- extern redtab_t hori_table_8_up[];
-
--extern int gamma_table_flag;
-+static int gamma_table_flag;
- extern unsigned char gamma_table[];
-
- extern unsigned long *aa_table_c;
---- transcode-0.6.14/src/transcode.c
-+++ transcode-0.6.14.az/src/transcode.c
-@@ -91,7 +91,7 @@
-
- // global information structure
- static vob_t *vob;
--int verbose = TC_INFO;
-+static int verbose = TC_INFO;
-
- static int core_mode=TC_MODE_DEFAULT;
-
---- transcode-0.6.14/filter/yuvdenoise/Makefile.am
-+++ transcode-0.6.14.az/filter/yuvdenoise/Makefile.am
-@@ -14,8 +14,7 @@
- -ffast-math \
- -frerun-cse-after-loop \
- -frerun-loop-opt \
-- -fexpensive-optimizations \
-- -fmove-all-movables
-+ -fexpensive-optimizations
-
- AM_CPPFLAGS = -D_REENTRANT
-
---- transcode-0.6.14/filter/subtitler/color_processor.c
-+++ transcode-0.6.14.az/filter/subtitler/color_processor.c
-@@ -70,8 +70,8 @@
- dsaturation *= dsat;
-
- /* demodulate :) our quadrature demodulator */
--(int)*u = sin(dcolor) * dsaturation;
--(int)*v = cos(dcolor) * dsaturation;
-+*u = sin(dcolor) * dsaturation;
-+*v = cos(dcolor) * dsaturation;
-
- /* and do this for each pixel...... */
-
---- transcode-0.6.14/tools/tcmodinfo.c
-+++ transcode-0.6.14.az/tools/tcmodinfo.c
-@@ -83,7 +83,7 @@
- // dependencies
- // Yeah, this sucks
- vob_t *tc_get_vob() {return(&vob);}
--int verbose = 1;
-+static int verbose = 1;
- int rgbswap = 0;
- int tc_accel = -1; //acceleration code
- int flip = 0;
diff --git a/media-video/transcode/files/transcode-0.6.14-libquicktime094.patch b/media-video/transcode/files/transcode-0.6.14-libquicktime094.patch
deleted file mode 100644
index bd6ae1051a05..000000000000
--- a/media-video/transcode/files/transcode-0.6.14-libquicktime094.patch
+++ /dev/null
@@ -1,109 +0,0 @@
-diff -ur transcode-0.6.14.orig/configure.in transcode-0.6.14/configure.in
---- transcode-0.6.14.orig/configure.in 2004-11-15 07:16:27.000000000 +0100
-+++ transcode-0.6.14/configure.in 2005-04-13 01:49:51.437832968 +0200
-@@ -958,6 +958,10 @@
- [C], [quicktime/lqt.h], quicktime, quicktime_open)
- if test x"$have_libquicktime" = x"yes" ; then
- AC_DEFINE([HAVE_LIBQUICKTIME], 1, [have libquicktime support])
-+ AC_CHECK_LIB(quicktime, lqt_encode_video,
-+ [AC_DEFINE([LIBQUICKTIME_000904], [1], [Have libquicktime 0.9.4 or newer])],
-+ [],
-+ [$LIBQUICKTIME_EXTRA_LIBS])
- fi
- AM_CONDITIONAL(HAVE_LIBQUICKTIME, test x"$have_libquicktime" = x"yes")
- AC_SUBST(LIBQUICKTIME_CFLAGS)
-diff -ur transcode-0.6.14.orig/export/export_mov.c transcode-0.6.14/export/export_mov.c
---- transcode-0.6.14.orig/export/export_mov.c 2004-11-03 04:45:52.000000000 +0100
-+++ transcode-0.6.14/export/export_mov.c 2005-04-13 01:50:03.246037848 +0200
-@@ -102,6 +102,20 @@
- {"info", "", "Info string (no '=' or ',' allowed) "},
- {NULL, NULL, NULL}};
-
-+#ifdef LIBQUICKTIME_000904
-+/* from libquicktime */
-+int tc_quicktime_get_timescale(double frame_rate)
-+{
-+ int timescale = 600;
-+ /* Encode the 29.97, 23.976, 59.94 framerates */
-+ if(frame_rate - (int)frame_rate != 0)
-+ timescale = (int)(frame_rate * 1001 + 0.5);
-+ else
-+ if((600 / frame_rate) - (int)(600 / frame_rate) != 0)
-+ timescale = (int)(frame_rate * 100 + 0.5);
-+ return timescale;
-+}
-+#endif
-
- /* print list of things. Shamelessly stolen from export_ffmpeg.c */
- static int list(char *list_type)
-@@ -262,8 +276,16 @@
- return(TC_EXPORT_ERROR);
- }
-
-+#if !defined(LIBQUICKTIME_000904)
- /* set proposed video codec */
- lqt_set_video(qtfile, 1, w, h, vob->ex_fps,qt_codec_info[0]);
-+#else
-+ fprintf(stderr, "\n \n %i \n \n", tc_quicktime_get_timescale(vob->ex_fps));
-+ /* set proposed video codec */
-+ lqt_set_video(qtfile, 1, w, h,
-+ tc_quicktime_get_timescale(vob->ex_fps) / vob->ex_fps+0.5,
-+ tc_quicktime_get_timescale(vob->ex_fps), qt_codec_info[0]);
-+#endif
- }
-
- /* set color model */
-diff -ur transcode-0.6.14.orig/import/decode_mov.c transcode-0.6.14/import/decode_mov.c
---- transcode-0.6.14.orig/import/decode_mov.c 2004-11-03 04:45:41.000000000 +0100
-+++ transcode-0.6.14/import/decode_mov.c 2005-04-13 01:49:51.438832816 +0200
-@@ -160,6 +160,7 @@
- }
- free(p_buffer);
- }
-+#if !defined(LIBQUICKTIME_000904)
- else if((strcasecmp(p_a_codec,QUICKTIME_RAW)==0) || (strcasecmp(p_a_codec,QUICKTIME_TWOS)==0))
- {
- s_sample=(1.00 * s_channel * s_bits *s_audio_rate)/(s_fps*8);
-@@ -180,6 +181,7 @@
- quicktime_close(p_qt_structure);
- free(p_buffer);
- }
-+#endif
- else
- {
- quicktime_close(p_qt_structure);
-diff -ur transcode-0.6.14.orig/import/import_mov.c transcode-0.6.14/import/import_mov.c
---- transcode-0.6.14.orig/import/import_mov.c 2004-11-03 04:45:42.000000000 +0100
-+++ transcode-0.6.14/import/import_mov.c 2005-04-13 01:49:51.438832816 +0200
-@@ -136,11 +136,13 @@
- if(quicktime_supported_audio(qt_audio, 0)!=0) {
- rawAudioMode = 0;
- }
-+#if !defined(LIBQUICKTIME_000904)
- /* RAW PCM is directly supported */
- else if(strcasecmp(codec,QUICKTIME_RAW)==0) {
- rawAudioMode = 1;
- fprintf(stderr,"[%s] using RAW audio mode!\n",MOD_NAME);
- }
-+#endif
- /* unsupported codec */
- else {
- fprintf(stderr, "error: quicktime audio codec '%s' not supported!\n",
-@@ -334,12 +336,14 @@
- }
-
- /* raw read mode */
-+#if !defined(LIBQUICKTIME_000904)
- if(rawAudioMode) {
- bytes_read = quicktime_read_audio(qt_audio,
- param->buffer, param->size, 0);
-- }
-- /* decode audio mode */
-- else {
-+ } else
-+#endif
-+ {
-+ /* decode audio mode */
- long pos = quicktime_audio_position(qt_audio,0);
- long samples = param->size;
- if(bits==16)
diff --git a/media-video/transcode/transcode-0.6.14-r1.ebuild b/media-video/transcode/transcode-0.6.14-r2.ebuild
index b051e1a8edf3..1b4640e0dbd6 100644
--- a/media-video/transcode/transcode-0.6.14-r1.ebuild
+++ b/media-video/transcode/transcode-0.6.14-r2.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-0.6.14-r1.ebuild,v 1.5 2005/04/25 23:10:53 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-0.6.14-r2.ebuild,v 1.1 2005/04/27 11:14:34 flameeyes Exp $
inherit libtool flag-o-matic eutils multilib
+PATCH_VER=${PVR}
+
MY_P="${P/_pre/.}"
S=${WORKDIR}/${MY_P}
DESCRIPTION="video stream processing tool"
@@ -11,7 +13,9 @@ HOMEPAGE="http://www.transcoding.org/cgi-bin/transcode"
SRC_URI="http://www.jakemsr.com/transcode/${P}.tar.gz
http://www.ligo.caltech.edu/~pehrens/${P}.tar.gz
http://www.kraymer.de/mirroring/${P}.tar.gz
- http://rebels.plukwa.net/linux-video/${PN}/${P}.tar.gz"
+ http://rebels.plukwa.net/linux-video/${PN}/${P}.tar.gz
+
+ http://dev.gentoo.org/~flameeyes/distfiles/${PN}-patches-${PATCH_VER}.tbz2"
LICENSE="GPL-2"
SLOT="0"
@@ -60,14 +64,7 @@ src_unpack() {
unpack ${A}
cd ${S}
- # needed for libquicktime >= 0.9.4, see #85865
- epatch ${FILESDIR}/${P}-libquicktime094.patch
-
- # apply amd64 and mmx patches from upstream CVS
- epatch ${FILESDIR}/${P}-amd64_mmx.patch
-
- # fix building with gcc4
- epatch ${FILESDIR}/${P}-gcc4.patch
+ EPATCH_SUFFIX="patch" epatch ${WORKDIR}/${PATCH_VER}/
libtoolize --copy --force || die "libtoolize failed"
autoreconf -i || die "autoreconf failed"
@@ -130,19 +127,18 @@ src_compile() {
$(use_enable v4l) \
$(use_enable xml2 libxml2) \
${myconf} \
- || die
+ || die "econf failed"
- emake -j1 all || die
+ emake -j1 all || die "emake failed"
if use pvm; then
- sed -i -e "s:\${exec_prefix}/bin/pvmgs:\$(DESTDIR)/\${exec_prefix}/bin/pvmgs:" ${S}/pvm3/Makefile || die
+ sed -i -e "s:\${exec_prefix}/bin/pvmgs:\$(DESTDIR)/\${exec_prefix}/bin/pvmgs:" \
+ ${S}/pvm3/Makefile || die "sed failed"
fi
}
src_install () {
- make \
- DESTDIR=${D} \
- install || die
+ make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS ChangeLog README TODO
}
diff --git a/media-video/transcode/transcode-1.0.0_beta3.ebuild b/media-video/transcode/transcode-1.0.0_beta3.ebuild
new file mode 100644
index 000000000000..354ac245ed10
--- /dev/null
+++ b/media-video/transcode/transcode-1.0.0_beta3.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-1.0.0_beta3.ebuild,v 1.1 2005/04/27 11:14:34 flameeyes Exp $
+
+inherit libtool flag-o-matic eutils multilib
+
+MY_P="${P/_/}"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="video stream processing tool"
+HOMEPAGE="http://www.transcoding.org/cgi-bin/transcode"
+SRC_URI="http://www.jakemsr.com/transcode/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="X 3dnow a52 avi altivec divx4linux dv dvdread mp3 fame truetype \
+ gtk imagemagick jpeg lzo mjpeg mpeg mmx network ogg vorbis pvm quicktime \
+ sdl sse sse2 theora v4l xvid xml2 ffmpeg"
+
+RDEPEND="a52? ( >=media-libs/a52dec-0.7.4 )
+ dv? ( >=media-libs/libdv-0.99 )
+ dvdread? ( >=media-libs/libdvdread-0.9.0 )
+ >=media-video/ffmpeg-0.4.9_pre1
+ xvid? ( >=media-libs/xvid-1.0.2 )
+ mjpeg? ( >=media-video/mjpegtools-1.6.2-r3 )
+ lzo? ( >=dev-libs/lzo-1.08 )
+ fame? ( >=media-libs/libfame-0.9.1 )
+ imagemagick? ( >=media-gfx/imagemagick-5.5.6.0 )
+ media-libs/netpbm
+ media-libs/libexif
+ X? ( virtual/x11 )
+ avi? ( >=media-video/avifile-0.7.41.20041001 )
+ divx4linux? ( >=media-libs/divx4linux-20030428 )
+ mpeg? ( media-libs/libmpeg3 )
+ mp3? ( >=media-sound/lame-3.93 )
+ 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 )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ truetype? ( >=media-libs/freetype-2 )
+ pvm? ( >=sys-cluster/pvm-3.4 )
+ ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20050226-r3 )
+ || ( sys-libs/glibc dev-libs/libiconv )"
+
+DEPEND="${RDEPEND}
+ x86? ( >=dev-lang/nasm-0.98.36 )
+ =sys-devel/gcc-3*"
+
+pkg_setup() {
+ if has_version xorg-x11 && ! built_with_use xorg-x11 xv; then
+ die "You need xv support to compile transcode."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ libtoolize --copy --force || die "libtoolize failed"
+ autoreconf -i || die "autoreconf failed"
+
+ elibtoolize # fix invalid paths in .la files of plugins
+}
+
+src_compile() {
+ filter-flags -maltivec -mabi=altivec -momit-leaf-frame-pointer
+ use ppc && append-flags -U__ALTIVEC__
+
+ if use pvm; then
+ if use sparc; then
+ myconf="${myconf} --enable-pvm3 \
+ --with-pvm3-lib=${PVM_ROOT}/lib/LINUXSPARC \
+ --with-pvm3-include=${PVM_ROOT}/include"
+ else
+ myconf="${myconf} --enable-pvm3 \
+ --with-pvm3-lib=${PVM_ROOT}/lib/LINUX \
+ --with-pvm3-include=${PVM_ROOT}/include"
+ fi
+ fi
+
+ use xvid \
+ && myconf="${myconf} --with-default-xvid=xvid4"
+
+ append-flags -DDCT_YUV_PRECISION=1
+ econf \
+ $(use_enable mmx) \
+ $(use_enable 3dnow) \
+ $(use_enable sse) \
+ $(use_enable sse2) \
+ $(use_enable altivec) \
+ \
+ $(use_enable network netstream) \
+ $(use_enable truetype freetype2) \
+ $(use_enable v4l) \
+ $(use_enable avi avifile) \
+ $(use_enable mp3 lame) \
+ $(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 mpeg libmpeg3) \
+ $(use_enable xml2 libxml2) \
+ $(use_enable mjpeg mjpegtools) \
+ $(use_enable sdl) \
+ $(use_enable gtk) \
+ $(use_enable fame libfame) \
+ $(use_enable imagemagick) \
+ $(use_enable jpeg libjpeg) \
+ --with-mod-path=/usr/$(get_libdir)/transcode \
+ $(use_with X x) \
+ $(use_with ffmpeg libpostproc-builddir "${ROOT}/usr/$(get_libdir)") \
+ ${myconf} \
+ || die
+
+ emake -j1 all || die
+
+ if use pvm; then
+ sed -i -e "s:\${exec_prefix}/bin/pvmgs:\$(DESTDIR)/\${exec_prefix}/bin/pvmgs:" ${S}/pvm3/Makefile || die
+ fi
+}
+
+src_install () {
+ make \
+ DESTDIR=${D} \
+ install || die
+
+ dodoc AUTHORS ChangeLog README TODO
+}