wok-undigest view sdcc/receipt @ rev 343

brasero: fix genpkg_rules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 15 16:18:23 2011 +0200 (2011-06-15)
parents
children 8964f52235e3
line source
1 # SliTaz package receipt.
3 PACKAGE="sdcc"
4 VERSION="2.9.0"
5 CATEGORY="development"
6 SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
9 WEB_SITE="http://sdcc.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
11 TAGS="cross compiler"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mv $PACKAGE $src 2> /dev/null
17 cd $src
18 find -name getline.h | xargs sed -i \
19 's/char.*getline/#define getline sdcc_getline\nchar *sdcc_getline/'
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $_pkg/usr $fs
31 }