wok-current annotate libvalhalla/receipt @ rev 16111
Why on ARM mpg123 install plugins in /usr/lib/mpg123 but not on i486 but it works...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 20 23:46:48 2014 +0100 (2014-03-20) |
parents | ee5c8b018b62 |
children | 1204cf352c74 |
rev | line source |
---|---|
pankso@4766 | 1 # SliTaz package receipt. |
pankso@4766 | 2 |
pankso@4766 | 3 PACKAGE="libvalhalla" |
pascal@13624 | 4 VERSION="2.1.0" |
jozee@4783 | 5 CATEGORY="multimedia" |
pankso@4766 | 6 SHORT_DESC="A tiny media scanner API." |
pankso@4766 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14718 | 8 LICENSE="LGPL2.1" |
pankso@4766 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@4766 | 10 WEB_SITE="http://libvalhalla.geexbox.org/" |
pankso@4766 | 11 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL" |
pankso@4766 | 12 |
pankso@16092 | 13 DEPENDS="ffmpeg ffmpeg-compat libexif sqlite libxml2 libgcrypt libcurl libcrypto" |
pankso@16092 | 14 BUILD_DEPENDS="ffmpeg-compat-dev sqlite-dev libxml2-dev libexif-dev curl-dev" |
pascal@14718 | 15 |
pankso@4766 | 16 # Rules to configure and make the package. |
pankso@4766 | 17 compile_rules() |
pankso@4766 | 18 { |
pankso@16092 | 19 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig |
pankso@16092 | 20 export LDFLAGS="-Wl,-rpath=/usr/lib/ffmpeg-compat" |
pankso@16092 | 21 # Fix Busybox cat |
pascal@5162 | 22 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure |
pankso@16092 | 23 |
pankso@16092 | 24 ##export LDFLAGS="-lavformat" |
pankso@16092 | 25 #sed -i '/prealloced_context/d' src/lavf_utils.c |
pankso@16092 | 26 #sed -i 's/AVFormatParameters /AVDictionary */' src/lavf_utils.c |
pankso@16092 | 27 #sed -i 's/av_open_input_file\(.*, \)0, \(.*\)$/avformat_open_input\1\2/' src/lavf_utils.c |
pankso@16092 | 28 #sed -i '/av_metadata_get/d' configure |
pankso@16092 | 29 #sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c |
pankso@16092 | 30 #sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c |
pankso@16092 | 31 ## Fix build with curl >= 7.21.2 |
pankso@16092 | 32 #sed -i '/#include <curl\/types.h>/d' src/url_utils.c |
pankso@16092 | 33 ## Fix configure for GCC 4.5.0 |
pankso@16092 | 34 #sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure |
pankso@16092 | 35 |
pankso@4766 | 36 ./configure \ |
pankso@4766 | 37 --prefix=/usr && |
pankso@16092 | 38 make && make install |
pankso@4766 | 39 } |
pankso@4766 | 40 |
pankso@4766 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4766 | 42 genpkg_rules() |
pankso@4766 | 43 { |
pankso@4766 | 44 mkdir -p $fs/usr/lib |
pascal@14718 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@4766 | 46 } |