wok-6.x annotate ffmpeg-compat/receipt @ rev 22719
updated ffmpeg-compat and ffmpeg-compat-dev (0.10.12 -> 4.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 22 17:06:31 2020 +0100 (2020-01-22) |
parents | 9e01bc6321ea |
children | 78494a055861 |
rev | line source |
---|---|
pankso@16092 | 1 # SliTaz package receipt. |
pankso@16092 | 2 |
pankso@16092 | 3 PACKAGE="ffmpeg-compat" |
Hans-G?nter@22719 | 4 VERSION="4.1.3" |
pankso@16092 | 5 CATEGORY="multimedia" |
pankso@16092 | 6 SHORT_DESC="Record, convert and stream audio and video (compatible libs version)." |
pankso@16092 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pankso@16092 | 8 LICENSE="GPL2 LGPL2.1" |
Hans-G?nter@22719 | 9 WEB_SITE="https://ffmpeg.org/" |
Hans-G?nter@22719 | 10 |
pankso@16092 | 11 SOURCE="ffmpeg" |
pankso@16092 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@16092 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
Hans-G?nter@22719 | 14 |
Hans-G?nter@22719 | 15 DEPENDS="alsa-lib bzip2 libsdl" |
Hans-G?nter@22719 | 16 BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special |
Hans-G?nter@22719 | 17 libsdl-dev yasm zlib-dev" |
Hans-G?nter@22719 | 18 |
pankso@16168 | 19 HOST_ARCH="i486 arm" |
pankso@16092 | 20 |
pankso@16092 | 21 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16092 | 22 case "$ARCH" in |
pankso@16092 | 23 i?86) |
pankso@16092 | 24 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; |
pankso@16092 | 25 arm*) |
pankso@16092 | 26 BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev" |
pankso@16092 | 27 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
pankso@16092 | 28 --cross-prefix=$HOST_SYSTEM-" ;; |
pankso@16092 | 29 esac |
pankso@16092 | 30 |
pankso@16092 | 31 # Handle arch package install |
pankso@16092 | 32 case "$SLITAZ_ARCH" in |
pankso@16092 | 33 arm*) DEPENDS="alsa-lib bzip2" ;; |
pankso@16092 | 34 esac |
pankso@16092 | 35 |
pankso@16092 | 36 # Rules to configure and make the package. |
pankso@16092 | 37 compile_rules() |
pankso@16092 | 38 { |
Hans-G?nter@22719 | 39 ./configure \ |
Hans-G?nter@22719 | 40 --prefix=/usr \ |
Hans-G?nter@22719 | 41 --incdir=/usr/include/ffmpeg-compat \ |
Hans-G?nter@22719 | 42 --libdir=/usr/lib/ffmpeg-compat \ |
Hans-G?nter@22719 | 43 --shlibdir=/usr/lib/ffmpeg-compat \ |
Hans-G?nter@22719 | 44 --enable-gpl \ |
Hans-G?nter@22719 | 45 --enable-pthreads \ |
Hans-G?nter@22719 | 46 --enable-runtime-cpudetect \ |
Hans-G?nter@22719 | 47 --enable-shared \ |
Hans-G?nter@22719 | 48 --enable-small \ |
Hans-G?nter@22719 | 49 --disable-debug \ |
Hans-G?nter@22719 | 50 --disable-doc \ |
Hans-G?nter@22719 | 51 --disable-encoder=h263 \ |
Hans-G?nter@22719 | 52 --disable-encoder=h263p \ |
Hans-G?nter@22719 | 53 --disable-encoder=mpeg2video \ |
Hans-G?nter@22719 | 54 --disable-encoder=mpeg4 \ |
Hans-G?nter@22719 | 55 --disable-encoder=msmpeg4v1 \ |
Hans-G?nter@22719 | 56 --disable-encoder=msmpeg4v2 \ |
Hans-G?nter@22719 | 57 --disable-encoder=msmpeg4v3 \ |
Hans-G?nter@22719 | 58 --disable-ffplay \ |
Hans-G?nter@22719 | 59 --disable-ffprobe \ |
Hans-G?nter@22719 | 60 --disable-static \ |
Hans-G?nter@22719 | 61 --disable-symver \ |
Hans-G?nter@22719 | 62 ${ARCH_ARGS} && |
Hans-G?nter@22719 | 63 make && |
Hans-G?nter@22719 | 64 make install |
pankso@16092 | 65 } |
pankso@16092 | 66 |
pankso@16092 | 67 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16092 | 68 genpkg_rules() |
pankso@16092 | 69 { |
pankso@16092 | 70 mkdir -p $fs/usr/lib |
Hans-G?nter@22719 | 71 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib |
pankso@16092 | 72 } |
pankso@16092 | 73 |
pascal@16094 | 74 post_install() |
pankso@16092 | 75 { |
pascal@18730 | 76 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf" |
pankso@16092 | 77 } |
pankso@16092 | 78 |
pankso@16092 | 79 post_remove() |
pankso@16092 | 80 { |
pascal@18730 | 81 sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf" |
pankso@16092 | 82 } |