wok view cdrdao/receipt @ rev 9471
Automated merge with http://repos.slitaz.org/wok
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Apr 04 01:32:45 2011 +0200 (2011-04-04) |
parents | 32cde9ab5311 |
children | cbfb348cb173 |
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"
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 &&
30 make &&
31 make DESTDIR=$PWD/_pkg 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 }