wok-next diff ffmpeg/receipt @ rev 16035
ARM: some more Xorg packages needed to build xorg-server-light
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 09 03:09:11 2014 +0100 (2014-03-09) |
parents | 7bb096863642 |
children | 53082fab5f1e |
line diff
1.1 --- a/ffmpeg/receipt Sat Sep 14 17:06:00 2013 +0000 1.2 +++ b/ffmpeg/receipt Sun Mar 09 03:09:11 2014 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="ffmpeg" 1.7 -VERSION="1.0" 1.8 +VERSION="2.1.4" 1.9 CATEGORY="multimedia" 1.10 SHORT_DESC="Record, convert and stream audio and video." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -9,17 +9,31 @@ 1.13 WEB_SITE="http://ffmpeg.org/" 1.14 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.15 WGET_URL="${WEB_SITE}releases/$TARBALL" 1.16 +HOST_ARCH="i486 arm" 1.17 + 1.18 SUGGESTED="ffplay" 1.19 TAGS="audio video convert stream" 1.20 1.21 -DEPENDS="alsa-lib" 1.22 +DEPENDS="alsa-lib libsdl bzip2" 1.23 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ 1.24 coreutils-file-special yasm" 1.25 1.26 +# Handle cross compilation. Host coreutils-file-* are used 1.27 +case "$ARCH" in 1.28 + i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; 1.29 + arm*) BUILD_DEPENDS="zlib-dev bzip2-dev yasm" 1.30 + ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ 1.31 +--cross-prefix=$HOST_SYSTEM-" ;; 1.32 +esac 1.33 + 1.34 +# Handle arch package install 1.35 +case "$SLITAZ_ARCH" in 1.36 + arm*) DEPENDS="alsa-lib bzip2" ;; 1.37 +esac 1.38 + 1.39 # Rules to configure and make the package. 1.40 compile_rules() 1.41 { 1.42 - cd $src 1.43 ./configure \ 1.44 --prefix=/usr \ 1.45 --enable-shared \ 1.46 @@ -40,7 +54,7 @@ 1.47 --disable-encoder=msmpeg4v3 \ 1.48 --disable-symver \ 1.49 --disable-debug \ 1.50 - --disable-doc && 1.51 + --disable-doc ${ARCH_ARGS} && 1.52 make && make install 1.53 } 1.54 1.55 @@ -53,5 +67,5 @@ 1.56 cp -a $install/usr/share/$PACKAGE $fs/usr/share 1.57 rm -rf $fs/usr/share/$PACKAGE/examples 1.58 # ffplay with it SDL dep go in a splited package 1.59 - rm $fs/usr/bin/ffplay 1.60 + rm -f $fs/usr/bin/ffplay 1.61 }