wok-current annotate tcc/receipt @ rev 7853

Up:vim-tiny build with multibyte
author fireflyoo <lufeng369@gmail.com>
date Wed Dec 29 21:27:12 2010 +0800 (2010-12-29)
parents 866fa2493b1b
children 0467a03ba03f
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@769 11 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
jozee@4973 12 TAGS="compiler C"
pascal@769 13
pascal@769 14 # Rules to configure and make the package.
pascal@769 15 compile_rules()
pascal@769 16 {
pascal@769 17 cd $src
pascal@1454 18 if [ ! -f done.Makefile.u ]; then
pascal@1454 19 patch < ../stuff/Makefile.u || return 1
pascal@1454 20 touch done.Makefile.u
pascal@1454 21 fi
pascal@4253 22 sed -i 's/cp -u/cp/' tests/Makefile
pascal@5573 23 ./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS &&
pascal@1454 24 make &&
pascal@1454 25 make test &&
pascal@769 26 make DESTDIR=$PWD/_pkg install
pascal@769 27 }
pascal@769 28
pascal@769 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@769 30 genpkg_rules()
pascal@769 31 {
pascal@5573 32 mkdir -p $fs/usr/bin
pascal@5573 33 cp -a $_pkg/usr/bin/tcc $fs/usr/bin
pascal@769 34 }
pascal@769 35