wok-next view tcc/receipt @ rev 21117
exo: split "libpkg - pkg - pkg-dev", update in dependent packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 14 00:27:10 2019 +0200 (2019-01-14) |
parents | 7506b35e1c6f |
children | 59c6b07cb8eb |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tcc"
4 GITHASH="0cc24d0e8487eaf53bb2849fef7e438a8e8fc94d" # 21/7/2017
5 VERSION="20170721"
6 CATEGORY="development"
7 SHORT_DESC="Fast Tiny C Compiler"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="LGPL2.1 MIT"
10 WEB_SITE="https://bellard.org/tcc/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz"
15 BUILD_DEPENDS="perl texinfo diffutils"
16 SPLIT="$PACKAGE-arm $PACKAGE-c67 $PACKAGE-i386 $PACKAGE-x86_64 $PACKAGE-win \
17 $PACKAGE-osx"
19 compile_rules() {
20 ./configure \
21 --prefix=/usr \
22 --enable-cross \
23 &&
24 make &&
25 make test &&
26 make DESTDIR=$install install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 tcc)
32 copy tcc libtcc.a libtcc1.a libtcc.h /usr/lib/tcc/include/
33 TAGS="compiler C assembler"
34 ;;
35 tcc-arm)
36 copy arm-tcc arm64-tcc libtcc1-arm.a libtcc1-arm64.a
37 CAT="development|to ARM Hard Float Linux, AArch64 Linux targets"
38 TAGS="compiler C arm"
39 ;;
40 tcc-c67)
41 copy c67-tcc
42 CAT="development|to C67 Linux target"
43 TAGS="compiler C c67"
44 ;;
45 tcc-win)
46 copy i386-win32-tcc x86_64-win32-tcc arm-wince-tcc win32/
47 CAT="development|to i386 Windows, x86_64 Windows, ARM Hard Float Windows targets"
48 SUGGESTED="mingw32-w32api"
49 TAGS="compiler C"
50 ;;
51 tcc-i386)
52 copy i386-tcc libtcc1-i386.a
53 CAT="development|to i386 Linux target"
54 TAGS="compiler C"
55 ;;
56 tcc-x86_64)
57 copy x86_64-tcc libtcc1-x86_64.a
58 CAT="development|to x86_64 Linux target"
59 TAGS="compiler C"
60 ;;
61 tcc-osx)
62 copy x86_64-osx-tcc libtcc1-x86_64-osx.a
63 CAT="development|to x86_64 Darwin target"
64 TAGS="compiler C"
65 ;;
66 esac
67 }