wok-next annotate tcc/receipt @ rev 19844
sakura -> sakura-gtk2; vte -> vte-gtk2; add sakura, vte; up gtk-engines, lxde, wpa_supplicant.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 25 15:45:11 2017 +0300 (2017-08-25) |
parents | b30711bdbeb0 |
children | c4e53a39395a |
rev | line source |
---|---|
al@19814 | 1 # SliTaz package receipt v2. |
pascal@769 | 2 |
pascal@769 | 3 PACKAGE="tcc" |
al@19814 | 4 GITHASH="0cc24d0e8487eaf53bb2849fef7e438a8e8fc94d" # 21/7/2017 |
al@19814 | 5 VERSION="20170721" |
pascal@769 | 6 CATEGORY="development" |
al@19814 | 7 SHORT_DESC="Fast Tiny C Compiler" |
pascal@769 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19730 | 9 LICENSE="LGPL2.1 MIT" |
pankso@13370 | 10 WEB_SITE="http://bellard.org/tcc/" |
pankso@15952 | 11 #HOST_ARCH="i486 arm" |
pankso@13370 | 12 |
al@19814 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19814 | 14 WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz" |
al@19814 | 15 |
al@19814 | 16 BUILD_DEPENDS_arm=" " # Perl is installed in a cross env. |
pascal@19729 | 17 BUILD_DEPENDS="perl texinfo diffutils" |
al@19814 | 18 SPLIT="tcc-arm tcc-c67 tcc-i386 tcc-x86_64 tcc-win tcc-osx" |
pascal@769 | 19 |
pascal@769 | 20 # Rules to configure and make the package. |
pascal@769 | 21 compile_rules() |
pascal@769 | 22 { |
pankso@15984 | 23 case "$ARCH" in |
al@19814 | 24 arm) ARCH_ARGS="--cross-prefix=arm-slitaz-linux-gnueabi- --cpu=armv4l";; |
al@19814 | 25 *) ARCH_ARGS="--enable-cross";; |
al@19814 | 26 esac |
al@19814 | 27 |
al@19814 | 28 ./configure \ |
al@19814 | 29 --prefix=/usr \ |
al@19814 | 30 $ARCH_ARGS && |
pankso@13370 | 31 make && make test && |
pankso@13370 | 32 make DESTDIR=$DESTDIR install |
pascal@769 | 33 } |
pascal@769 | 34 |
pascal@769 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@769 | 36 genpkg_rules() |
pascal@769 | 37 { |
al@19814 | 38 case $PACKAGE in |
al@19814 | 39 tcc) |
al@19814 | 40 copy tcc libtcc.a libtcc1.a libtcc.h /usr/lib/tcc/include/ |
al@19814 | 41 TAGS="compiler C assembler" |
al@19814 | 42 ;; |
al@19814 | 43 tcc-arm) |
al@19814 | 44 copy arm-tcc arm64-tcc libtcc1-arm.a libtcc1-arm64.a |
al@19814 | 45 CAT="development|to ARM Hard Float Linux, AArch64 Linux targets" |
al@19814 | 46 TAGS="compiler C arm" |
al@19814 | 47 ;; |
al@19814 | 48 tcc-c67) |
al@19814 | 49 copy c67-tcc |
al@19814 | 50 CAT="development|to C67 Linux target" |
al@19814 | 51 TAGS="compiler C c67" |
al@19814 | 52 ;; |
al@19814 | 53 tcc-win) |
al@19814 | 54 copy i386-win32-tcc x86_64-win32-tcc arm-wince-tcc win32/ |
al@19814 | 55 CAT="development|to i386 Windows, x86_64 Windows, ARM Hard Float Windows targets" |
al@19814 | 56 SUGGESTED="mingw32-w32api" |
al@19814 | 57 TAGS="compiler C" |
al@19814 | 58 ;; |
al@19814 | 59 tcc-i386) |
al@19814 | 60 copy i386-tcc libtcc1-i386.a |
al@19814 | 61 CAT="development|to i386 Linux target" |
al@19814 | 62 TAGS="compiler C" |
al@19814 | 63 ;; |
al@19814 | 64 tcc-x86_64) |
al@19814 | 65 copy x86_64-tcc libtcc1-x86_64.a |
al@19814 | 66 CAT="development|to x86_64 Linux target" |
al@19814 | 67 TAGS="compiler C" |
al@19814 | 68 ;; |
al@19814 | 69 tcc-osx) |
al@19814 | 70 copy x86_64-osx-tcc libtcc1-x86_64-osx.a |
al@19814 | 71 CAT="development|to x86_64 Darwin target" |
al@19814 | 72 TAGS="compiler C" |
al@19814 | 73 ;; |
al@19814 | 74 esac |
pascal@769 | 75 } |