wok-next diff ffmpeg/receipt @ rev 20095

Update/add packages needed for building MATE desktop:
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 28 16:45:22 2017 +0300 (2017-10-28)
parents 6a4c46da8e17
children 3417c3ffbd13
line diff
     1.1 --- a/ffmpeg/receipt	Thu May 19 12:09:28 2016 +0200
     1.2 +++ b/ffmpeg/receipt	Sat Oct 28 16:45:22 2017 +0300
     1.3 @@ -1,77 +1,102 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="ffmpeg"
     1.8 -VERSION="2.8.7"
     1.9 +VERSION="3.2.4"
    1.10  CATEGORY="multimedia"
    1.11 -SHORT_DESC="Record, convert and stream audio and video."
    1.12 +SHORT_DESC="Record, convert and stream audio and video"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="GPL2 LGPL2.1"
    1.15  WEB_SITE="http://ffmpeg.org/"
    1.16 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WGET_URL="${WEB_SITE}releases/$TARBALL"
    1.18  HOST_ARCH="i486 arm"
    1.19  
    1.20 -SUGGESTED="ffplay"
    1.21 -TAGS="audio video convert stream"
    1.22 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.23 +WGET_URL="${WEB_SITE}releases/$TARBALL"
    1.24  
    1.25 -DEPENDS="alsa-lib libsdl bzip2 zlib"
    1.26 -BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
    1.27 -coreutils-file-special yasm"
    1.28 -
    1.29 -case "$SLITAZ_ARCH" in
    1.30 -	arm*) DEPENDS="alsa-lib bzip2 zlib" ;;
    1.31 -esac
    1.32 -
    1.33 -# Handle cross compilation. Host coreutils-file-* are used
    1.34 -case "$ARCH" in
    1.35 -	i?86) 
    1.36 -		ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
    1.37 -	arm*) 
    1.38 -		BUILD_DEPENDS="zlib-dev bzip2-dev yasm" 
    1.39 -		ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
    1.40 -		--cross-prefix=$HOST_SYSTEM-" ;;
    1.41 -esac
    1.42 -
    1.43 -# Handle arch package install
    1.44 -case "$SLITAZ_ARCH" in
    1.45 -	arm*) DEPENDS="alsa-lib bzip2" ;;
    1.46 -esac
    1.47 +BUILD_DEPENDS_arm="zlib-dev bzip2-dev yasm"
    1.48 +#BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
    1.49 +#coreutils-file-special yasm"
    1.50 +BUILD_DEPENDS="coreutils-file-format libass-dev fdk-aac-dev lame-dev opus-dev \
    1.51 +libtheora-dev libvorbis-dev libvpx-dev x264-dev x265-dev xorg-libX11-dev"
    1.52 +SPLIT="ffmpeg-dev"
    1.53  
    1.54  # Rules to configure and make the package.
    1.55  compile_rules()
    1.56  {
    1.57 +	# http://www.linuxfromscratch.org/blfs/view/stable/multimedia/ffmpeg.html
    1.58 +
    1.59 +	# Handle cross compilation.
    1.60 +	case "$ARCH" in
    1.61 +		i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
    1.62 +		arm*) ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
    1.63 +			--cross-prefix=$HOST_SYSTEM-" ;;
    1.64 +	esac
    1.65 +
    1.66  	./configure \
    1.67  		--prefix=/usr \
    1.68 +		--enable-gpl \
    1.69 +		--enable-version3 \
    1.70 +		--enable-nonfree \
    1.71 +		--disable-static \
    1.72  		--enable-shared \
    1.73 -		--disable-static \
    1.74 -		--enable-gpl \
    1.75 +		--disable-debug \
    1.76 +		--enable-libass \
    1.77 +		--enable-libfdk-aac \
    1.78 +		--enable-libfreetype \
    1.79 +		--enable-libmp3lame \
    1.80 +		--enable-libopus \
    1.81 +		--enable-libtheora \
    1.82 +		--enable-libvorbis \
    1.83 +		--enable-libvpx \
    1.84 +		--enable-libx264 \
    1.85 +		--enable-libx265 \
    1.86 +		--enable-x11grab \
    1.87 +		--docdir=/usr/share/doc/ffmpeg-$VERSION \
    1.88  		--enable-runtime-cpudetect \
    1.89 -		--enable-avresample \
    1.90 -		--enable-pthreads \
    1.91 -		--enable-small \
    1.92 -		--enable-ffserver \
    1.93 -		--disable-ffprobe \
    1.94 -		--disable-encoder=h263 \
    1.95 -		--disable-encoder=h263p \
    1.96 -		--disable-encoder=mpeg2video \
    1.97 -		--disable-encoder=msmpeg4v2 \
    1.98 -		--disable-encoder=msmpeg4v3 \
    1.99 -		--disable-symver \
   1.100 -		--disable-debug \
   1.101 -		--disable-doc \
   1.102 -		${ARCH_ARGS} &&
   1.103 -	make && make install
   1.104 +		$ARCH_ARGS &&
   1.105 +
   1.106 +#		--enable-avresample \
   1.107 +#		--enable-pthreads \
   1.108 +#		--enable-small \
   1.109 +#		--enable-ffserver \
   1.110 +#		--disable-ffprobe \
   1.111 +#		--disable-encoder=h263 \
   1.112 +#		--disable-encoder=h263p \
   1.113 +#		--disable-encoder=mpeg2video \
   1.114 +#		--disable-encoder=msmpeg4v2 \
   1.115 +#		--disable-encoder=msmpeg4v3 \
   1.116 +#		--disable-symver \
   1.117 +#		--disable-doc \
   1.118 +
   1.119 +	make &&
   1.120 +	gcc tools/qt-faststart.c -o tools/qt-faststart &&
   1.121 +	make install &&
   1.122 +	install -v -m755 tools/qt-faststart $install/usr/bin &&
   1.123 +	docdir=$install/usr/share/doc/ffmpeg-$VERSION &&
   1.124 +	mkdir -p $docdir &&
   1.125 +	cp doc/*.txt $docdir
   1.126  }
   1.127  
   1.128  # Rules to gen a SliTaz package suitable for Tazpkg.
   1.129  genpkg_rules()
   1.130  {
   1.131 -	mkdir -p \
   1.132 -		$fs/usr/bin \
   1.133 -		$fs/usr/lib \
   1.134 -		$fs/usr/share
   1.135 -	cp -a $install/usr/lib/*so* $fs/usr/lib
   1.136 -	cp -a $install/usr/bin/ffmpeg $fs/usr/bin
   1.137 -	cp -a $install/usr/share/$PACKAGE $fs/usr/share
   1.138 -	rm -rf $fs/usr/share/$PACKAGE/examples
   1.139 +	case $PACKAGE in
   1.140 +		ffmpeg)
   1.141 +			copy @std
   1.142 +			rm -rf $fs/usr/share/$PACKAGE/examples/
   1.143 +			SUGGESTED="ffplay"
   1.144 +			TAGS="audio video convert stream"
   1.145 +			DEPENDS="bzlib fdk-aac freetype lame libass liblzma libtheora-enc \
   1.146 +			libvorbis libvpx opus x264 x265 xorg-libxcb zlib"
   1.147 +			case "$SLITAZ_ARCH" in
   1.148 +				arm*) DEPENDS="alsa-lib bzip2 zlib" ;;
   1.149 +			esac
   1.150 +			;;
   1.151 +		*-dev)
   1.152 +			copy @dev examples/
   1.153 +			DEPENDS="ffmpeg bzip2-dev fdk-aac-dev freetype-dev lame-dev \
   1.154 +			libass-dev libogg-dev libtheora-dev libvorbis-dev libvpx-dev \
   1.155 +			opus-dev x264-dev x265-dev xorg-libX11-dev xorg-libxcb-dev xz-dev \
   1.156 +			zlib-dev"
   1.157 +			;;
   1.158 +	esac
   1.159  }