wok-current view tcc/receipt @ rev 11390

Update BUILD_DEPENDS of slitaz-18n according co CORE_PKGS; ensure thoses are cooked before slitaz-18n
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 05:08:01 2011 +0100 (2011-12-10)
parents 940b5937e496
children d561d922d015
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 VERSION="0.9.25"
5 CATEGORY="development"
6 SHORT_DESC="fast Tiny C Compiler."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://bellard.org/$PACKAGE/"
10 DEPENDS="tcc-common"
11 BUILD_DEPENDS="perl"
12 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
13 TAGS="compiler C"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 if [ ! -f done.Makefile.u ]; then
20 patch < $stuff/Makefile.u || return 1
21 touch done.Makefile.u
22 fi
23 sed -i 's/cp -u/cp/' tests/Makefile
24 sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \
25 tests/Makefile
26 ./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS &&
27 make &&
28 make test &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp -a $_pkg/usr/bin/tcc $fs/usr/bin
37 }