wok annotate ffmpeg/receipt @ rev 20843
updated dolibarr (3.1.0 -> 9.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 20 16:50:55 2019 +0100 (2019-02-20) |
parents | 8def4d95979c |
children | d8057344b557 |
rev | line source |
---|---|
pascal@1708 | 1 # SliTaz package receipt. |
pascal@1708 | 2 |
pascal@1708 | 3 PACKAGE="ffmpeg" |
pascal@19662 | 4 VERSION="2.8.10" |
pascal@1708 | 5 CATEGORY="multimedia" |
pascal@1708 | 6 SHORT_DESC="Record, convert and stream audio and video." |
pascal@1708 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2.1" |
jozee@2675 | 9 WEB_SITE="http://ffmpeg.org/" |
pascal@4284 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@4284 | 11 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pankso@16026 | 12 HOST_ARCH="i486 arm" |
pankso@16026 | 13 |
pankso@13016 | 14 SUGGESTED="ffplay" |
pankso@13016 | 15 TAGS="audio video convert stream" |
pankso@13016 | 16 |
pascal@19663 | 17 DEPENDS="alsa-lib libsdl bzip2 zlib libvorbis x264 x265 gnutls libvpx opus \ |
pascal@19663 | 18 lame rtmpdump harfbuzz xorg-libXau xorg-libXdmcp pcre libtasn1 nettle" |
pascal@19663 | 19 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ |
pascal@19663 | 20 libvorbis-dev x264-dev x265-dev gnutls-dev libvpx-dev opus-dev lame-dev \ |
pascal@19663 | 21 rtmpdump-dev harfbuzz-dev xorg-libXau-dev xorg-libXdmcp-dev pcre-dev \ |
pascal@20585 | 22 nettle-dev coreutils-file-special yasm libgnutls" |
pascal@1708 | 23 |
pankso@16315 | 24 case "$SLITAZ_ARCH" in |
pascal@19663 | 25 arm*) DEPENDS="alsa-lib libsdl bzip2 zlib libvorbis x264 x265 gnutls \ |
pascal@19663 | 26 libvpx opus lame rtmpdump harfbuzz xorg-libXau xorg-libXdmcp \ |
pascal@19663 | 27 pcre libtasn1 nettle" ;; |
pankso@16315 | 28 esac |
pankso@16315 | 29 |
pankso@16026 | 30 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16026 | 31 case "$ARCH" in |
pankso@16084 | 32 i?86) |
pankso@16084 | 33 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; |
pankso@16084 | 34 arm*) |
pankso@16096 | 35 BUILD_DEPENDS="zlib-dev bzip2-dev yasm" |
pankso@16026 | 36 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
pankso@16096 | 37 --cross-prefix=$HOST_SYSTEM-" ;; |
pankso@16026 | 38 esac |
pankso@16026 | 39 |
pascal@1708 | 40 # Rules to configure and make the package. |
pascal@1708 | 41 compile_rules() |
pascal@1708 | 42 { |
pankso@4460 | 43 ./configure \ |
pankso@4460 | 44 --prefix=/usr \ |
pascal@19662 | 45 --enable-gpl \ |
pascal@19662 | 46 --enable-nonfree \ |
domcox@12846 | 47 --enable-shared \ |
domcox@12846 | 48 --disable-static \ |
pankso@16315 | 49 --disable-doc \ |
pascal@19662 | 50 --enable-libfreetype \ |
pascal@19662 | 51 --enable-libmp3lame \ |
pascal@19662 | 52 --enable-libopus \ |
pascal@19662 | 53 --enable-libvorbis \ |
pascal@19662 | 54 --enable-libvpx \ |
pascal@19662 | 55 --enable-libx264 \ |
pascal@19664 | 56 --enable-libx265 \ |
pascal@19662 | 57 --enable-gnutls \ |
pankso@16315 | 58 ${ARCH_ARGS} && |
pankso@13016 | 59 make && make install |
pascal@1708 | 60 } |
pascal@1708 | 61 |
pascal@1708 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1708 | 63 genpkg_rules() |
pascal@1708 | 64 { |
pankso@16096 | 65 mkdir -p \ |
pankso@16096 | 66 $fs/usr/bin \ |
pankso@16096 | 67 $fs/usr/lib \ |
pankso@16096 | 68 $fs/usr/share |
pankso@13016 | 69 cp -a $install/usr/lib/*so* $fs/usr/lib |
pankso@16096 | 70 cp -a $install/usr/bin/ffmpeg $fs/usr/bin |
pankso@13016 | 71 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@13016 | 72 rm -rf $fs/usr/share/$PACKAGE/examples |
pascal@1708 | 73 } |