wok view cdrdao/receipt @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents 6e8b1bcb30e2
children bfabe25c21ff
line source
1 # SliTaz package receipt.
3 PACKAGE="cdrdao"
4 VERSION="1.2.4"
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="http://cdrdao.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://downloads.sourceforge.net/$PACKAGE/$TARBALL"
14 DEPENDS="gcc-lib-base lame libmad libvorbis libao"
15 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 for i in trackdb/*.cc ; do
21 grep -q string.h $i && continue
22 grep -q util.h $i || continue
23 sed -i 's/"util.h"/&\n#include <string.h>/' $i
24 done
25 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \
26 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h
27 grep -qs 'define u8' scsilib/libscg/scsi-linux-sg.c ||
28 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
29 scsilib/libscg/scsi-linux-sg.c
30 # patch -Np1 -i $stuff/$PACKAGE-$VERSION-stat.patch || return 1
32 ./configure \
33 --prefix=/usr \
34 --with-lame \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin
44 cp -a $install/usr/bin/cdrdao $fs/usr/bin
45 cp -a $install/usr/share $fs/usr
46 }