wok-6.x annotate tcc/receipt @ rev 4276

minicom: fix build with glibc-2.10
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 26 00:15:15 2009 +0200 (2009-09-26)
parents fd4eda949f1e
children 866fa2493b1b
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@769 10 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
pascal@769 11
pascal@769 12 # Rules to configure and make the package.
pascal@769 13 compile_rules()
pascal@769 14 {
pascal@769 15 cd $src
pascal@1454 16 if [ ! -f done.Makefile.u ]; then
pascal@1454 17 patch < ../stuff/Makefile.u || return 1
pascal@1454 18 touch done.Makefile.u
pascal@1454 19 fi
pascal@4253 20 sed -i 's/cp -u/cp/' tests/Makefile
pascal@1454 21 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pascal@1454 22 make &&
pascal@1454 23 make test &&
pascal@769 24 make DESTDIR=$PWD/_pkg install
pascal@769 25 }
pascal@769 26
pascal@769 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@769 28 genpkg_rules()
pascal@769 29 {
pascal@769 30 mkdir -p $fs/usr
pascal@769 31 cp -a $_pkg/usr/bin $_pkg/usr/lib $fs
pascal@769 32 }
pascal@769 33