wok-current annotate ffmpeg-compat/receipt @ rev 20982

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