wok-undigest rev 110
Add sdcc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 07 10:19:23 2010 +0200 (2010-05-07) |
parents | 31b41668ad9d |
children | 87e0b6fcda0a |
files | sdcc/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sdcc/receipt Fri May 07 10:19:23 2010 +0200 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="sdcc" 1.7 +VERSION="2.9.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-src-$VERSION.tar.bz2" 1.12 +WEB_SITE="http://sdcc.sourceforge.net/" 1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL" 1.14 +TAGS="cross compiler" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + mv $PACKAGE $src 2> /dev/null 1.20 + cd $src 1.21 + find -name getline.h | xargs sed -i \ 1.22 + 's/char.*getline/#define getline sdcc_getline\nchar *sdcc_getline/' 1.23 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.24 + --mandir=/usr/share/man \ 1.25 + $CONFIGURE_ARGS && 1.26 + make && 1.27 + make DESTDIR=$PWD/_pkg install 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + cp -a $_pkg/usr $fs 1.34 +} 1.35 +