wok-tiny view tcc/receipt @ rev 80

Add rsync
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 19 23:03:09 2012 +0200 (2012-07-19)
parents
children a6d2ddc65590
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 VERSION="0.9.25"
5 CATEGORY="development"
6 SHORT_DESC="Tiny C Compiler (native target)"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://bellard.org/$PACKAGE/"
10 [ -n "$TARGET" ] || TARGET="i486"
11 BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
12 DEPENDS="tcc-common libtcc libdl libm libgcc_s"
13 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
14 TAGS="compiler C"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 if [ ! -f done.Makefile.u ]; then
21 patch < ../stuff/Makefile.u || return 1
22 touch done.Makefile.u
23 fi
24 sed -i 's/cp -u/cp/' tests/Makefile
25 ./configure --prefix=/usr --enable-cross \
26 --cross-prefix=uclibc-$TARGET- &&
27 make && make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $_pkg/usr/bin/tcc $fs/usr/bin
35 ln -s tcc $fs/usr/bin/cc
36 }