blob: 842fd5b35b7ff57d93027e676fd8ab2b02cc8ad7 (
plain)
1 # Description: Command line utilities for transcoding various media formats.
2 # URL: http://tcforge.berlios.de/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: ffmpeg imagemagick lame liba52 libdvdread libmpeg2 libtheora libxvid mjpegtools x264 xorg-libxaw
5
6 name=transcode
7 version=1.1.7
8 release=5
9 source=(https://bitbucket.org/france/transcode-tcforge/downloads/$name-$version.tar.bz2
10 http://downloads.sourceforge.net/project/subtitleripper/subtitleripper/subtitleripper-0.3-4/subtitleripper-0.3-4.tgz
11 subtitleripper-0.3.4-linkingorder.patch
12 subtitleripper-0.3.4-respect-ldflags.patch
13 transcode-ffmpeg3.patch
14 transcode-ffmpeg4.patch
15 transcode-imagemagick7.patch)
16
17 build() {
18 cd $name-$version
19
20 CFLAGS+=' -pthread'
21
22 patch -p 1 -i $SRC/transcode-ffmpeg3.patch
23 patch -p 1 -i $SRC/transcode-ffmpeg4.patch
24 patch -p 1 -i $SRC/transcode-imagemagick7.patch
25
26 sed \
27 -e 's|freetype/ftglyph.h|freetype2/freetype/ftglyph.h|' \
28 -i filter/subtitler/load_font.c
29
30 autoreconf -vi
31
32 ./configure \
33 --prefix=/usr \
34 --disable-dependency-tracking \
35 --enable-a52 \
36 --enable-alsa \
37 --enable-freetype2 \
38 --enable-imagemagick \
39 --enable-lame \
40 --enable-libdv \
41 --enable-libjpeg \
42 --enable-libmpeg2 \
43 --enable-libmpeg2convert \
44 --enable-libpostproc \
45 --enable-libxml2 \
46 --enable-lzo \
47 --enable-mjpegtools \
48 --enable-ogg \
49 --enable-sdl \
50 --enable-theora \
51 --enable-v4l \
52 --enable-vorbis \
53 --enable-x264 \
54 --enable-xvid
55
56 #https://bugzilla.gnome.org/show_bug.cgi?id=655517
57 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
58
59 make
60 make DESTDIR=$PKG install
61
62 rm -r $PKG/usr/share/doc
63
64 # Subtitle support
65 cd ../subtitleripper
66 patch -p1 -i $SRC/subtitleripper-0.3.4-linkingorder.patch
67 patch -p1 -i $SRC/subtitleripper-0.3.4-respect-ldflags.patch
68
69 sed \
70 -e 's|^\(.*lppm.*\)$|#\1|' \
71 -e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' \
72 -e 's/DEFINES :=/DEFINES = -DHAVE_GETLINE/' \
73 -i Makefile
74
75 make
76 install -m 0755 -t $PKG/usr/bin \
77 pgm2txt srttool subtitle2pgm \
78 subtitle2vobsub vobsub2pgm
79 }
|