wok-next view cdrdao/receipt @ rev 20420

linux-dev: up 4.9.76
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 11 15:21:05 2018 +0200 (2018-01-11)
parents eb8067417980
children 8940878905f3
line source
1 # SliTaz package receipt.
3 PACKAGE="cdrdao"
4 VERSION="1.2.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Records audio/data CD-Rs using toc files"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://downloads.sourceforge.net/$PACKAGE"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="gcc-lib-base lame libmad libvorbis libao"
14 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 for i in trackdb/*.cc ; do
20 grep -q string.h $i && continue
21 grep -q util.h $i || continue
22 sed -i 's/"util.h"/&\n#include <string.h>/' $i
23 done
24 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \
25 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h
26 grep -qs 'define u8' scsilib/libscg/scsi-linux-sg.c ||
27 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
28 scsilib/libscg/scsi-linux-sg.c
29 patch -Np1 -i $stuff/$PACKAGE-$VERSION-stat.patch || return 1
30 export CXXFLAGS="-Wno-narrowing"
31 ./configure --prefix=/usr --with-lame $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin
40 cp -a $install/usr/bin/cdrdao $fs/usr/bin
41 cp -a $install/usr/share $fs/usr
42 }