wok-next view cdrdao/receipt @ rev 12753

dosbox: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 11 13:42:55 2012 +0200 (2012-05-11)
parents 0e0514e408c6
children eb8067417980
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 DEPENDS="gcc-lib-base lame libmad libvorbis libao"
9 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://downloads.sourceforge.net/$PACKAGE"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 for i in trackdb/*.cc ; do
19 grep -q string.h $i && continue
20 grep -q util.h $i || continue
21 sed -i 's/"util.h"/&\n#include <string.h>/' $i
22 done
23 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \
24 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h
25 grep -qs 'define u8' scsilib/libscg/scsi-linux-sg.c ||
26 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
27 scsilib/libscg/scsi-linux-sg.c
28 patch -Np1 -i $stuff/$PACKAGE-$VERSION-stat.patch || return 1
29 ./configure --prefix=/usr --with-lame $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $_pkg/usr/bin/cdrdao $fs/usr/bin
39 cp -a $_pkg/usr/share $fs/usr
40 }