2007-04-30 12:46:40 +10:00
|
|
|
# Description: Command line utilities for transcoding various media formats.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.transcoding.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-10-01 22:59:20 +10:00
|
|
|
# Depends on: ffmpeg imagemagick lame liba52 libdvdread libmpeg2 libtheora libxvid mjpegtools x264 xorg-libxaw
|
2019-04-21 00:58:49 +10:00
|
|
|
# Optional: libquicktime
|
2007-04-30 12:46:40 +10:00
|
|
|
|
|
|
|
name=transcode
|
2013-02-14 16:40:56 +11:00
|
|
|
version=1.1.7
|
2021-02-21 14:01:02 +00:00
|
|
|
release=6
|
2019-04-21 00:58:49 +10:00
|
|
|
source=(
|
|
|
|
https://crux.ster.zone/downloads/$name/$name-$version.tar.bz2
|
|
|
|
#https://bitbucket.org/france/transcode-tcforge/downloads/$name-$version.tar.bz2
|
2013-02-14 16:40:56 +11:00
|
|
|
http://downloads.sourceforge.net/project/subtitleripper/subtitleripper/subtitleripper-0.3-4/subtitleripper-0.3-4.tgz
|
2016-06-26 16:55:55 +10:00
|
|
|
subtitleripper-0.3.4-linkingorder.patch
|
2021-02-21 14:01:02 +00:00
|
|
|
subtitleripper-0.3.4-respect-ldflags.patch
|
2018-10-01 22:59:20 +10:00
|
|
|
transcode-ffmpeg3.patch
|
|
|
|
transcode-ffmpeg4.patch
|
2021-02-21 14:01:02 +00:00
|
|
|
transcode-glibc-2.32.patch
|
|
|
|
transcode-gcc10.patch
|
2018-10-01 22:59:20 +10:00
|
|
|
transcode-imagemagick7.patch)
|
2007-04-30 12:46:40 +10:00
|
|
|
|
|
|
|
build() {
|
2008-08-03 01:22:01 +10:00
|
|
|
cd $name-$version
|
2016-06-26 16:55:55 +10:00
|
|
|
|
2009-01-24 19:06:43 +11:00
|
|
|
CFLAGS+=' -pthread'
|
2008-06-12 04:57:19 +10:00
|
|
|
|
2016-06-26 16:55:55 +10:00
|
|
|
patch -p 1 -i $SRC/transcode-ffmpeg3.patch
|
2018-10-01 22:59:20 +10:00
|
|
|
patch -p 1 -i $SRC/transcode-ffmpeg4.patch
|
|
|
|
patch -p 1 -i $SRC/transcode-imagemagick7.patch
|
2021-02-21 14:01:02 +00:00
|
|
|
patch -p 1 -i $SRC/transcode-glibc-2.32.patch
|
|
|
|
patch -p 1 -i $SRC/transcode-gcc10.patch
|
2016-06-26 16:55:55 +10:00
|
|
|
|
|
|
|
sed \
|
|
|
|
-e 's|freetype/ftglyph.h|freetype2/freetype/ftglyph.h|' \
|
|
|
|
-i filter/subtitler/load_font.c
|
2013-02-14 16:40:56 +11:00
|
|
|
|
2018-10-01 22:59:20 +10:00
|
|
|
autoreconf -vi
|
|
|
|
|
2008-06-12 04:57:19 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2009-01-24 19:06:43 +11:00
|
|
|
--disable-dependency-tracking \
|
2008-06-12 04:57:19 +10:00
|
|
|
--enable-a52 \
|
2018-10-01 22:59:20 +10:00
|
|
|
--enable-alsa \
|
2008-08-03 01:22:01 +10:00
|
|
|
--enable-freetype2 \
|
|
|
|
--enable-imagemagick \
|
2018-10-01 22:59:20 +10:00
|
|
|
--enable-lame \
|
2008-06-12 04:57:19 +10:00
|
|
|
--enable-libdv \
|
2018-10-01 22:59:20 +10:00
|
|
|
--enable-libjpeg \
|
2009-11-04 01:09:29 +11:00
|
|
|
--enable-libmpeg2 \
|
2018-10-01 22:59:20 +10:00
|
|
|
--enable-libmpeg2convert \
|
2008-08-03 01:22:01 +10:00
|
|
|
--enable-libpostproc \
|
|
|
|
--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-x264 \
|
2018-10-01 22:59:20 +10:00
|
|
|
--enable-xvid
|
|
|
|
|
|
|
|
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2007-06-25 18:39:32 +10:00
|
|
|
|
2007-04-30 12:46:40 +10:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2016-06-26 16:55:55 +10:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/doc
|
2007-04-30 12:46:40 +10:00
|
|
|
|
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
|
2020-06-01 15:45:48 +00:00
|
|
|
|
2014-09-12 21:15:36 +10:00
|
|
|
make
|
2016-06-26 16:55:55 +10:00
|
|
|
install -m 0755 -t $PKG/usr/bin \
|
|
|
|
pgm2txt srttool subtitle2pgm \
|
|
|
|
subtitle2vobsub vobsub2pgm
|
2007-04-30 12:46:40 +10:00
|
|
|
}
|