wok view sdcc/receipt @ rev 11318
Up: scite to 3.0.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Nov 16 14:02:34 2011 +0000 (2011-11-16) |
parents | |
children | 7a6c21322e85 |
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 sed -i 's/all %/%/' device/lib/pic/Makefile.in
19 find -name getline.h | xargs sed -i \
20 's/char.*getline/#define getline sdcc_getline\nchar *sdcc_getline/'
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cp -a $_pkg/usr $fs
32 }