54 lines
1.4 KiB
Plaintext
54 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: libdvdnav mpeg2dec
|
|
|
|
name=transcode
|
|
version=1.0.5
|
|
release=1
|
|
source=(http://transcode.kabewm.com/transcode-$version.tar.bz2 \
|
|
http://dl.sourceforge.net/subtitleripper/subtitleripper-0.3-4.tgz \
|
|
ImageMagick-library-rename-fix.patch)
|
|
|
|
build() {
|
|
cd transcode-$version
|
|
patch -p 1 -i $SRC/ImageMagick-library-rename-fix.patch
|
|
export CFLAGS="`echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/'`"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-lzo-includes='/usr/include/lzo' \
|
|
--with-imagemagick-includes='/usr/include/ImageMagick' \
|
|
--enable-libpostproc \
|
|
--enable-freetype2 \
|
|
--enable-a52 \
|
|
--enable-a52-default-decoder \
|
|
--enable-ogg \
|
|
--enable-vorbis \
|
|
--enable-libxml2 \
|
|
--enable-sdl \
|
|
--enable-avifile \
|
|
--enable-theora \
|
|
--enable-libdv \
|
|
--enable-libquicktime \
|
|
--enable-lzo \
|
|
--enable-mjpegtools \
|
|
--enable-fame \
|
|
--enable-imagemagick
|
|
|
|
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
|
|
}
|
|
|