wok annotate cdrdao/receipt @ rev 5474
glibmm-dev: add doctool
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 05 21:40:09 2010 +0200 (2010-05-05) |
parents | a120bd16ac79 |
children | 964f5d384827 |
rev | line source |
---|---|
jozee@2723 | 1 # SliTaz package receipt. |
jozee@2723 | 2 |
jozee@2723 | 3 PACKAGE="cdrdao" |
jozee@2723 | 4 VERSION="1.2.2" |
jozee@2723 | 5 CATEGORY="multimedia" |
jozee@2723 | 6 SHORT_DESC="Records audio/data CD-Rs using toc files" |
jozee@2723 | 7 MAINTAINER="jozee@slitaz.org" |
jozee@2723 | 8 DEPENDS="gcc-lib-base lame libmad libvorbis libao" |
jozee@2723 | 9 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao" |
jozee@2723 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
jozee@2723 | 11 WEB_SITE="http://downloads.sourceforge.net/$PACKAGE" |
jozee@2723 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
jozee@2723 | 13 |
jozee@2723 | 14 # Rules to configure and make the package. |
jozee@2723 | 15 compile_rules() |
jozee@2723 | 16 { |
jozee@2723 | 17 cd $src |
pascal@4282 | 18 for i in trackdb/*.cc ; do |
pascal@4282 | 19 grep -q string.h $i && continue |
pascal@4282 | 20 grep -q util.h $i || continue |
pascal@4282 | 21 sed -i 's/"util.h"/&\n#include <string.h>/' $i |
pascal@4282 | 22 done |
pascal@4282 | 23 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \ |
pascal@4282 | 24 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h |
pascal@4282 | 25 ./configure --prefix=/usr --with-lame && |
pascal@4282 | 26 make && |
jozee@2723 | 27 make DESTDIR=$PWD/_pkg install |
jozee@2723 | 28 } |
jozee@2723 | 29 |
jozee@2723 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2723 | 31 genpkg_rules() |
jozee@2723 | 32 { |
jozee@2723 | 33 mkdir -p $fs/usr/bin |
jozee@2723 | 34 cp -a $_pkg/usr/bin/cdrdao $fs/usr/bin |
jozee@2723 | 35 cp -a $_pkg/usr/share $fs/usr |
jozee@2723 | 36 |
jozee@2723 | 37 } |