summaryrefslogtreecommitdiffstats
path: root/abs/core/transcode
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/transcode
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/transcode')
-rw-r--r--abs/core/transcode/PKGBUILD67
-rw-r--r--abs/core/transcode/transcode.install6
2 files changed, 73 insertions, 0 deletions
diff --git a/abs/core/transcode/PKGBUILD b/abs/core/transcode/PKGBUILD
new file mode 100644
index 0000000..4535bce
--- /dev/null
+++ b/abs/core/transcode/PKGBUILD
@@ -0,0 +1,67 @@
+# $Id: PKGBUILD 26150 2009-02-03 03:22:44Z eric $
+# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
+# Maintainer: roberto <roberto@archlinux.org>
+
+pkgname=transcode
+_sripver=0.3-4
+pkgver=1.1.0
+pkgrel=6
+pkgdesc="Transcode is a video/DVD ripper and encoder for the terminal/console."
+arch=(i686 x86_64)
+license=('GPL2')
+depends=('imagemagick>=6.4.8.10' 'lzo2' 'libdv' 'libdvdread' 'ffmpeg>=20081220' 'mjpegtools' \
+ 'xvidcore' 'libmpeg2' 'libtheora' 'libxaw' 'x264>=20090108' 'libxml2' \
+ 'libxv' 'a52dec')
+makedepends=('nasm')
+install=transcode.install
+url="http://transcoding.org"
+options=(!libtool !makeflags)
+source=(http://fromani.exit1.org/${pkgname}-${pkgver}.tar.bz2 \
+ http://downloads.sourceforge.net/sourceforge/subtitleripper/subtitleripper-${_sripver}.tgz)
+md5sums=('5ca205e32b546402a48ea8004a7b3232' '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
+ autoconf || return 1
+
+ # building from here
+ ./configure --prefix=/usr --enable-deprecated \
+ --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
+ mkdir $startdir/src/$pkgname-$pkgver/contrib
+ 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/core/transcode/transcode.install b/abs/core/transcode/transcode.install
new file mode 100644
index 0000000..9858c32
--- /dev/null
+++ b/abs/core/transcode/transcode.install
@@ -0,0 +1,6 @@
+post_install() {
+echo ">>"
+echo ">> Transcode currently does not work with divx4linux. Please"
+echo ">> use xvid(core) instead."
+echo ">>"
+}