wok view cdrkit/receipt @ rev 5941

gcc: enable lto
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 02 17:01:27 2010 +0200 (2010-08-02)
parents 063ab2698119
children e97b439c02c1
line source
1 # SliTaz package receipt.
3 PACKAGE="cdrkit"
4 VERSION="1.1.10"
5 CATEGORY="utilities"
6 SHORT_DESC="Wodim for recording/blanking CDs/DVDs and genisoimage for ISO."
7 MAINTAINER="pankso@slitaz.org"
8 BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr attr-dev"
9 DEPENDS="libcap zlib bzlib attr"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.cdrkit.org/"
12 WGET_URL="http://cdrkit.org/releases/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \
19 genisoimage/CMakeLists.txt
20 #patch -p1 < ../stuff/$PACKAGE-1.1.9-glibc-2.10.patch || exit 1
21 grep -qs 'define u8' libusal/scsi-linux-sg.c ||
22 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' libusal/scsi-linux-sg.c
23 make &&
24 make install PREFIX=$PWD/_pkg/usr
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 cp $_pkg/usr/bin/genisoimage $fs/usr/bin
32 cp $_pkg/usr/bin/wodim $fs/usr/bin
33 strip -s $fs/usr/bin/*
35 # Make symlinks for cdrtools compatibility
36 cd $fs/usr/bin
37 ln -s wodim cdrecord
38 ln -s genisoimage mkisofs
39 ln -s genisoimage mkhybrid
40 }