wok annotate tcc/receipt @ rev 9056
brscan: no in genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 11:46:37 2011 +0100 (2011-03-04) |
parents | 0467a03ba03f |
children | cff46a382835 |
rev | line source |
---|---|
pascal@769 | 1 # SliTaz package receipt. |
pascal@769 | 2 |
pascal@769 | 3 PACKAGE="tcc" |
pascal@4253 | 4 VERSION="0.9.25" |
pascal@769 | 5 CATEGORY="development" |
pascal@769 | 6 SHORT_DESC="fast Tiny C Compiler." |
pascal@769 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@769 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@769 | 9 WEB_SITE="http://bellard.org/$PACKAGE/" |
pascal@5573 | 10 DEPENDS="tcc-common" |
pascal@8909 | 11 BUILD_DEPENDS="perl" |
pascal@769 | 12 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" |
jozee@4973 | 13 TAGS="compiler C" |
pascal@769 | 14 |
pascal@769 | 15 # Rules to configure and make the package. |
pascal@769 | 16 compile_rules() |
pascal@769 | 17 { |
pascal@769 | 18 cd $src |
pascal@1454 | 19 if [ ! -f done.Makefile.u ]; then |
pascal@8974 | 20 patch < $stuff/Makefile.u || return 1 |
pascal@1454 | 21 touch done.Makefile.u |
pascal@1454 | 22 fi |
pascal@4253 | 23 sed -i 's/cp -u/cp/' tests/Makefile |
pascal@5573 | 24 ./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS && |
pascal@1454 | 25 make && |
pascal@1454 | 26 make test && |
pascal@769 | 27 make DESTDIR=$PWD/_pkg install |
pascal@769 | 28 } |
pascal@769 | 29 |
pascal@769 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@769 | 31 genpkg_rules() |
pascal@769 | 32 { |
pascal@5573 | 33 mkdir -p $fs/usr/bin |
pascal@5573 | 34 cp -a $_pkg/usr/bin/tcc $fs/usr/bin |
pascal@769 | 35 } |
pascal@769 | 36 |