wok view transcode/receipt @ rev 25630

libssh, openssh, paramiko, proftpd, putty: CVE-2023-48795 fix, waiting for dropbear and tinyssh released.
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 22 14:30:01 2023 +0000 (11 months ago)
parents f2b4a9eb8bdd
children
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://web.archive.org/web/20230219142817if_/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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed '/transcode-/!d;s|.*transcode-||;s|.tar.*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] ||
29 wget -P $SOURCES_REPOSITORY $EXTRA_SOURCE_FILES
30 patch -p1 < $SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)
31 sed -i 's/av_close_input_file(/avformat_close_input(\&/' import/probe_ffmpeg.c
33 patch -p1 < $stuff/ffmpeg4.u
34 grep -rl PIX_FMT_ * | xargs sed -i 's|PIX_FMT_|AV_&|'
35 sed -i 's|CODEC_ID|AV_&|;s|AVAV_COD|AV_COD|;s|LIBAV_COD|LIBAVCOD|' */*.c
36 sed -e 's|tcmodule-plugin.h"|&\n#include <libavresample/avresample.h>|' \
37 -e 's|ReSampleContext|AVAudioResampleContext|' \
38 -i filter/filter_resample.c
39 sed -i 's|r_frame_rate|avg_frame_rate|g' import/probe_ffmpeg.c
41 ./configure --prefix=/usr --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
43 $CONFIGURE_ARGS &&
44 make &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib $fs/usr
54 }