wok annotate libvalhalla/receipt @ rev 13814
Add fdupes
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 06 13:29:35 2013 +0100 (2013-01-06) |
parents | f036f9b0902f |
children | 1111758c4102 |
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@5003 | 8 DEPENDS="ffmpeg libexif sqlite libxml2 libgcrypt libcurl libcrypto" |
pascal@13624 | 9 BUILD_DEPENDS="ffmpeg-dev sqlite-dev libxml2-dev libexif-dev curl-dev" |
pankso@4766 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@4766 | 11 WEB_SITE="http://libvalhalla.geexbox.org/" |
pankso@4766 | 12 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL" |
pankso@4766 | 13 |
pankso@4766 | 14 # Rules to configure and make the package. |
pankso@4766 | 15 compile_rules() |
pankso@4766 | 16 { |
pankso@4766 | 17 cd $src |
pascal@13624 | 18 sed -i '/av_metadata_get/d' configure |
pascal@13624 | 19 sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c |
pascal@13624 | 20 sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c |
gokhlayeh@11457 | 21 |
gokhlayeh@11457 | 22 # Fix build with curl >= 7.21.2 |
gokhlayeh@11457 | 23 sed -i '/#include <curl\/types.h>/d' src/url_utils.c |
gokhlayeh@11457 | 24 |
pascal@5162 | 25 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure |
pascal@5903 | 26 # Fix configure for GCC 4.5.0 |
pascal@5903 | 27 sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure |
pankso@4766 | 28 ./configure \ |
pankso@4766 | 29 --prefix=/usr && |
pankso@4766 | 30 make && make DESTDIR=$PWD/_pkg install |
pankso@4766 | 31 } |
pankso@4766 | 32 |
pankso@4766 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4766 | 34 genpkg_rules() |
pankso@4766 | 35 { |
pankso@4766 | 36 mkdir -p $fs/usr/lib |
pankso@4766 | 37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@4766 | 38 } |