wok annotate cdrdao/receipt @ rev 19366

freeradius: add init script
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 03 21:33:44 2016 +0200 (2016-08-03)
parents c0d151b6ab50
children 6e8b1bcb30e2
rev   line source
jozee@2723 1 # SliTaz package receipt.
jozee@2723 2
jozee@2723 3 PACKAGE="cdrdao"
slaxemulator@6218 4 VERSION="1.2.3"
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"
pascal@15579 8 LICENSE="GPL2"
jozee@2723 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
jozee@2723 10 WEB_SITE="http://downloads.sourceforge.net/$PACKAGE"
jozee@2723 11 WGET_URL="$WEB_SITE/$TARBALL"
jozee@2723 12
pascal@15579 13 DEPENDS="gcc-lib-base lame libmad libvorbis libao"
pascal@15579 14 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev"
pascal@15579 15
jozee@2723 16 # Rules to configure and make the package.
jozee@2723 17 compile_rules()
jozee@2723 18 {
jozee@2723 19 cd $src
pascal@4282 20 for i in trackdb/*.cc ; do
pascal@4282 21 grep -q string.h $i && continue
pascal@4282 22 grep -q util.h $i || continue
pascal@4282 23 sed -i 's/"util.h"/&\n#include <string.h>/' $i
pascal@4282 24 done
pascal@4282 25 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \
pascal@4282 26 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h
pascal@6113 27 grep -qs 'define u8' scsilib/libscg/scsi-linux-sg.c ||
pascal@6113 28 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
pascal@6113 29 scsilib/libscg/scsi-linux-sg.c
pankso@9699 30 patch -Np1 -i $stuff/$PACKAGE-$VERSION-stat.patch || return 1
slaxemulator@10288 31 ./configure --prefix=/usr --with-lame $CONFIGURE_ARGS &&
pascal@4282 32 make &&
slaxemulator@10288 33 make DESTDIR=$DESTDIR install
jozee@2723 34 }
jozee@2723 35
jozee@2723 36 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2723 37 genpkg_rules()
jozee@2723 38 {
jozee@2723 39 mkdir -p $fs/usr/bin
pascal@15579 40 cp -a $install/usr/bin/cdrdao $fs/usr/bin
pascal@15579 41 cp -a $install/usr/share $fs/usr
jozee@2723 42 }