wok-undigest rev 1236
updated ffmpeg
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 06 17:24:31 2022 +0100 (21 months ago) |
parents | c2b5548ad270 |
children | ccaf36d9b802 |
files | ffmpeg/receipt |
line diff
1.1 --- a/ffmpeg/receipt Sat Aug 06 17:22:27 2022 +0100 1.2 +++ b/ffmpeg/receipt Sat Aug 06 17:24:31 2022 +0100 1.3 @@ -1,69 +1,74 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="ffmpeg" 1.7 -VERSION="2.1.4" 1.8 +VERSION="4.2.2" 1.9 CATEGORY="multimedia" 1.10 +TAGS="audio video convert stream" 1.11 SHORT_DESC="Record, convert and stream audio and video." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2 LGPL2.1" 1.14 -WEB_SITE="http://ffmpeg.org/" 1.15 +WEB_SITE="https://ffmpeg.org/" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.18 WGET_URL="${WEB_SITE}releases/$TARBALL" 1.19 + 1.20 +SUGGESTED="ffplay" 1.21 +DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libtasn1 libvorbis \ 1.22 + libvpx nettle opus pcre rtmpdump x264 x265 xorg-libXau \ 1.23 + xorg-libXdmcp zlib" 1.24 +BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special \ 1.25 + gnutls-dev harfbuzz-dev lame-dev libgnutls libsdl2-dev \ 1.26 + libvorbis-dev libvpx-dev nettle-dev opus-dev pcre-dev \ 1.27 + rtmpdump-dev x264-dev x265-dev xorg-libXau-dev xorg-libXdmcp-dev \ 1.28 + yasm zlib-dev" 1.29 + 1.30 HOST_ARCH="i486 arm" 1.31 1.32 -SUGGESTED="ffplay" 1.33 -TAGS="audio video convert stream" 1.34 - 1.35 -DEPENDS="alsa-lib libsdl bzip2 zlib" 1.36 -BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ 1.37 -coreutils-file-special yasm" 1.38 - 1.39 case "$SLITAZ_ARCH" in 1.40 - arm*) DEPENDS="alsa-lib bzip2 zlib" ;; 1.41 + arm*) DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libvorbis \ 1.42 + libtasn1 libvpx nettle opus pcre rtmpdump x264 x265 \ 1.43 + xorg-libXau xorg-libXdmcp zlib" ;; 1.44 esac 1.45 1.46 # Handle cross compilation. Host coreutils-file-* are used 1.47 case "$ARCH" in 1.48 i?86) 1.49 - ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" 1.50 - export CFLAGS="$CFLAGS -mtune=i686" 1.51 - export CXXFLAGS="$CFLAGS" ;; 1.52 + ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; 1.53 arm*) 1.54 - BUILD_DEPENDS="zlib-dev bzip2-dev yasm" 1.55 + BUILD_DEPENDS="bzip2-dev yasm zlib-dev" 1.56 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ 1.57 --cross-prefix=$HOST_SYSTEM-" ;; 1.58 esac 1.59 1.60 -# Handle arch package install 1.61 -case "$SLITAZ_ARCH" in 1.62 - arm*) DEPENDS="alsa-lib bzip2" ;; 1.63 -esac 1.64 +# What is the latest version available today? 1.65 +current_version() 1.66 +{ 1.67 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.68 + sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.69 +} 1.70 1.71 # Rules to configure and make the package. 1.72 compile_rules() 1.73 { 1.74 - ./configure \ 1.75 - --prefix=/usr \ 1.76 - --enable-shared \ 1.77 - --disable-static \ 1.78 - --enable-gpl \ 1.79 - --enable-runtime-cpudetect \ 1.80 - --enable-avresample \ 1.81 - --enable-pthreads \ 1.82 - --enable-small \ 1.83 - --enable-ffserver \ 1.84 - --disable-ffprobe \ 1.85 - --disable-encoder=h263 \ 1.86 - --disable-encoder=h263p \ 1.87 - --disable-encoder=mpeg2video \ 1.88 - --disable-encoder=msmpeg4v1 \ 1.89 - --disable-encoder=msmpeg4v2 \ 1.90 - --disable-encoder=msmpeg4v3 \ 1.91 - --disable-symver \ 1.92 - --disable-debug \ 1.93 - --disable-doc \ 1.94 + ./configure \ 1.95 + --prefix=/usr \ 1.96 + --enable-gpl \ 1.97 + --enable-nonfree \ 1.98 + --enable-shared \ 1.99 + --disable-static \ 1.100 + --disable-doc \ 1.101 + --enable-libfreetype \ 1.102 + --enable-libmp3lame \ 1.103 + --enable-libopus \ 1.104 + --enable-libvorbis \ 1.105 + --enable-libvpx \ 1.106 + --enable-libx264 \ 1.107 + --enable-libx265 \ 1.108 + --enable-avresample \ 1.109 + --enable-gnutls \ 1.110 ${ARCH_ARGS} && 1.111 - make && make install 1.112 + make && 1.113 + make install 1.114 } 1.115 1.116 # Rules to gen a SliTaz package suitable for Tazpkg. 1.117 @@ -73,8 +78,10 @@ 1.118 $fs/usr/bin \ 1.119 $fs/usr/lib \ 1.120 $fs/usr/share 1.121 - cp -a $install/usr/lib/*so* $fs/usr/lib 1.122 - cp -a $install/usr/bin/ffmpeg $fs/usr/bin 1.123 - cp -a $install/usr/share/$PACKAGE $fs/usr/share 1.124 - rm -rf $fs/usr/share/$PACKAGE/examples 1.125 + 1.126 + cp -a $install/usr/lib/*so* $fs/usr/lib 1.127 + cp -a $install/usr/bin/ffmpeg $fs/usr/bin 1.128 + cp -a $install/usr/share/$PACKAGE $fs/usr/share 1.129 + 1.130 + rm -rf $fs/usr/share/$PACKAGE/examples 1.131 }