wok-next view tcc/receipt @ rev 18642
Up tazpkg(878)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 30 02:28:21 2015 +0200 (2015-11-30) |
parents | 30509da0e83b |
children | 2b28e510ed9a |
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 LICENSE="LGPL2.1"
10 WEB_SITE="http://bellard.org/tcc/"
11 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
12 TAGS="compiler C assembler"
13 #HOST_ARCH="i486 arm"
15 DEPENDS="tcc-common"
16 BUILD_DEPENDS="perl texinfo"
18 # Perl is installed in a cross env.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 case "$ARCH" in
27 arm)
28 ./configure \
29 --prefix=/usr \
30 --cross-prefix=arm-slitaz-linux-gnueabi- \
31 --cpu=armv4l ;;
32 *)
33 ./configure \
34 --prefix=/usr \
35 --enable-cross ;;
36 esac &&
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 }