wok-next annotate tcc/receipt @ rev 19728

Up tcc (20170515)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 25 17:38:43 2017 +0200 (2017-05-25)
parents 634b097489ad
children ba8a49e07e68
rev   line source
pascal@769 1 # SliTaz package receipt.
pascal@769 2
pascal@769 3 PACKAGE="tcc"
pascal@19728 4 GITHASH="307b7b183d4ee56e74090b0e525d6a587840e31f" # 15/5/2017
pascal@19728 5 VERSION=${GITHASH:0:7}
pascal@769 6 CATEGORY="development"
pankso@13370 7 SHORT_DESC="Fast Tiny C Compiler."
pascal@769 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19728 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14996 10 LICENSE="LGPL2.1"
pankso@13370 11 WEB_SITE="http://bellard.org/tcc/"
pascal@19728 12 WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz"
pascal@14746 13 TAGS="compiler C assembler"
pankso@15952 14 #HOST_ARCH="i486 arm"
pankso@13370 15
pascal@5573 16 DEPENDS="tcc-common"
pascal@14345 17 BUILD_DEPENDS="perl texinfo"
pankso@13370 18
pankso@13370 19 # Perl is installed in a cross env.
pankso@13370 20 case "$ARCH" in
pankso@13370 21 arm) BUILD_DEPENDS="" ;;
pankso@13370 22 esac
pascal@769 23
pascal@769 24 # Rules to configure and make the package.
pascal@769 25 compile_rules()
pascal@769 26 {
pankso@15984 27 case "$ARCH" in
pankso@15984 28 arm)
pankso@15984 29 ./configure \
pankso@15984 30 --prefix=/usr \
pankso@15984 31 --cross-prefix=arm-slitaz-linux-gnueabi- \
pankso@15984 32 --cpu=armv4l ;;
pankso@15984 33 *)
pankso@15984 34 ./configure \
pankso@15984 35 --prefix=/usr \
pankso@15984 36 --enable-cross ;;
pankso@15984 37 esac &&
pankso@13370 38 make && make test &&
pankso@13370 39 make DESTDIR=$DESTDIR install
pascal@769 40 }
pascal@769 41
pascal@769 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@769 43 genpkg_rules()
pascal@769 44 {
pascal@5573 45 mkdir -p $fs/usr/bin
pankso@13370 46 cp -a $install/usr/bin/tcc $fs/usr/bin
pascal@769 47 }
pascal@769 48