wok-next view cdrdao/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | d6378d455338 |
children | d2950281f122 |
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 GConf"
16 SPLIT="cdrdao-utils"
18 compile_rules() {
19 for i in trackdb/*.cc ; do
20 grep -q string.h $i && continue
21 grep -q util.h $i || continue
22 sed -i 's/"util.h"/&\n#include <string.h>/' $i
23 done
24 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \
25 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h
26 grep -qs 'define u8' scsilib/libscg/scsi-linux-sg.c ||
27 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
28 scsilib/libscg/scsi-linux-sg.c
29 export CXXFLAGS="-Wno-narrowing"
31 ./configure \
32 --prefix=/usr \
33 --with-lame \
34 $CONFIGURE_ARGS &&
35 make -j1 &&
36 make DESTDIR=$DESTDIR install
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 cdrdao)
42 mkdir -p $fs/usr/bin
43 cp -a $install/usr/bin/cdrdao $fs/usr/bin
44 cp -a $install/usr/share $fs/usr
45 DEPENDS="libao libmad libvorbis"
46 ;;
47 cdrdao-utils)
48 mkdir -p $fs/usr/bin
49 cp -a $install/usr/bin/ $fs/usr
50 rm $fs/usr/bin/cdrdao
51 CAT="multimedia|extra utilities"
52 DEPENDS="lame libao libmad libvorbis"
53 ;;
54 esac
55 }