wok-undigest diff ffmpeg/receipt @ rev 1223

copied libxext recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:38:29 2019 +0100 (2019-11-15)
parents
children cf19e70a6352
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ffmpeg/receipt	Fri Nov 15 17:38:29 2019 +0100
     1.3 @@ -0,0 +1,80 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ffmpeg"
     1.7 +VERSION="2.1.4"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="Record, convert and stream audio and video."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2 LGPL2.1"
    1.12 +WEB_SITE="http://ffmpeg.org/"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="${WEB_SITE}releases/$TARBALL"
    1.15 +HOST_ARCH="i486 arm"
    1.16 +
    1.17 +SUGGESTED="ffplay"
    1.18 +TAGS="audio video convert stream"
    1.19 +
    1.20 +DEPENDS="alsa-lib libsdl bzip2 zlib"
    1.21 +BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
    1.22 +coreutils-file-special yasm"
    1.23 +
    1.24 +case "$SLITAZ_ARCH" in
    1.25 +	arm*) DEPENDS="alsa-lib bzip2 zlib" ;;
    1.26 +esac
    1.27 +
    1.28 +# Handle cross compilation. Host coreutils-file-* are used
    1.29 +case "$ARCH" in
    1.30 +	i?86) 
    1.31 +		ARCH_ARGS="--arch=$ARCH --cpu=$ARCH"
    1.32 +		export CFLAGS="$CFLAGS -mtune=i686"
    1.33 +		export CXXFLAGS="$CFLAGS" ;;
    1.34 +	arm*) 
    1.35 +		BUILD_DEPENDS="zlib-dev bzip2-dev yasm" 
    1.36 +		ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
    1.37 +		--cross-prefix=$HOST_SYSTEM-" ;;
    1.38 +esac
    1.39 +
    1.40 +# Handle arch package install
    1.41 +case "$SLITAZ_ARCH" in
    1.42 +	arm*) DEPENDS="alsa-lib bzip2" ;;
    1.43 +esac
    1.44 +
    1.45 +# Rules to configure and make the package.
    1.46 +compile_rules()
    1.47 +{
    1.48 +	./configure \
    1.49 +		--prefix=/usr \
    1.50 +		--enable-shared \
    1.51 +		--disable-static \
    1.52 +		--enable-gpl \
    1.53 +		--enable-runtime-cpudetect \
    1.54 +		--enable-avresample \
    1.55 +		--enable-pthreads \
    1.56 +		--enable-small \
    1.57 +		--enable-ffserver \
    1.58 +		--disable-ffprobe \
    1.59 +		--disable-encoder=h263 \
    1.60 +		--disable-encoder=h263p \
    1.61 +		--disable-encoder=mpeg2video \
    1.62 +		--disable-encoder=msmpeg4v1 \
    1.63 +		--disable-encoder=msmpeg4v2 \
    1.64 +		--disable-encoder=msmpeg4v3 \
    1.65 +		--disable-symver \
    1.66 +		--disable-debug \
    1.67 +		--disable-doc \
    1.68 +		${ARCH_ARGS} &&
    1.69 +	make && make install
    1.70 +}
    1.71 +
    1.72 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.73 +genpkg_rules()
    1.74 +{
    1.75 +	mkdir -p \
    1.76 +		$fs/usr/bin \
    1.77 +		$fs/usr/lib \
    1.78 +		$fs/usr/share
    1.79 +	cp -a $install/usr/lib/*so* $fs/usr/lib
    1.80 +	cp -a $install/usr/bin/ffmpeg $fs/usr/bin
    1.81 +	cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.82 +	rm -rf $fs/usr/share/$PACKAGE/examples
    1.83 +}