wok-6.x annotate ffmpeg-compat/receipt @ rev 23963
Up curl (7.72.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 02 10:34:57 2020 +0000 (2020-10-02) |
parents | 98b83f586ee5 |
children | cb67b4f8be05 |
rev | line source |
---|---|
pankso@16092 | 1 # SliTaz package receipt. |
pankso@16092 | 2 |
pankso@16092 | 3 PACKAGE="ffmpeg-compat" |
pascal@22723 | 4 VERSION="0.10.12" # to build libvalhalla, and then enna |
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 \ |
pascal@22723 | 59 --disable-ffserver \ |
Hans-G?nter@22719 | 60 --disable-ffprobe \ |
Hans-G?nter@22719 | 61 --disable-static \ |
Hans-G?nter@22719 | 62 --disable-symver \ |
Hans-G?nter@22719 | 63 ${ARCH_ARGS} && |
Hans-G?nter@22719 | 64 make && |
Hans-G?nter@22719 | 65 make install |
pankso@16092 | 66 } |
pankso@16092 | 67 |
pankso@16092 | 68 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16092 | 69 genpkg_rules() |
pankso@16092 | 70 { |
pankso@16092 | 71 mkdir -p $fs/usr/lib |
Hans-G?nter@22719 | 72 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib |
pankso@16092 | 73 } |
pankso@16092 | 74 |
pascal@16094 | 75 post_install() |
pankso@16092 | 76 { |
pascal@18730 | 77 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf" |
pankso@16092 | 78 } |
pankso@16092 | 79 |
pankso@16092 | 80 post_remove() |
pankso@16092 | 81 { |
pascal@18730 | 82 sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf" |
pankso@16092 | 83 } |