wok-next annotate ffmpeg-compat/receipt @ rev 21051
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 30 01:34:53 2018 +0200 (2018-11-30) |
parents | e323d0535e2c |
children | 0f2575775b2d |
rev | line source |
---|---|
al@20463 | 1 # SliTaz package receipt v2. |
pankso@16092 | 2 |
pankso@16092 | 3 PACKAGE="ffmpeg-compat" |
pankso@16092 | 4 VERSION="0.10.12" |
pankso@16092 | 5 CATEGORY="multimedia" |
al@21020 | 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/" |
al@20463 | 10 |
al@20463 | 11 TARBALL="ffmpeg-$VERSION.tar.bz2" |
pankso@16092 | 12 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pankso@16092 | 13 |
pankso@16092 | 14 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ |
pankso@16092 | 15 coreutils-file-special yasm" |
al@21020 | 16 SPLIT="$PACKAGE-dev" |
pankso@16092 | 17 |
al@20463 | 18 compile_rules() { |
al@20463 | 19 case "$ARCH" in |
al@20463 | 20 i?86) |
al@21020 | 21 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" |
al@21020 | 22 ;; |
al@20463 | 23 x86_64) |
al@20463 | 24 ARCH_ARGS="" #??? |
al@20463 | 25 ;; |
al@20463 | 26 esac |
pankso@16092 | 27 |
pankso@16092 | 28 ./configure \ |
pankso@16092 | 29 --prefix=/usr \ |
pankso@16092 | 30 --incdir=/usr/include/ffmpeg-compat \ |
pankso@16092 | 31 --libdir=/usr/lib/ffmpeg-compat \ |
pankso@16092 | 32 --shlibdir=/usr/lib/ffmpeg-compat \ |
pankso@16092 | 33 --enable-shared \ |
pankso@16092 | 34 --enable-gpl \ |
pankso@16092 | 35 --enable-runtime-cpudetect \ |
pankso@16092 | 36 --enable-pthreads \ |
pankso@16092 | 37 --enable-small \ |
pankso@16092 | 38 --disable-static \ |
pankso@16092 | 39 --disable-ffprobe \ |
pankso@16092 | 40 --disable-ffserver \ |
pankso@16092 | 41 --disable-ffplay \ |
pankso@16092 | 42 --disable-encoder=h263 \ |
pankso@16092 | 43 --disable-encoder=h263p \ |
pankso@16092 | 44 --disable-encoder=mpeg2video \ |
pankso@16092 | 45 --disable-encoder=mpeg4 \ |
pankso@16092 | 46 --disable-encoder=msmpeg4v1 \ |
pankso@16092 | 47 --disable-encoder=msmpeg4v2 \ |
pankso@16092 | 48 --disable-encoder=msmpeg4v3 \ |
pankso@16092 | 49 --disable-symver \ |
pankso@16092 | 50 --disable-debug \ |
al@20463 | 51 --disable-doc \ |
al@20463 | 52 $ARCH_ARGS && |
al@21020 | 53 make && |
al@21020 | 54 make install |
pankso@16092 | 55 } |
pankso@16092 | 56 |
al@20463 | 57 genpkg_rules() { |
al@20463 | 58 case $PACKAGE in |
al@20463 | 59 ffmpeg-compat) |
al@20463 | 60 mkdir -p $fs/usr/lib |
al@20463 | 61 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib |
al@20463 | 62 DEPENDS="alsa-lib libsdl bzip2" |
al@20463 | 63 ;; |
al@20463 | 64 *-dev) |
al@20463 | 65 mkdir -p $fs/usr |
al@20463 | 66 cp -a $install/usr/include $fs/usr |
al@20463 | 67 ;; |
al@20463 | 68 esac |
pankso@16092 | 69 } |
pankso@16092 | 70 |
al@20463 | 71 post_install_ffmpeg_compat() { |
pascal@18730 | 72 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf" |
pankso@16092 | 73 } |
pankso@16092 | 74 |
al@20463 | 75 post_remove_ffmpeg_compat() { |
al@21020 | 76 sed -i '/\/usr\/lib\/ffmpeg-compat/d' "$1/etc/ld.so.conf" |
pankso@16092 | 77 } |