wok view transcode/receipt @ rev 25003
updated nspr and nspr-dev (4.25 -> 4.33)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:53:05 2022 +0100 (2022-05-16) |
parents | 870e1ce31226 |
children | 2b069c72d47e |
line source
1 # SliTaz package receipt.
3 PACKAGE="transcode"
4 VERSION="1.1.7"
5 CATEGORY="multimedia"
6 SHORT_DESC="A text-console utility for video stream processing."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.linuxtv.org/wiki/index.php/Transcode"
11 WGET_URL="https://sources.archlinux.org/other/community/transcode/$TARBALL"
12 EXTRA_SOURCE_FILES="http://www.linuxfromscratch.org/patches/blfs/7.6/transcode-1.1.7-ffmpeg2-1.patch"
14 DEPENDS="libav lame libdvdread jpeg libvorbis alsa-lib"
15 BUILD_DEPENDS="ffmpeg-dev lame-dev libdvdread-dev jpeg-dev libvorbis-dev \
16 imagemagick-dev alsa-lib-dev xorg-libXv-dev libgnutls"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] ||
22 wget -P $SOURCES_REPOSITORY $EXTRA_SOURCE_FILES
23 patch -p1 < $SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)
24 sed -i 's/av_close_input_file(/avformat_close_input(\&/' import/probe_ffmpeg.c
26 patch -p1 < $stuff/ffmpeg4.u
27 grep -rl PIX_FMT_ * | xargs sed -i 's|PIX_FMT_|AV_&|'
28 sed -i 's|CODEC_ID|AV_&|;s|AVAV_COD|AV_COD|;s|LIBAV_COD|LIBAVCOD|' */*.c
29 sed -e 's|tcmodule-plugin.h"|&\n#include <libavresample/avresample.h>|' \
30 -e 's|ReSampleContext|AVAudioResampleContext|' \
31 -i filter/filter_resample.c
32 sed -i 's|r_frame_rate|avg_frame_rate|g' import/probe_ffmpeg.c
34 ./configure --prefix=/usr --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 }