wok-6.x annotate tcc/receipt @ rev 11193
Up: evilvte to 0.5.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 03 03:10:09 2011 +0000 (2011-11-03) |
parents | 940b5937e496 |
children | d561d922d015 |
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@9171 | 24 sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \ |
pascal@9171 | 25 tests/Makefile |
pascal@5573 | 26 ./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS && |
pascal@1454 | 27 make && |
pascal@1454 | 28 make test && |
pascal@769 | 29 make DESTDIR=$PWD/_pkg install |
pascal@769 | 30 } |
pascal@769 | 31 |
pascal@769 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@769 | 33 genpkg_rules() |
pascal@769 | 34 { |
pascal@5573 | 35 mkdir -p $fs/usr/bin |
pascal@5573 | 36 cp -a $_pkg/usr/bin/tcc $fs/usr/bin |
pascal@769 | 37 } |
pascal@769 | 38 |