wok-6.x view libvalhalla/receipt @ rev 15111

libtdb: no more tdb.mk
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 21:01:32 2013 +0000 (2013-08-14)
parents 1111758c4102
children ee5c8b018b62
line source
1 # SliTaz package receipt.
3 PACKAGE="libvalhalla"
4 VERSION="2.1.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="A tiny media scanner API."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://libvalhalla.geexbox.org/"
11 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL"
13 DEPENDS="ffmpeg libexif sqlite libxml2 libgcrypt libcurl libcrypto"
14 BUILD_DEPENDS="ffmpeg-dev sqlite-dev libxml2-dev libexif-dev curl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 export LDFLAGS="-lavformat"
21 sed -i '/prealloced_context/d' src/lavf_utils.c
22 sed -i 's/AVFormatParameters /AVDictionary */' src/lavf_utils.c
23 sed -i 's/av_open_input_file\(.*, \)0, \(.*\)$/avformat_open_input\1\2/' src/lavf_utils.c
24 sed -i '/av_metadata_get/d' configure
25 sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c
26 sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c
28 # Fix build with curl >= 7.21.2
29 sed -i '/#include <curl\/types.h>/d' src/url_utils.c
31 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure
32 # Fix configure for GCC 4.5.0
33 sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure
34 ./configure \
35 --prefix=/usr &&
36 make && make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }