wok-current view tcc/receipt @ rev 20571
Up punjab (0.15)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 13 11:44:12 2018 +0100 (2018-12-13) |
parents | faca15849ae5 |
children | a78610b2eb47 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 VERSION="0.9.27"
5 CATEGORY="development"
6 SHORT_DESC="Fast Tiny C Compiler."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 LICENSE="MIT 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 sed -i 's|uname -m|echo i686|' configure
27 case "$ARCH" in
28 arm)
29 ./configure \
30 --prefix=/usr \
31 --cross-prefix=arm-slitaz-linux-gnueabi- \
32 --cpu=armv4l ;;
33 *)
34 ./configure \
35 --prefix=/usr \
36 --enable-cross ;;
37 esac &&
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 }