wok-6.x annotate tcc/receipt @ rev 21498
updated mtpaint (3.44.91 -> 3.49.14)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 02 13:38:04 2019 +0100 (2019-05-02) |
parents | b3e8eb320061 |
children | 951896e3e5b3 |
rev | line source |
---|---|
pascal@769 | 1 # SliTaz package receipt. |
pascal@769 | 2 |
pascal@769 | 3 PACKAGE="tcc" |
pascal@20185 | 4 VERSION="0.9.27" |
pascal@769 | 5 CATEGORY="development" |
pankso@13370 | 6 SHORT_DESC="Fast Tiny C Compiler." |
pascal@769 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@769 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20186 | 9 LICENSE="MIT LGPL2.1" |
pascal@20669 | 10 WEB_SITE="https://bellard.org/tcc/" |
pankso@13370 | 11 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" |
pascal@14746 | 12 TAGS="compiler C assembler" |
pankso@15952 | 13 #HOST_ARCH="i486 arm" |
pankso@13370 | 14 |
pascal@5573 | 15 DEPENDS="tcc-common" |
pascal@14345 | 16 BUILD_DEPENDS="perl texinfo" |
pankso@13370 | 17 |
pankso@13370 | 18 # Perl is installed in a cross env. |
pankso@13370 | 19 case "$ARCH" in |
pankso@13370 | 20 arm) BUILD_DEPENDS="" ;; |
pankso@13370 | 21 esac |
pascal@769 | 22 |
pascal@769 | 23 # Rules to configure and make the package. |
pascal@769 | 24 compile_rules() |
pascal@769 | 25 { |
pascal@20566 | 26 sed -i 's|uname -m|echo i686|' configure |
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 } |