wok-next view tcc/receipt @ rev 19733

Some receipts v2: apr, apr-util, aspell, at-spi2-core, at-spi2-atk, atk, atkmm, cairomm, colord, glibmm, libsigc++, libxslt.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 26 16:40:11 2017 +0300 (2017-05-26)
parents 707694519e1e
children aef69ec23a2f
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 GITHASH="307b7b183d4ee56e74090b0e525d6a587840e31f" # 15/5/2017
5 VERSION=20170515
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 }