wok-next annotate tcc/receipt @ rev 14881
Up ManaPlus
author | Brenton Scott <admin@trixarian.net> |
---|---|
date | Wed Jul 24 14:51:05 2013 +0200 (2013-07-24) |
parents | 87ed2f0de883 |
children | 76b72f1ad63c |
rev | line source |
---|---|
pascal@769 | 1 # SliTaz package receipt. |
pascal@769 | 2 |
pascal@769 | 3 PACKAGE="tcc" |
pascal@14343 | 4 VERSION="0.9.26" |
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" |
pascal@14781 | 9 LICENSE="LGPL" |
pankso@13370 | 10 WEB_SITE="http://bellard.org/tcc/" |
pankso@13370 | 11 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" |
pascal@14746 | 12 TAGS="compiler C assembler" |
pankso@13370 | 13 HOST_ARCH="i486 arm" |
pankso@13370 | 14 |
pascal@5573 | 15 DEPENDS="tcc-common" |
pascal@14345 | 16 BUILD_DEPENDS="perl texinfo" |
pankso@13370 | 17 |
pankso@13370 | 18 # Perl is installed in a cross env. |
pankso@13370 | 19 case "$ARCH" in |
pankso@13370 | 20 arm) BUILD_DEPENDS="" ;; |
pankso@13370 | 21 esac |
pascal@769 | 22 |
pascal@769 | 23 # Rules to configure and make the package. |
pascal@769 | 24 compile_rules() |
pascal@769 | 25 { |
pascal@769 | 26 cd $src |
pankso@13370 | 27 ./configure \ |
pankso@13370 | 28 --prefix=/usr \ |
pankso@13370 | 29 --enable-cross \ |
pankso@13370 | 30 $CONFIGURE_ARGS && |
pankso@13370 | 31 make && make test && |
pankso@13370 | 32 make DESTDIR=$DESTDIR install |
pascal@769 | 33 } |
pascal@769 | 34 |
pascal@769 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@769 | 36 genpkg_rules() |
pascal@769 | 37 { |
pascal@5573 | 38 mkdir -p $fs/usr/bin |
pankso@13370 | 39 cp -a $install/usr/bin/tcc $fs/usr/bin |
pascal@769 | 40 } |
pascal@769 | 41 |