wok-undigest view libvalhalla/receipt @ rev 1216

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:44 2019 +0100 (2019-02-27)
parents
children
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 DEPENDS="ffmpeg libexif sqlite libxml2 libgcrypt libcurl libcrypto"
9 BUILD_DEPENDS="ffmpeg-dev sqlite-dev libxml2-dev libexif-dev curl-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://libvalhalla.geexbox.org/"
12 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i '/av_metadata_get/d' configure
19 sed -i 's/av_metadata_get/av_dict_get/' configure src/parser.c
20 sed -i 's/AVMetadataTag/AVDictionaryEntry/' src/parser.c
22 # Fix build with curl >= 7.21.2
23 sed -i '/#include <curl\/types.h>/d' src/url_utils.c
25 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure
26 # Fix configure for GCC 4.5.0
27 sed -i 's/"\$@" >>\$logfile 2/$@ >>$logfile 2/' configure
28 ./configure \
29 --prefix=/usr &&
30 make && make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 }