# HG changeset patch # User Hans-G?nter Theisgen # Date 1659803071 -3600 # Node ID cf19e70a635213a9e0bf9b92a79b3cbab0c88bbe # Parent c2b5548ad2704249eb716f14c93b8f6e69d2c2b4 updated ffmpeg diff -r c2b5548ad270 -r cf19e70a6352 ffmpeg/receipt --- a/ffmpeg/receipt Sat Aug 06 17:22:27 2022 +0100 +++ b/ffmpeg/receipt Sat Aug 06 17:24:31 2022 +0100 @@ -1,69 +1,74 @@ # SliTaz package receipt. PACKAGE="ffmpeg" -VERSION="2.1.4" +VERSION="4.2.2" CATEGORY="multimedia" +TAGS="audio video convert stream" SHORT_DESC="Record, convert and stream audio and video." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2 LGPL2.1" -WEB_SITE="http://ffmpeg.org/" +WEB_SITE="https://ffmpeg.org/" + TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="${WEB_SITE}releases/$TARBALL" + +SUGGESTED="ffplay" +DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libtasn1 libvorbis \ + libvpx nettle opus pcre rtmpdump x264 x265 xorg-libXau \ + xorg-libXdmcp zlib" +BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special \ + gnutls-dev harfbuzz-dev lame-dev libgnutls libsdl2-dev \ + libvorbis-dev libvpx-dev nettle-dev opus-dev pcre-dev \ + rtmpdump-dev x264-dev x265-dev xorg-libXau-dev xorg-libXdmcp-dev \ + yasm zlib-dev" + HOST_ARCH="i486 arm" -SUGGESTED="ffplay" -TAGS="audio video convert stream" - -DEPENDS="alsa-lib libsdl bzip2 zlib" -BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ -coreutils-file-special yasm" - case "$SLITAZ_ARCH" in - arm*) DEPENDS="alsa-lib bzip2 zlib" ;; + arm*) DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libvorbis \ + libtasn1 libvpx nettle opus pcre rtmpdump x264 x265 \ + xorg-libXau xorg-libXdmcp zlib" ;; esac # Handle cross compilation. Host coreutils-file-* are used case "$ARCH" in i?86) - ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" - export CFLAGS="$CFLAGS -mtune=i686" - export CXXFLAGS="$CFLAGS" ;; + ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; arm*) - BUILD_DEPENDS="zlib-dev bzip2-dev yasm" + BUILD_DEPENDS="bzip2-dev yasm zlib-dev" ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ --cross-prefix=$HOST_SYSTEM-" ;; esac -# Handle arch package install -case "$SLITAZ_ARCH" in - arm*) DEPENDS="alsa-lib bzip2" ;; -esac +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*} 2>/dev/null | \ + sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q +} # Rules to configure and make the package. compile_rules() { - ./configure \ - --prefix=/usr \ - --enable-shared \ - --disable-static \ - --enable-gpl \ - --enable-runtime-cpudetect \ - --enable-avresample \ - --enable-pthreads \ - --enable-small \ - --enable-ffserver \ - --disable-ffprobe \ - --disable-encoder=h263 \ - --disable-encoder=h263p \ - --disable-encoder=mpeg2video \ - --disable-encoder=msmpeg4v1 \ - --disable-encoder=msmpeg4v2 \ - --disable-encoder=msmpeg4v3 \ - --disable-symver \ - --disable-debug \ - --disable-doc \ + ./configure \ + --prefix=/usr \ + --enable-gpl \ + --enable-nonfree \ + --enable-shared \ + --disable-static \ + --disable-doc \ + --enable-libfreetype \ + --enable-libmp3lame \ + --enable-libopus \ + --enable-libvorbis \ + --enable-libvpx \ + --enable-libx264 \ + --enable-libx265 \ + --enable-avresample \ + --enable-gnutls \ ${ARCH_ARGS} && - make && make install + make && + make install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -73,8 +78,10 @@ $fs/usr/bin \ $fs/usr/lib \ $fs/usr/share - cp -a $install/usr/lib/*so* $fs/usr/lib - cp -a $install/usr/bin/ffmpeg $fs/usr/bin - cp -a $install/usr/share/$PACKAGE $fs/usr/share - rm -rf $fs/usr/share/$PACKAGE/examples + + cp -a $install/usr/lib/*so* $fs/usr/lib + cp -a $install/usr/bin/ffmpeg $fs/usr/bin + cp -a $install/usr/share/$PACKAGE $fs/usr/share + + rm -rf $fs/usr/share/$PACKAGE/examples }