summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/transcode
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-08 17:08:28 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-08 17:08:28 (GMT)
commitc38715641e214272ad7dc6d495edd29940366e7f (patch)
tree9dcd507543e67458d98fa7462f62026041524047 /abs/extra-testing/transcode
parent3d91b06198a56b6579cb0bd77de65f5908571b87 (diff)
downloadlinhes_pkgbuild-c38715641e214272ad7dc6d495edd29940366e7f.zip
linhes_pkgbuild-c38715641e214272ad7dc6d495edd29940366e7f.tar.gz
linhes_pkgbuild-c38715641e214272ad7dc6d495edd29940366e7f.tar.bz2
packages that will be needed in the future.
This is the initial merge of packages from MythVantage that are not MythVantage specific.
Diffstat (limited to 'abs/extra-testing/transcode')
-rw-r--r--abs/extra-testing/transcode/PKGBUILD65
-rw-r--r--abs/extra-testing/transcode/imagemagick.patch41
-rw-r--r--abs/extra-testing/transcode/transcode.install23
3 files changed, 129 insertions, 0 deletions
diff --git a/abs/extra-testing/transcode/PKGBUILD b/abs/extra-testing/transcode/PKGBUILD
new file mode 100644
index 0000000..3c33d2d
--- /dev/null
+++ b/abs/extra-testing/transcode/PKGBUILD
@@ -0,0 +1,65 @@
+# $Id: PKGBUILD 15655 2008-10-16 19:04:55Z tobias $
+# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
+# Maintainer: roberto <roberto@archlinux.org>
+
+pkgname=transcode
+_sripver=0.3-4
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="Transcode is a video/DVD ripper and encoder for the terminal/console."
+arch=(i686 x86_64)
+license=('GPL2')
+depends=('imagemagick>=6.2.6' 'lzo2' 'libdv' 'libdvdread' 'ffmpeg' 'mjpegtools' \
+ 'xvidcore' 'libmpeg2' 'libtheora' 'libxaw' 'x264>=20080625' 'libxml2' \
+ 'libxv')
+makedepends=('nasm')
+install=transcode.install
+url="http://transcoding.org"
+options=(!libtool !makeflags)
+source=(http://fromani.exit1.org/${pkgname}-${pkgver}.tar.bz2 \
+ http://dl.sourceforge.net/sourceforge/subtitleripper/subtitleripper-${_sripver}.tgz)
+md5sums=('7c3a341b0e4540e34ef50c66b0ab751d' 'c0bd49a88f667c68c4430ad25bbed510')
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ sed -i 's|ffmpeg/avcodec.h|libavcodec/avcodec.h|' import/{import_ffmpeg.c,decode_lavc.c} || return 1
+ sed -i 's|ffmpeg/avcodec.h|libavcodec/avcodec.h|' export/{aud_aux.c,export_ffmpeg.c,ffmpeg_cfg.h} || return 1
+ sed -i 's|ffmpeg/avcodec.h|libavcodec/avcodec.h|' filter/filter_resample.c || return 1
+ # building from here
+ ./configure --prefix=/usr \
+ --enable-sse=no --enable-sse2=no --enable-altivec=no --enable-mmx \
+ --enable-avifile=no --enable-lame --enable-ogg --enable-vorbis --enable-theora \
+ --enable-libdv --enable-a52-default-decoder --enable-libxml2 --enable-v4l \
+ --enable-imagemagick --enable-libjpeg --enable-lzo --enable-mjpegtools \
+ --enable-sdl --enable-freetype2 --enable-a52 --enable-libpostproc \
+ --with-libxml2-prefix=/usr \
+ --with-mjpegtools-prefix=/usr \
+ --with-imagemagick-prefix=/usr \
+ --with-libdv-includes=/usr \
+ --with-libpostproc-includes=/usr/include/libpostproc \
+ --with-ogg-prefix=/usr \
+ --with-lame-libs=/usr \
+ --with-lzo-libs=/usr/lib \
+ --with-libavcodec-prefix=/usr \
+ --with-libavcodec-includes=/usr/include \
+ --with-libavcodec-libs=/usr/lib
+
+ make || return 1
+ make DESTDIR=$startdir/pkg install
+ ##############################################################################
+ # this imports the latest subtitleripper sources and replaces the internal
+ rm -rf $startdir/src/$pkgname-$pkgver/contrib/subrip
+ tar xzf ../subtitleripper-$_sripver.tgz -C $startdir/src/$pkgname-$pkgver/contrib
+ mv $startdir/src/$pkgname-$pkgver/contrib/subtitleripper \
+ $startdir/src/$pkgname-$pkgver/contrib/subrip
+ # removes dependency on libppm, make it dependend on netpbm just failed, argh...
+ sed -i 's|^\(.*lppm.*\)$|#\1|' contrib/subrip/Makefile
+ sed -i 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' contrib/subrip/Makefile
+ cd contrib/subrip
+ make
+ install -m 755 pgm2txt $startdir/pkg/usr/bin/
+ install -m 755 srttool $startdir/pkg/usr/bin/
+ install -m 755 subtitle2pgm $startdir/pkg/usr/bin/
+ install -m 755 subtitle2vobsub $startdir/pkg/usr/bin/
+ install -m 755 vobsub2pgm $startdir/pkg/usr/bin/
+}
diff --git a/abs/extra-testing/transcode/imagemagick.patch b/abs/extra-testing/transcode/imagemagick.patch
new file mode 100644
index 0000000..ed8ce23
--- /dev/null
+++ b/abs/extra-testing/transcode/imagemagick.patch
@@ -0,0 +1,41 @@
+--- transcode-1.0.1.orig/filter/filter_compare.c
++++ transcode-1.0.1/filter/filter_compare.c
+@@ -180,6 +180,7 @@
+ if (!(compare[instance]->results = fopen(results_name, "w")))
+ {
+ perror("could not open file for writing");
++ return (-1);
+ }
+
+ InitializeMagick("");
+--- transcode-1.0.1.orig/filter/filter_logo.c 2005-10-21 22:18:49.000000000 +0200
++++ transcode-1.0.1/filter/filter_logo.c 2005-10-21 22:19:52.000000000 +0200
+@@ -183,17 +183,18 @@
+
+ if (optstr_get (options, "help", "") >= 0)
+ help_optstr();
+- }
+
+- if (verbose > 1) {
+- printf (" Logo renderer Settings:\n");
+- printf (" file = %s\n", mfd->file);
+- printf (" posdef = %d\n", mfd->pos);
+- printf (" pos = %dx%d\n", mfd->posx, mfd->posy);
+- printf (" range = %u-%u\n", mfd->start, mfd->end);
+- printf (" flip = %d\n", mfd->flip);
+- printf (" ignoredelay = %d\n", mfd->ignoredelay);
+- printf (" rgbswap = %d\n", mfd->rgbswap);
++ if (verbose > 1) {
++ printf (" Logo renderer Settings:\n");
++ printf (" file = %s\n", mfd->file);
++ printf (" posdef = %d\n", mfd->pos);
++ printf (" pos = %dx%d\n", mfd->posx, mfd->posy);
++ printf (" range = %u-%u\n", mfd->start, mfd->end);
++ printf (" flip = %d\n", mfd->flip);
++ printf (" ignoredelay = %d\n", mfd->ignoredelay);
++ printf (" rgbswap = %d\n", mfd->rgbswap);
++ }
++ return (-1);
+ }
+
+ InitializeMagick("");
diff --git a/abs/extra-testing/transcode/transcode.install b/abs/extra-testing/transcode/transcode.install
new file mode 100644
index 0000000..75c533b
--- /dev/null
+++ b/abs/extra-testing/transcode/transcode.install
@@ -0,0 +1,23 @@
+# arg 1: the new package version
+post_install() {
+echo ">>"
+echo ">> Transcode currently does not work with divx4linux. Please"
+echo ">> use xvid(core) instead."
+echo ">>"
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ /bin/true
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+op=$1
+shift
+
+$op $*