wok view tcc/receipt @ rev 14236

fontconfig-infinality-yad: use 'tazbox su' instead of 'subox'
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 22 13:38:27 2013 +0000 (2013-03-22)
parents f51d35fb6a4a
children 83f4594dbebd
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 "s/-O2//"),' \
32 tests/Makefile
33 sed -i 's/array_test(int.*/array_test()/;s/.*array:.*/int a[4];\n&/' tests/tcctest.c
34 ./configure \
35 --prefix=/usr \
36 --enable-cross \
37 $CONFIGURE_ARGS &&
38 make && make test &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 cp -a $install/usr/bin/tcc $fs/usr/bin
47 }