forked from ports/contrib
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
# Description: Command line utilities for transcoding various media formats.
|
|
# URL: http://www.transcoding.org/cgi-bin/transcode
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Martin Opel, mo at obbl-net dot de
|
|
# Depends on: imagemagick liba52 libdvdnav libfame libtheora lzo mjpegtools mpeg2dec
|
|
|
|
name=transcode
|
|
version=1.0.7
|
|
release=1
|
|
source=(http://fromani.exit1.org/$name-$version.tar.bz2
|
|
http://dl.sourceforge.net/subtitleripper/subtitleripper-0.3-4.tgz
|
|
$name-1.0.6-imagemagick-detection.patch
|
|
$name-1.0.6-ffmpeg-directory-include.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
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
|
|
aclocal
|
|
autoconf
|
|
libtoolize --force --copy
|
|
autoheader
|
|
automake --gnu --add-missing --copy
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-default-xvid=xvid4 \
|
|
--enable-a52 \
|
|
--enable-a52-default-decoder \
|
|
--enable-avifile \
|
|
--enable-libfame \
|
|
--enable-freetype2 \
|
|
--enable-imagemagick \
|
|
--enable-libdv \
|
|
--enable-libpostproc \
|
|
--enable-libquicktime \
|
|
--enable-libxml2 \
|
|
--enable-lzo \
|
|
--enable-mjpegtools \
|
|
--enable-netstream \
|
|
--enable-ogg \
|
|
--enable-sdl \
|
|
--enable-theora \
|
|
--enable-v4l \
|
|
--enable-vorbis \
|
|
--disable-avifile \
|
|
--disable-xio
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
rm -r $PKG/usr/share
|
|
|
|
# Subtitle support (Han Boetes)
|
|
mkdir -p contrib/subrip
|
|
cd contrib/subrip
|
|
cp ../../../subtitleripper/* .
|
|
sed -i -e 's|.*ppm.*||i' Makefile
|
|
make clean all
|
|
install -m 0755 -D srttool subtitle2pgm subtitle2vobsub $PKG/usr/bin
|
|
chmod a-x $PKG/usr/lib/transcode/*.so
|
|
}
|