# HG changeset patch # User Christophe Lincoln # Date 1394975683 -3600 # Node ID d716e8d592848504e7e6a5548764e8bb93996391 # Parent 562fe5c20594163b5232b4511bd59aa211c58a05 Add ffmpeg-compat (needed to build libvalhalla) diff -r 562fe5c20594 -r d716e8d59284 ffmpeg-compat-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ffmpeg-compat-dev/receipt Sun Mar 16 14:14:43 2014 +0100 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="ffmpeg-compat-dev" +VERSION="2.1.4" +CATEGORY="development" +SHORT_DESC="Devel files for ffmpeg-compat (used to build enna)" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2 LGPL2.1" +WEB_SITE="http://ffmpeg.org/" +WANTED="ffmpeg-compat" +#HOST_ARCH="i486 arm" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/include $fs/usr +} diff -r 562fe5c20594 -r d716e8d59284 ffmpeg-compat/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ffmpeg-compat/receipt Sun Mar 16 14:14:43 2014 +0100 @@ -0,0 +1,79 @@ +# SliTaz package receipt. + +PACKAGE="ffmpeg-compat" +VERSION="0.10.12" +CATEGORY="multimedia" +SHORT_DESC="Record, convert and stream audio and video (compatible libs version)." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2 LGPL2.1" +WEB_SITE="http://ffmpeg.org/" +SOURCE="ffmpeg" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WGET_URL="${WEB_SITE}releases/$TARBALL" +#HOST_ARCH="i486 arm" + +DEPENDS="alsa-lib libsdl bzip2" +BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ +coreutils-file-special yasm" + +# Handle cross compilation. Host coreutils-file-* are used +case "$ARCH" in + i?86) + ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; + arm*) + BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev" + ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ +--cross-prefix=$HOST_SYSTEM-" ;; +esac + +# Handle arch package install +case "$SLITAZ_ARCH" in + arm*) DEPENDS="alsa-lib bzip2" ;; +esac + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --prefix=/usr \ + --incdir=/usr/include/ffmpeg-compat \ + --libdir=/usr/lib/ffmpeg-compat \ + --shlibdir=/usr/lib/ffmpeg-compat \ + --enable-shared \ + --enable-gpl \ + --enable-runtime-cpudetect \ + --enable-pthreads \ + --enable-small \ + --disable-static \ + --disable-ffprobe \ + --disable-ffserver \ + --disable-ffplay \ + --disable-encoder=h263 \ + --disable-encoder=h263p \ + --disable-encoder=mpeg2video \ + --disable-encoder=mpeg4 \ + --disable-encoder=msmpeg4v1 \ + --disable-encoder=msmpeg4v2 \ + --disable-encoder=msmpeg4v3 \ + --disable-symver \ + --disable-debug \ + --disable-doc ${ARCH_ARGS} && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib +} + +post_instal() +{ + echo "/usr/lib/ffmpeg-compat" >> ld.so.conf +} + +post_remove() +{ + sed -i '#/usr/lib/ffmpeg-compat#'d +} diff -r 562fe5c20594 -r d716e8d59284 libvalhalla/receipt --- a/libvalhalla/receipt Sun Mar 16 10:04:50 2014 +0000 +++ b/libvalhalla/receipt Sun Mar 16 14:14:43 2014 +0100 @@ -10,30 +10,32 @@ WEB_SITE="http://libvalhalla.geexbox.org/" WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL" -DEPENDS="ffmpeg libexif sqlite libxml2 libgcrypt libcurl libcrypto" -BUILD_DEPENDS="ffmpeg-dev sqlite-dev libxml2-dev libexif-dev curl-dev" +DEPENDS="ffmpeg ffmpeg-compat libexif sqlite libxml2 libgcrypt libcurl libcrypto" +BUILD_DEPENDS="ffmpeg-compat-dev sqlite-dev libxml2-dev libexif-dev curl-dev" # Rules to configure and make the package. compile_rules() { - cd $src - export LDFLAGS="-lavformat" - sed -i '/prealloced_context/d' src/lavf_utils.c - sed -i 's/AVFormatParameters /AVDictionary */' src/lavf_utils.c - sed -i 's/av_open_input_file\(.*, \)0, \(.*\)$/avformat_open_input\1\2/' src/lavf_utils.c - sed -i '/av_metadata_get/d' configure - sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c - sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c - - # Fix build with curl >= 7.21.2 - sed -i '/#include /d' src/url_utils.c - + export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig + export LDFLAGS="-Wl,-rpath=/usr/lib/ffmpeg-compat" + # Fix Busybox cat sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' >\$logfile 2/$@ >>$logfile 2/' configure + + ##export LDFLAGS="-lavformat" + #sed -i '/prealloced_context/d' src/lavf_utils.c + #sed -i 's/AVFormatParameters /AVDictionary */' src/lavf_utils.c + #sed -i 's/av_open_input_file\(.*, \)0, \(.*\)$/avformat_open_input\1\2/' src/lavf_utils.c + #sed -i '/av_metadata_get/d' configure + #sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c + #sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c + ## Fix build with curl >= 7.21.2 + #sed -i '/#include /d' src/url_utils.c + ## Fix configure for GCC 4.5.0 + #sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure + ./configure \ --prefix=/usr && - make && make DESTDIR=$DESTDIR install + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg.