wok-next view tcc/receipt @ rev 19730
Up broadcom-wl (6_30_223_271)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 25 18:41:21 2017 +0200 (2017-05-25) |
parents | ba8a49e07e68 |
children | b30711bdbeb0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 GITHASH="307b7b183d4ee56e74090b0e525d6a587840e31f" # 15/5/2017
5 VERSION=${GITHASH:0:7}
6 CATEGORY="development"
7 SHORT_DESC="Fast Tiny C Compiler."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 LICENSE="LGPL2.1 MIT"
11 WEB_SITE="http://bellard.org/tcc/"
12 WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz"
13 TAGS="compiler C assembler"
14 #HOST_ARCH="i486 arm"
16 DEPENDS="tcc-common"
17 BUILD_DEPENDS="perl texinfo diffutils"
19 # Perl is installed in a cross env.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
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 }