blob: 04855a34df26df4c815e6f82b6e422afbecce4c1 (
plain)
1 # Description: Command line utilities for transcoding various media formats.
2 # URL: http://www.transcoding.org/cgi-bin/transcode
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: Martin Opel, mo at obbl-net dot de
5 # Depends on: libdvdnav mpeg2dec
6
7 name=transcode
8 version=1.0.5
9 release=1
10 source=(http://transcode.kabewm.com/transcode-$version.tar.bz2 \
11 http://dl.sourceforge.net/subtitleripper/subtitleripper-0.3-4.tgz \
12 ImageMagick-library-rename-fix.patch)
13
14 build() {
15 cd transcode-$version
16 patch -p 1 -i $SRC/ImageMagick-library-rename-fix.patch
17 export CFLAGS="`echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/'`"
18
19 ./configure \
20 --prefix=/usr \
21 --with-lzo-includes='/usr/include/lzo' \
22 --with-imagemagick-includes='/usr/include/ImageMagick' \
23 --enable-libpostproc \
24 --enable-freetype2 \
25 --enable-a52 \
26 --enable-a52-default-decoder \
27 --enable-ogg \
28 --enable-vorbis \
29 --enable-libxml2 \
30 --enable-sdl \
31 --enable-avifile \
32 --enable-theora \
33 --enable-libdv \
34 --enable-libquicktime \
35 --enable-lzo \
36 --enable-mjpegtools \
37 --enable-fame \
38 --enable-imagemagick
39
40 make
41 make DESTDIR=$PKG install
42 rm -r $PKG/usr/share
43
44 # Subtitle support (Han Boetes)
45 mkdir -p contrib/subrip
46 cd contrib/subrip
47 cp ../../../subtitleripper/* .
48 sed -i -e 's|.*ppm.*||i' Makefile
49 make clean all
50 install -m 0755 -D srttool subtitle2pgm subtitle2vobsub $PKG/usr/bin
51 chmod a-x $PKG/usr/lib/transcode/*.so
52 }
|