contrib/transcode/Pkgfile

90 lines
2.5 KiB
Plaintext
Raw Normal View History

2007-04-30 04:46:40 +02:00
# Description: Command line utilities for transcoding various media formats.
2013-02-14 06:40:56 +01:00
# URL: http://tcforge.berlios.de/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2007-04-30 04:46:40 +02:00
# Packager: Martin Opel, mo at obbl-net dot de
2016-06-26 08:55:55 +02:00
# Depends on: imagemagick liba52 libdvdread libmpeg2 mjpegtools
2007-04-30 04:46:40 +02:00
name=transcode
2013-02-14 06:40:56 +01:00
version=1.1.7
2016-06-26 08:55:55 +02:00
release=4
2013-02-14 06:40:56 +01: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
2016-06-26 08:55:55 +02:00
subtitleripper-0.3.4-linkingorder.patch
subtitleripper-0.3.4-respect-ldflags.patch
2013-11-28 13:33:48 +01: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 13:15:36 +02:00
transcode-1.1.7-ffmpeg2.patch
2016-06-26 08:55:55 +02:00
transcode-1.1.7-ffmpeg-2.4.patch
transcode-1.1.7-ffmpeg29.patch
transcode-ffmpeg3.patch)
2007-04-30 04:46:40 +02:00
build() {
2008-08-02 17:22:01 +02:00
cd $name-$version
2016-06-26 08:55:55 +02:00
2009-01-24 09:06:43 +01:00
CFLAGS+=' -pthread'
2008-06-11 20:57:19 +02:00
2013-11-28 13:33:48 +01: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
2016-06-26 08:55:55 +02:00
patch -p 1 -i $SRC/transcode-1.1.7-ffmpeg-2.4.patch
patch -p 1 -i $SRC/transcode-1.1.7-ffmpeg29.patch
patch -p 1 -i $SRC/transcode-ffmpeg3.patch
sed \
-e 's|freetype/ftglyph.h|freetype2/freetype/ftglyph.h|' \
-i filter/subtitler/load_font.c
2013-02-14 06:40:56 +01:00
2008-06-11 20:57:19 +02:00
./configure \
--prefix=/usr \
2009-01-24 09:06:43 +01:00
--disable-dependency-tracking \
--enable-alsa \
2008-06-11 20:57:19 +02:00
--enable-a52 \
2008-08-02 17:22:01 +02:00
--enable-freetype2 \
--enable-imagemagick \
2008-06-11 20:57:19 +02:00
--enable-libdv \
2009-11-03 15:09:29 +01:00
--enable-libmpeg2 \
2008-08-02 17:22:01 +02:00
--enable-libpostproc \
2008-06-11 20:57:19 +02:00
--enable-libquicktime \
2008-08-02 17:22:01 +02:00
--enable-libxml2 \
2008-06-11 20:57:19 +02:00
--enable-lzo \
--enable-mjpegtools \
2008-08-02 17:22:01 +02:00
--enable-ogg \
--enable-sdl \
--enable-theora \
--enable-v4l \
--enable-vorbis \
2009-01-24 09:06:43 +01:00
--enable-xvid \
--enable-x264 \
--enable-faac \
2013-11-28 13:33:48 +01:00
--enable-libxml2
2007-06-25 10:39:32 +02:00
2007-04-30 04:46:40 +02:00
make
make DESTDIR=$PKG install
2016-06-26 08:55:55 +02:00
rm -r $PKG/usr/share/doc
2007-04-30 04:46:40 +02:00
2014-09-12 13:15:36 +02: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
2016-06-26 08:55:55 +02:00
install -m 0755 -t $PKG/usr/bin \
pgm2txt srttool subtitle2pgm \
subtitle2vobsub vobsub2pgm
2007-04-30 04:46:40 +02:00
}