79 lines
2.3 KiB
Plaintext
79 lines
2.3 KiB
Plaintext
# Description: Command line utilities for transcoding various media formats.
|
|
# URL: http://tcforge.berlios.de/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Martin Opel, mo at obbl-net dot de
|
|
# Depends on: imagemagick liba52 libdvdread libmpeg2 lzo mjpegtools
|
|
|
|
name=transcode
|
|
version=1.1.7
|
|
release=3
|
|
source=(https://bitbucket.org/france/transcode-tcforge/downloads/$name-$version.tar.bz2
|
|
http://downloads.sourceforge.net/project/subtitleripper/subtitleripper/subtitleripper-0.3-4/subtitleripper-0.3-4.tgz
|
|
transcode-1.1.7-ffmpeg.patch
|
|
transcode-1.1.7-ffmpeg-0.10.patch
|
|
transcode-1.1.7-ffmpeg-0.11.patch
|
|
transcode-1.1.7-preset-free.patch
|
|
transcode-1.1.7-libav-9.patch
|
|
transcode-1.1.7-preset-force.patch
|
|
transcode-1.1.7-ffmpeg2.patch
|
|
subtitleripper-0.3.4-linkingorder.patch
|
|
subtitleripper-0.3.4-respect-ldflags.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
CFLAGS+=' -pthread'
|
|
|
|
patch -p 0 -i $SRC/transcode-1.1.7-ffmpeg.patch
|
|
patch -p 0 -i $SRC/transcode-1.1.7-ffmpeg-0.10.patch
|
|
patch -p 1 -i $SRC/transcode-1.1.7-ffmpeg-0.11.patch
|
|
patch -p 1 -i $SRC/transcode-1.1.7-preset-free.patch
|
|
patch -p 0 -i $SRC/transcode-1.1.7-libav-9.patch
|
|
patch -p 1 -i $SRC/transcode-1.1.7-preset-force.patch
|
|
patch -p 1 -i $SRC/transcode-1.1.7-ffmpeg2.patch
|
|
sed -i -e 's|freetype/ftglyph.h|freetype2/ftglyph.h|' filter/subtitler/load_font.c
|
|
libtoolize
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--disable-dependency-tracking \
|
|
--enable-alsa \
|
|
--enable-a52 \
|
|
--enable-freetype2 \
|
|
--enable-imagemagick \
|
|
--enable-libdv \
|
|
--enable-libmpeg2 \
|
|
--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
|
|
cd ../subtitleripper
|
|
patch -p1 -i $SRC/subtitleripper-0.3.4-linkingorder.patch
|
|
patch -p1 -i $SRC/subtitleripper-0.3.4-respect-ldflags.patch
|
|
|
|
sed \
|
|
-e 's|^\(.*lppm.*\)$|#\1|' \
|
|
-e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' \
|
|
-e 's/DEFINES :=/DEFINES = -DHAVE_GETLINE/' \
|
|
-i Makefile
|
|
|
|
make
|
|
install -m 0755 -D pgm2txt srttool subtitle2pgm subtitle2vobsub vobsub2pgm $PKG/usr/bin
|
|
}
|