wok annotate transcode/receipt @ rev 24119
Add javascript-boulderdash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 04 18:07:23 2021 +0000 (2021-10-04) |
parents | 90a87813caa6 |
children | 870e1ce31226 |
rev | line source |
---|---|
pascal@19896 | 1 # SliTaz package receipt. |
pascal@19896 | 2 |
pascal@19896 | 3 PACKAGE="transcode" |
pascal@19896 | 4 VERSION="1.1.7" |
pascal@19896 | 5 CATEGORY="multimedia" |
pascal@19896 | 6 SHORT_DESC="A text-console utility for video stream processing." |
pascal@19896 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19896 | 8 LICENSE="GPL2" |
pascal@19896 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20684 | 10 WEB_SITE="https://bitbucket.org/achurch_/transcode/wiki/Home" |
pascal@19896 | 11 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@19896 | 12 EXTRA_SOURCE_FILES="http://www.linuxfromscratch.org/patches/blfs/7.6/transcode-1.1.7-ffmpeg2-1.patch" |
pascal@19896 | 13 |
pascal@19922 | 14 DEPENDS="libav lame libdvdread jpeg libvorbis alsa-lib" |
pascal@19896 | 15 BUILD_DEPENDS="ffmpeg-dev lame-dev libdvdread-dev jpeg-dev libvorbis-dev \ |
pascal@20590 | 16 imagemagick-dev alsa-lib-dev xorg-libXv-dev libgnutls" |
pascal@19896 | 17 |
pascal@19896 | 18 # Rules to configure and make the package. |
pascal@19896 | 19 compile_rules() |
pascal@19896 | 20 { |
pascal@19896 | 21 [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] || |
pascal@19896 | 22 wget -P $SOURCES_REPOSITORY $EXTRA_SOURCE_FILES |
pascal@19896 | 23 patch -p1 < $SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES) |
pascal@19896 | 24 sed -i 's/av_close_input_file(/avformat_close_input(\&/' import/probe_ffmpeg.c |
pascal@23070 | 25 |
pascal@23070 | 26 patch -p1 < $stuff/ffmpeg4.u |
pascal@23070 | 27 grep -rl PIX_FMT_ * | xargs sed -i 's|PIX_FMT_|AV_&|' |
pascal@23070 | 28 sed -i 's|CODEC_ID|AV_&|;s|AVAV_COD|AV_COD|;s|LIBAV_COD|LIBAVCOD|' */*.c |
pascal@23070 | 29 sed -e 's|tcmodule-plugin.h"|&\n#include <libavresample/avresample.h>|' \ |
pascal@23070 | 30 -e 's|ReSampleContext|AVAudioResampleContext|' \ |
pascal@23070 | 31 -i filter/filter_resample.c |
pascal@23070 | 32 sed -i 's|r_frame_rate|avg_frame_rate|g' import/probe_ffmpeg.c |
pascal@23070 | 33 |
pascal@19896 | 34 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@19896 | 35 --mandir=/usr/share/man \ |
pascal@19896 | 36 $CONFIGURE_ARGS && |
pascal@19896 | 37 make && |
pascal@19896 | 38 make DESTDIR=$DESTDIR install |
pascal@19896 | 39 } |
pascal@19896 | 40 |
pascal@19896 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19896 | 42 genpkg_rules() |
pascal@19896 | 43 { |
pascal@19896 | 44 mkdir -p $fs/usr |
pascal@19896 | 45 cp -a $install/usr/bin $fs/usr |
pascal@19896 | 46 cp -a $install/usr/lib $fs/usr |
pascal@19896 | 47 } |