wok-current view cdrdao/receipt @ rev 6389

Fixed some depends problems when building gtk-vnc. Like added libtasn1 to libtasn1-dev. Some builds need the .so files and the headers.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Sep 23 18:31:29 2010 +0000 (2010-09-23)
parents 964f5d384827
children 32cde9ab5311
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 ./configure --prefix=/usr --with-lame &&
29 make &&
30 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/bin
37 cp -a $_pkg/usr/bin/cdrdao $fs/usr/bin
38 cp -a $_pkg/usr/share $fs/usr
40 }