wok-next view tcc/receipt @ rev 20142

vlc: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 11:06:02 2017 +0100 (2017-11-01)
parents b30711bdbeb0
children c4e53a39395a
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="http://bellard.org/tcc/"
11 #HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz"
16 BUILD_DEPENDS_arm=" " # Perl is installed in a cross env.
17 BUILD_DEPENDS="perl texinfo diffutils"
18 SPLIT="tcc-arm tcc-c67 tcc-i386 tcc-x86_64 tcc-win tcc-osx"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 arm) ARCH_ARGS="--cross-prefix=arm-slitaz-linux-gnueabi- --cpu=armv4l";;
25 *) ARCH_ARGS="--enable-cross";;
26 esac
28 ./configure \
29 --prefix=/usr \
30 $ARCH_ARGS &&
31 make && make test &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 case $PACKAGE in
39 tcc)
40 copy tcc libtcc.a libtcc1.a libtcc.h /usr/lib/tcc/include/
41 TAGS="compiler C assembler"
42 ;;
43 tcc-arm)
44 copy arm-tcc arm64-tcc libtcc1-arm.a libtcc1-arm64.a
45 CAT="development|to ARM Hard Float Linux, AArch64 Linux targets"
46 TAGS="compiler C arm"
47 ;;
48 tcc-c67)
49 copy c67-tcc
50 CAT="development|to C67 Linux target"
51 TAGS="compiler C c67"
52 ;;
53 tcc-win)
54 copy i386-win32-tcc x86_64-win32-tcc arm-wince-tcc win32/
55 CAT="development|to i386 Windows, x86_64 Windows, ARM Hard Float Windows targets"
56 SUGGESTED="mingw32-w32api"
57 TAGS="compiler C"
58 ;;
59 tcc-i386)
60 copy i386-tcc libtcc1-i386.a
61 CAT="development|to i386 Linux target"
62 TAGS="compiler C"
63 ;;
64 tcc-x86_64)
65 copy x86_64-tcc libtcc1-x86_64.a
66 CAT="development|to x86_64 Linux target"
67 TAGS="compiler C"
68 ;;
69 tcc-osx)
70 copy x86_64-osx-tcc libtcc1-x86_64-osx.a
71 CAT="development|to x86_64 Darwin target"
72 TAGS="compiler C"
73 ;;
74 esac
75 }