wok annotate sdcc/receipt @ rev 11576
nvclock: autoreconf before build
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 02 23:06:19 2012 +0100 (2012-01-02) |
parents | 7ad949dccd95 |
children | 84ac67254317 |
rev | line source |
---|---|
pascal@11212 | 1 # SliTaz package receipt. |
pascal@11212 | 2 |
pascal@11212 | 3 PACKAGE="sdcc" |
pascal@11212 | 4 VERSION="2.9.0" |
pascal@11212 | 5 CATEGORY="development" |
pascal@11212 | 6 SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08." |
pascal@11212 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@11212 | 8 TARBALL="$PACKAGE-src-$VERSION.tar.bz2" |
pascal@11212 | 9 WEB_SITE="http://sdcc.sourceforge.net/" |
pascal@11212 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL" |
pascal@11212 | 11 TAGS="cross compiler" |
gokhlayeh@11486 | 12 BUILD_DEPENDS="flex" |
pascal@11212 | 13 |
pascal@11212 | 14 # Rules to configure and make the package. |
pascal@11212 | 15 compile_rules() |
pascal@11212 | 16 { |
pascal@11212 | 17 mv $PACKAGE $src 2> /dev/null |
pascal@11212 | 18 cd $src |
pascal@11212 | 19 sed -i 's/all %/%/' device/lib/pic/Makefile.in |
pascal@11212 | 20 find -name getline.h | xargs sed -i \ |
pascal@11212 | 21 's/char.*getline/#define getline sdcc_getline\nchar *sdcc_getline/' |
pascal@11212 | 22 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@11212 | 23 --mandir=/usr/share/man \ |
pascal@11212 | 24 $CONFIGURE_ARGS && |
pascal@11212 | 25 make && |
pascal@11212 | 26 make DESTDIR=$PWD/_pkg install |
pascal@11212 | 27 } |
pascal@11212 | 28 |
pascal@11212 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11212 | 30 genpkg_rules() |
pascal@11212 | 31 { |
pascal@11212 | 32 cp -a $_pkg/usr $fs |
pascal@11212 | 33 } |
pascal@11212 | 34 |