wok-next view tcc/receipt @ rev 14344

tcc: update patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 14 14:51:53 2013 +0200 (2013-04-14)
parents 83f4594dbebd
children 26f00ffd5a27
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 VERSION="0.9.26"
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/tcc/"
10 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
11 TAGS="compiler C"
12 HOST_ARCH="i486 arm"
14 DEPENDS="tcc-common"
15 BUILD_DEPENDS="perl"
17 # Perl is installed in a cross env.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 if [ ! -f done.Makefile.u ]; then
27 patch < $stuff/Makefile.u || return 1
28 touch done.Makefile.u
29 fi
30 ./configure \
31 --prefix=/usr \
32 --enable-cross \
33 $CONFIGURE_ARGS &&
34 make && make test &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin
42 cp -a $install/usr/bin/tcc $fs/usr/bin
43 }