wok-next view cdrdao/receipt @ rev 20634
oxine: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 27 12:51:30 2018 +0200 (2018-04-27) |
parents | a9236dc0f5fb |
children | d6378d455338 |
line source
1 # SliTaz package receipt v2.
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 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/cdrdao/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev"
15 SPLIT="cdrdao-utils"
17 compile_rules() {
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 export CXXFLAGS="-Wno-narrowing"
30 ./configure \
31 --prefix=/usr \
32 --with-lame \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 cdrdao)
41 mkdir -p $fs/usr/bin
42 cp -a $install/usr/bin/cdrdao $fs/usr/bin
43 cp -a $install/usr/share $fs/usr
44 DEPENDS="gcc-lib-base lame libmad libvorbis libao"
45 ;;
46 cdrdao-utils)
47 mkdir -p $fs/usr/bin
48 cp -a $install/usr/bin/ $fs/usr
49 rm $fs/usr/bin/cdrdao
50 CAT="multimedia|extra utilities"
51 DEPENDS="lame libao libmad libogg libvorbis"
52 ;;
53 esac
54 }