1
0
forked from ports/contrib

79 lines
2.3 KiB
Plaintext
Raw Normal View History

2007-04-30 12:46:40 +10:00
# Description: Command line utilities for transcoding various media formats.
2013-02-14 16:40:56 +11:00
# URL: http://tcforge.berlios.de/
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2007-04-30 12:46:40 +10:00
# Packager: Martin Opel, mo at obbl-net dot de
2009-11-04 01:09:29 +11:00
# Depends on: imagemagick liba52 libdvdread libmpeg2 lzo mjpegtools
2007-04-30 12:46:40 +10:00
name=transcode
2013-02-14 16:40:56 +11:00
version=1.1.7
2014-09-12 21:15:36 +10:00
release=3
2013-02-14 16:40:56 +11:00
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
2013-11-28 23:33:48 +11:00
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
2014-09-12 21:15:36 +10:00
transcode-1.1.7-ffmpeg2.patch
subtitleripper-0.3.4-linkingorder.patch
subtitleripper-0.3.4-respect-ldflags.patch)
2007-04-30 12:46:40 +10:00
build() {
2008-08-03 01:22:01 +10:00
cd $name-$version
2009-01-24 19:06:43 +11:00
CFLAGS+=' -pthread'
2008-06-12 04:57:19 +10:00
2013-11-28 23:33:48 +11:00
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
2014-09-12 21:15:36 +10:00
sed -i -e 's|freetype/ftglyph.h|freetype2/ftglyph.h|' filter/subtitler/load_font.c
2013-11-28 23:33:48 +11:00
libtoolize
2013-02-14 16:40:56 +11:00
2008-06-12 04:57:19 +10:00
./configure \
--prefix=/usr \
2009-01-24 19:06:43 +11:00
--mandir=/usr/man \
--disable-dependency-tracking \
--enable-alsa \
2008-06-12 04:57:19 +10:00
--enable-a52 \
2008-08-03 01:22:01 +10:00
--enable-freetype2 \
--enable-imagemagick \
2008-06-12 04:57:19 +10:00
--enable-libdv \
2009-11-04 01:09:29 +11:00
--enable-libmpeg2 \
2008-08-03 01:22:01 +10:00
--enable-libpostproc \
2008-06-12 04:57:19 +10:00
--enable-libquicktime \
2008-08-03 01:22:01 +10:00
--enable-libxml2 \
2008-06-12 04:57:19 +10:00
--enable-lzo \
--enable-mjpegtools \
2008-08-03 01:22:01 +10:00
--enable-ogg \
--enable-sdl \
--enable-theora \
--enable-v4l \
--enable-vorbis \
2009-01-24 19:06:43 +11:00
--enable-xvid \
--enable-x264 \
--enable-faac \
2013-11-28 23:33:48 +11:00
--enable-libxml2
2007-06-25 18:39:32 +10:00
2007-04-30 12:46:40 +10:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
2014-09-12 21:15:36 +10:00
# 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
2007-04-30 12:46:40 +10:00
}