wok-current view tcc/receipt @ rev 13822

fix tazbug-website: Fix WGET_URL
author border
date Sun Jan 06 18:24:17 2013 -0500 (2013-01-06)
parents cff46a382835
children f51d35fb6a4a
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/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 sed -i 's/cp -u/cp/' tests/Makefile
31 sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \
32 tests/Makefile
33 ./configure \
34 --prefix=/usr \
35 --enable-cross \
36 $CONFIGURE_ARGS &&
37 make && make test &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin
45 cp -a $install/usr/bin/tcc $fs/usr/bin
46 }