2007-04-30 12:46:40 +10:00
|
|
|
# Description: Command line utilities for transcoding various media formats.
|
|
|
|
# URL: http://www.transcoding.org/cgi-bin/transcode
|
2008-03-26 13:45:31 +11:00
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
2007-04-30 12:46:40 +10:00
|
|
|
# Packager: Martin Opel, mo at obbl-net dot de
|
2008-08-03 01:22:01 +10:00
|
|
|
# Depends on: imagemagick liba52 libdvdnav libfame libtheora lzo mjpegtools mpeg2dec
|
2007-04-30 12:46:40 +10:00
|
|
|
|
|
|
|
name=transcode
|
2008-12-31 22:44:25 +11:00
|
|
|
version=1.0.7
|
2007-04-30 12:46:40 +10:00
|
|
|
release=1
|
2008-08-03 01:22:01 +10:00
|
|
|
source=(http://fromani.exit1.org/$name-$version.tar.bz2
|
|
|
|
http://dl.sourceforge.net/subtitleripper/subtitleripper-0.3-4.tgz
|
2008-12-31 22:44:25 +11:00
|
|
|
$name-1.0.6-imagemagick-detection.patch
|
|
|
|
$name-1.0.6-ffmpeg-directory-include.patch)
|
2007-04-30 12:46:40 +10:00
|
|
|
|
|
|
|
build() {
|
2008-08-03 01:22:01 +10:00
|
|
|
cd $name-$version
|
2008-12-31 22:44:25 +11:00
|
|
|
patch -p 1 -i $SRC/$name-1.0.6-imagemagick-detection.patch
|
|
|
|
patch -p 1 -i $SRC/$name-1.0.6-ffmpeg-directory-include.patch
|
2008-08-03 01:22:01 +10:00
|
|
|
aclocal
|
|
|
|
autoconf
|
|
|
|
libtoolize --force --copy
|
|
|
|
autoheader
|
|
|
|
automake --gnu --add-missing --copy
|
2008-06-12 04:57:19 +10:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2008-08-03 01:22:01 +10:00
|
|
|
--with-default-xvid=xvid4 \
|
2008-06-12 04:57:19 +10:00
|
|
|
--enable-a52 \
|
|
|
|
--enable-a52-default-decoder \
|
|
|
|
--enable-avifile \
|
2008-08-03 01:22:01 +10:00
|
|
|
--enable-libfame \
|
|
|
|
--enable-freetype2 \
|
|
|
|
--enable-imagemagick \
|
2008-06-12 04:57:19 +10:00
|
|
|
--enable-libdv \
|
2008-08-03 01:22:01 +10:00
|
|
|
--enable-libpostproc \
|
2008-06-12 04:57:19 +10:00
|
|
|
--enable-libquicktime \
|
2008-08-03 01:22:01 +10:00
|
|
|
--enable-libxml2 \
|
2008-06-12 04:57:19 +10:00
|
|
|
--enable-lzo \
|
|
|
|
--enable-mjpegtools \
|
2008-08-03 01:22:01 +10:00
|
|
|
--enable-netstream \
|
|
|
|
--enable-ogg \
|
|
|
|
--enable-sdl \
|
|
|
|
--enable-theora \
|
|
|
|
--enable-v4l \
|
|
|
|
--enable-vorbis \
|
|
|
|
--disable-avifile \
|
|
|
|
--disable-xio
|
2007-06-25 18:39:32 +10:00
|
|
|
|
2007-04-30 12:46:40 +10:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share
|
|
|
|
|
|
|
|
# Subtitle support (Han Boetes)
|
|
|
|
mkdir -p contrib/subrip
|
|
|
|
cd contrib/subrip
|
|
|
|
cp ../../../subtitleripper/* .
|
2008-04-11 11:35:27 +10:00
|
|
|
sed -i -e 's|.*ppm.*||i' Makefile
|
2007-04-30 12:46:40 +10:00
|
|
|
make clean all
|
2008-04-11 11:35:27 +10:00
|
|
|
install -m 0755 -D srttool subtitle2pgm subtitle2vobsub $PKG/usr/bin
|
|
|
|
chmod a-x $PKG/usr/lib/transcode/*.so
|
2007-04-30 12:46:40 +10:00
|
|
|
}
|