wok-6.x annotate ffmpeg/receipt @ rev 24666
created recipes for double-conversion and double-conversion-dev
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 15:40:49 2022 +0100 (2022-03-11) |
parents | a8c19836fac1 |
children |
rev | line source |
---|---|
pascal@1708 | 1 # SliTaz package receipt. |
pascal@1708 | 2 |
pascal@1708 | 3 PACKAGE="ffmpeg" |
Hans-G?nter@22756 | 4 VERSION="4.2.2" |
pascal@1708 | 5 CATEGORY="multimedia" |
Hans-G?nter@21570 | 6 TAGS="audio video convert stream" |
pascal@1708 | 7 SHORT_DESC="Record, convert and stream audio and video." |
pascal@1708 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 9 LICENSE="GPL2 LGPL2.1" |
Hans-G?nter@21570 | 10 WEB_SITE="https://ffmpeg.org/" |
Hans-G?nter@21570 | 11 |
pascal@4284 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@4284 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
Hans-G?nter@21570 | 14 |
Hans-G?nter@21570 | 15 SUGGESTED="ffplay" |
Hans-G?nter@21570 | 16 DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libtasn1 libvorbis \ |
Hans-G?nter@21570 | 17 libvpx nettle opus pcre rtmpdump x264 x265 xorg-libXau \ |
Hans-G?nter@21570 | 18 xorg-libXdmcp zlib" |
Hans-G?nter@21570 | 19 BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special \ |
Hans-G?nter@21570 | 20 gnutls-dev harfbuzz-dev lame-dev libgnutls libsdl2-dev \ |
Hans-G?nter@21570 | 21 libvorbis-dev libvpx-dev nettle-dev opus-dev pcre-dev \ |
Hans-G?nter@21570 | 22 rtmpdump-dev x264-dev x265-dev xorg-libXau-dev xorg-libXdmcp-dev \ |
Hans-G?nter@21570 | 23 yasm zlib-dev" |
Hans-G?nter@21570 | 24 |
pankso@16026 | 25 HOST_ARCH="i486 arm" |
pankso@16026 | 26 |
pankso@16315 | 27 case "$SLITAZ_ARCH" in |
Hans-G?nter@21570 | 28 arm*) DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libvorbis \ |
Hans-G?nter@21570 | 29 libtasn1 libvpx nettle opus pcre rtmpdump x264 x265 \ |
Hans-G?nter@21570 | 30 xorg-libXau xorg-libXdmcp zlib" ;; |
pankso@16315 | 31 esac |
pankso@16315 | 32 |
pankso@16026 | 33 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16026 | 34 case "$ARCH" in |
pankso@16084 | 35 i?86) |
pankso@16084 | 36 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; |
pankso@16084 | 37 arm*) |
Hans-G?nter@21570 | 38 BUILD_DEPENDS="bzip2-dev yasm zlib-dev" |
pankso@16026 | 39 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
pankso@16096 | 40 --cross-prefix=$HOST_SYSTEM-" ;; |
pankso@16026 | 41 esac |
pankso@16026 | 42 |
pascal@24425 | 43 # What is the latest version available today? |
pascal@24425 | 44 current_version() |
pascal@24425 | 45 { |
pascal@24425 | 46 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 47 sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 48 } |
pascal@24425 | 49 |
pascal@1708 | 50 # Rules to configure and make the package. |
pascal@1708 | 51 compile_rules() |
pascal@1708 | 52 { |
Hans-G?nter@21570 | 53 ./configure \ |
Hans-G?nter@21570 | 54 --prefix=/usr \ |
Hans-G?nter@21570 | 55 --enable-gpl \ |
Hans-G?nter@21570 | 56 --enable-nonfree \ |
Hans-G?nter@21570 | 57 --enable-shared \ |
Hans-G?nter@21570 | 58 --disable-static \ |
Hans-G?nter@21570 | 59 --disable-doc \ |
Hans-G?nter@21570 | 60 --enable-libfreetype \ |
Hans-G?nter@21570 | 61 --enable-libmp3lame \ |
Hans-G?nter@21570 | 62 --enable-libopus \ |
Hans-G?nter@21570 | 63 --enable-libvorbis \ |
Hans-G?nter@21570 | 64 --enable-libvpx \ |
Hans-G?nter@21570 | 65 --enable-libx264 \ |
Hans-G?nter@21570 | 66 --enable-libx265 \ |
pascal@21884 | 67 --enable-avresample \ |
Hans-G?nter@21570 | 68 --enable-gnutls \ |
pankso@16315 | 69 ${ARCH_ARGS} && |
Hans-G?nter@21570 | 70 make && |
Hans-G?nter@21570 | 71 make install |
pascal@1708 | 72 } |
pascal@1708 | 73 |
pascal@1708 | 74 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1708 | 75 genpkg_rules() |
pascal@1708 | 76 { |
pankso@16096 | 77 mkdir -p \ |
pankso@16096 | 78 $fs/usr/bin \ |
pankso@16096 | 79 $fs/usr/lib \ |
pankso@16096 | 80 $fs/usr/share |
Hans-G?nter@21570 | 81 |
Hans-G?nter@21570 | 82 cp -a $install/usr/lib/*so* $fs/usr/lib |
Hans-G?nter@21570 | 83 cp -a $install/usr/bin/ffmpeg $fs/usr/bin |
Hans-G?nter@21570 | 84 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
Hans-G?nter@21570 | 85 |
Hans-G?nter@22756 | 86 rm -rf $fs/usr/share/$PACKAGE/examples |
pascal@1708 | 87 } |