wok-next rev 16092

Add ffmpeg-compat (needed to build libvalhalla)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 16 14:14:43 2014 +0100 (2014-03-16)
parents 562fe5c20594
children 9f329def90a6
files ffmpeg-compat-dev/receipt ffmpeg-compat/receipt libvalhalla/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ffmpeg-compat-dev/receipt	Sun Mar 16 14:14:43 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ffmpeg-compat-dev"
     1.7 +VERSION="2.1.4"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Devel files for ffmpeg-compat (used to build enna)"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2 LGPL2.1"
    1.12 +WEB_SITE="http://ffmpeg.org/"
    1.13 +WANTED="ffmpeg-compat"
    1.14 +#HOST_ARCH="i486 arm"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	mkdir -p $fs/usr
    1.20 +	cp -a $install/usr/include $fs/usr
    1.21 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/ffmpeg-compat/receipt	Sun Mar 16 14:14:43 2014 +0100
     2.3 @@ -0,0 +1,79 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="ffmpeg-compat"
     2.7 +VERSION="0.10.12"
     2.8 +CATEGORY="multimedia"
     2.9 +SHORT_DESC="Record, convert and stream audio and video (compatible libs version)."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="GPL2 LGPL2.1"
    2.12 +WEB_SITE="http://ffmpeg.org/"
    2.13 +SOURCE="ffmpeg"
    2.14 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    2.15 +WGET_URL="${WEB_SITE}releases/$TARBALL"
    2.16 +#HOST_ARCH="i486 arm"
    2.17 +
    2.18 +DEPENDS="alsa-lib libsdl bzip2"
    2.19 +BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
    2.20 +coreutils-file-special yasm"
    2.21 +
    2.22 +# Handle cross compilation. Host coreutils-file-* are used
    2.23 +case "$ARCH" in
    2.24 +	i?86) 
    2.25 +		ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
    2.26 +	arm*) 
    2.27 +		BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev" 
    2.28 +		ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
    2.29 +--cross-prefix=$HOST_SYSTEM-" ;;
    2.30 +esac
    2.31 +
    2.32 +# Handle arch package install
    2.33 +case "$SLITAZ_ARCH" in
    2.34 +	arm*) DEPENDS="alsa-lib bzip2" ;;
    2.35 +esac
    2.36 +
    2.37 +# Rules to configure and make the package.
    2.38 +compile_rules()
    2.39 +{
    2.40 +	./configure \
    2.41 +		--prefix=/usr \
    2.42 +		--incdir=/usr/include/ffmpeg-compat \
    2.43 +		--libdir=/usr/lib/ffmpeg-compat \
    2.44 +		--shlibdir=/usr/lib/ffmpeg-compat \
    2.45 +		--enable-shared \
    2.46 +		--enable-gpl \
    2.47 +		--enable-runtime-cpudetect \
    2.48 +		--enable-pthreads \
    2.49 +		--enable-small \
    2.50 +		--disable-static \
    2.51 +		--disable-ffprobe \
    2.52 +		--disable-ffserver \
    2.53 +		--disable-ffplay \
    2.54 +		--disable-encoder=h263 \
    2.55 +		--disable-encoder=h263p \
    2.56 +		--disable-encoder=mpeg2video \
    2.57 +		--disable-encoder=mpeg4 \
    2.58 +		--disable-encoder=msmpeg4v1 \
    2.59 +		--disable-encoder=msmpeg4v2 \
    2.60 +		--disable-encoder=msmpeg4v3 \
    2.61 +		--disable-symver \
    2.62 +		--disable-debug \
    2.63 +		--disable-doc ${ARCH_ARGS} &&
    2.64 +	make && make install
    2.65 +}
    2.66 +
    2.67 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.68 +genpkg_rules()
    2.69 +{
    2.70 +	mkdir -p $fs/usr/lib
    2.71 +	cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
    2.72 +}
    2.73 +
    2.74 +post_instal() 
    2.75 +{
    2.76 +	echo "/usr/lib/ffmpeg-compat" >> ld.so.conf
    2.77 +}
    2.78 +
    2.79 +post_remove() 
    2.80 +{
    2.81 +	 sed -i '#/usr/lib/ffmpeg-compat#'d
    2.82 +}
     3.1 --- a/libvalhalla/receipt	Sun Mar 16 10:04:50 2014 +0000
     3.2 +++ b/libvalhalla/receipt	Sun Mar 16 14:14:43 2014 +0100
     3.3 @@ -10,30 +10,32 @@
     3.4  WEB_SITE="http://libvalhalla.geexbox.org/"
     3.5  WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL"
     3.6  
     3.7 -DEPENDS="ffmpeg libexif sqlite libxml2 libgcrypt libcurl libcrypto"
     3.8 -BUILD_DEPENDS="ffmpeg-dev sqlite-dev libxml2-dev libexif-dev curl-dev"
     3.9 +DEPENDS="ffmpeg ffmpeg-compat libexif sqlite libxml2 libgcrypt libcurl libcrypto"
    3.10 +BUILD_DEPENDS="ffmpeg-compat-dev sqlite-dev libxml2-dev libexif-dev curl-dev"
    3.11  
    3.12  # Rules to configure and make the package.
    3.13  compile_rules()
    3.14  {
    3.15 -	cd $src
    3.16 -	export LDFLAGS="-lavformat"
    3.17 -	sed -i '/prealloced_context/d' src/lavf_utils.c
    3.18 -	sed -i 's/AVFormatParameters /AVDictionary */' src/lavf_utils.c
    3.19 -	sed -i 's/av_open_input_file\(.*, \)0, \(.*\)$/avformat_open_input\1\2/' src/lavf_utils.c
    3.20 -	sed -i '/av_metadata_get/d' configure
    3.21 -	sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c
    3.22 -	sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c
    3.23 -
    3.24 -	# Fix build with curl >= 7.21.2
    3.25 -	sed -i '/#include <curl\/types.h>/d' src/url_utils.c
    3.26 -
    3.27 +	export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
    3.28 +	export LDFLAGS="-Wl,-rpath=/usr/lib/ffmpeg-compat"
    3.29 +	# Fix Busybox cat
    3.30  	sed -i 's/cat -n/awk '"'"'{ printf "%6d  %s\\n",++n,$0 }'"'"' </' configure
    3.31 -	# Fix configure for GCC 4.5.0
    3.32 -	sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure
    3.33 +	
    3.34 +	##export LDFLAGS="-lavformat"
    3.35 +	#sed -i '/prealloced_context/d' src/lavf_utils.c
    3.36 +	#sed -i 's/AVFormatParameters /AVDictionary */' src/lavf_utils.c
    3.37 +	#sed -i 's/av_open_input_file\(.*, \)0, \(.*\)$/avformat_open_input\1\2/' src/lavf_utils.c
    3.38 +	#sed -i '/av_metadata_get/d' configure
    3.39 +	#sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c
    3.40 +	#sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c
    3.41 +	## Fix build with curl >= 7.21.2
    3.42 +	#sed -i '/#include <curl\/types.h>/d' src/url_utils.c
    3.43 +	## Fix configure for GCC 4.5.0
    3.44 +	#sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure
    3.45 +	
    3.46  	./configure \
    3.47  		--prefix=/usr &&
    3.48 -	make && make DESTDIR=$DESTDIR install
    3.49 +	make && make install
    3.50  }
    3.51  
    3.52  # Rules to gen a SliTaz package suitable for Tazpkg.