forked from ports/contrib
56 lines
1.4 KiB
Plaintext
56 lines
1.4 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: e2fsprogs imagemagick libdvdnav lzo mjpegtools mpeg2dec liba52
|
|
|
|
name=transcode
|
|
version=1.1.2
|
|
release=1
|
|
source=(http://download.berlios.de/tcforge/$name-$version.tar.bz2
|
|
http://downloads.sourceforge.net/subtitleripper/subtitleripper-0.3-4.tgz
|
|
transcode-1.1.0-xvid.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
patch -p 1 -i $SRC/transcode-1.1.0-xvid.patch
|
|
autoreconf -i -I m4
|
|
CFLAGS+=' -pthread'
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--disable-dependency-tracking \
|
|
--enable-alsa \
|
|
--enable-a52 \
|
|
--enable-freetype2 \
|
|
--enable-imagemagick \
|
|
--enable-libdv \
|
|
--enable-libpostproc \
|
|
--enable-libquicktime \
|
|
--enable-libxml2 \
|
|
--enable-lzo \
|
|
--enable-mjpegtools \
|
|
--enable-ogg \
|
|
--enable-sdl \
|
|
--enable-theora \
|
|
--enable-v4l \
|
|
--enable-vorbis \
|
|
--enable-xvid \
|
|
--enable-x264 \
|
|
--enable-faac \
|
|
--enable-libxml2
|
|
|
|
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
|
|
}
|