wok-current annotate tcc/receipt @ rev 13801
Up: xterm (287)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Jan 06 04:41:49 2013 +0300 (2013-01-06) |
parents | cff46a382835 |
children | f51d35fb6a4a |
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" |
pankso@13370 | 6 SHORT_DESC="Fast Tiny C Compiler." |
pascal@769 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@769 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@13370 | 9 WEB_SITE="http://bellard.org/tcc/" |
pankso@13370 | 10 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" |
pankso@13370 | 11 TAGS="compiler C" |
pankso@13370 | 12 HOST_ARCH="i486 arm" |
pankso@13370 | 13 |
pascal@5573 | 14 DEPENDS="tcc-common" |
pascal@8909 | 15 BUILD_DEPENDS="perl" |
pankso@13370 | 16 |
pankso@13370 | 17 # Perl is installed in a cross env. |
pankso@13370 | 18 case "$ARCH" in |
pankso@13370 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@13370 | 20 esac |
pascal@769 | 21 |
pascal@769 | 22 # Rules to configure and make the package. |
pascal@769 | 23 compile_rules() |
pascal@769 | 24 { |
pascal@769 | 25 cd $src |
pascal@1454 | 26 if [ ! -f done.Makefile.u ]; then |
pascal@8974 | 27 patch < $stuff/Makefile.u || return 1 |
pascal@1454 | 28 touch done.Makefile.u |
pascal@1454 | 29 fi |
pascal@4253 | 30 sed -i 's/cp -u/cp/' tests/Makefile |
pascal@9171 | 31 sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \ |
pascal@9171 | 32 tests/Makefile |
pankso@13370 | 33 ./configure \ |
pankso@13370 | 34 --prefix=/usr \ |
pankso@13370 | 35 --enable-cross \ |
pankso@13370 | 36 $CONFIGURE_ARGS && |
pankso@13370 | 37 make && make test && |
pankso@13370 | 38 make DESTDIR=$DESTDIR install |
pascal@769 | 39 } |
pascal@769 | 40 |
pascal@769 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@769 | 42 genpkg_rules() |
pascal@769 | 43 { |
pascal@5573 | 44 mkdir -p $fs/usr/bin |
pankso@13370 | 45 cp -a $install/usr/bin/tcc $fs/usr/bin |
pascal@769 | 46 } |
pascal@769 | 47 |