wok-next diff tcc/receipt @ rev 19843
Up dbus, pcmciautils, opus-tools; add syslinux-slitaz-repack (to substitute syslinux), syslinux-slitaz-extra-repack (to substitute syslinux-extra).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Aug 23 17:19:53 2017 +0300 (2017-08-23) |
parents | b30711bdbeb0 |
children | c4e53a39395a |
line diff
1.1 --- a/tcc/receipt Thu May 25 19:02:05 2017 +0200 1.2 +++ b/tcc/receipt Wed Aug 23 17:19:53 2017 +0300 1.3 @@ -1,40 +1,33 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tcc" 1.8 -GITHASH="307b7b183d4ee56e74090b0e525d6a587840e31f" # 15/5/2017 1.9 -VERSION=20170515 1.10 +GITHASH="0cc24d0e8487eaf53bb2849fef7e438a8e8fc94d" # 21/7/2017 1.11 +VERSION="20170721" 1.12 CATEGORY="development" 1.13 -SHORT_DESC="Fast Tiny C Compiler." 1.14 +SHORT_DESC="Fast Tiny C Compiler" 1.15 MAINTAINER="pascal.bellard@slitaz.org" 1.16 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 LICENSE="LGPL2.1 MIT" 1.18 WEB_SITE="http://bellard.org/tcc/" 1.19 -WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz" 1.20 -TAGS="compiler C assembler" 1.21 #HOST_ARCH="i486 arm" 1.22 1.23 -DEPENDS="tcc-common" 1.24 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.25 +WGET_URL="http://repo.or.cz/tinycc.git/snapshot/$GITHASH.tar.gz" 1.26 + 1.27 +BUILD_DEPENDS_arm=" " # Perl is installed in a cross env. 1.28 BUILD_DEPENDS="perl texinfo diffutils" 1.29 - 1.30 -# Perl is installed in a cross env. 1.31 -case "$ARCH" in 1.32 - arm) BUILD_DEPENDS="" ;; 1.33 -esac 1.34 +SPLIT="tcc-arm tcc-c67 tcc-i386 tcc-x86_64 tcc-win tcc-osx" 1.35 1.36 # Rules to configure and make the package. 1.37 compile_rules() 1.38 { 1.39 case "$ARCH" in 1.40 - arm) 1.41 - ./configure \ 1.42 - --prefix=/usr \ 1.43 - --cross-prefix=arm-slitaz-linux-gnueabi- \ 1.44 - --cpu=armv4l ;; 1.45 - *) 1.46 - ./configure \ 1.47 - --prefix=/usr \ 1.48 - --enable-cross ;; 1.49 - esac && 1.50 + arm) ARCH_ARGS="--cross-prefix=arm-slitaz-linux-gnueabi- --cpu=armv4l";; 1.51 + *) ARCH_ARGS="--enable-cross";; 1.52 + esac 1.53 + 1.54 + ./configure \ 1.55 + --prefix=/usr \ 1.56 + $ARCH_ARGS && 1.57 make && make test && 1.58 make DESTDIR=$DESTDIR install 1.59 } 1.60 @@ -42,7 +35,41 @@ 1.61 # Rules to gen a SliTaz package suitable for Tazpkg. 1.62 genpkg_rules() 1.63 { 1.64 - mkdir -p $fs/usr/bin 1.65 - cp -a $install/usr/bin/tcc $fs/usr/bin 1.66 + case $PACKAGE in 1.67 + tcc) 1.68 + copy tcc libtcc.a libtcc1.a libtcc.h /usr/lib/tcc/include/ 1.69 + TAGS="compiler C assembler" 1.70 + ;; 1.71 + tcc-arm) 1.72 + copy arm-tcc arm64-tcc libtcc1-arm.a libtcc1-arm64.a 1.73 + CAT="development|to ARM Hard Float Linux, AArch64 Linux targets" 1.74 + TAGS="compiler C arm" 1.75 + ;; 1.76 + tcc-c67) 1.77 + copy c67-tcc 1.78 + CAT="development|to C67 Linux target" 1.79 + TAGS="compiler C c67" 1.80 + ;; 1.81 + tcc-win) 1.82 + copy i386-win32-tcc x86_64-win32-tcc arm-wince-tcc win32/ 1.83 + CAT="development|to i386 Windows, x86_64 Windows, ARM Hard Float Windows targets" 1.84 + SUGGESTED="mingw32-w32api" 1.85 + TAGS="compiler C" 1.86 + ;; 1.87 + tcc-i386) 1.88 + copy i386-tcc libtcc1-i386.a 1.89 + CAT="development|to i386 Linux target" 1.90 + TAGS="compiler C" 1.91 + ;; 1.92 + tcc-x86_64) 1.93 + copy x86_64-tcc libtcc1-x86_64.a 1.94 + CAT="development|to x86_64 Linux target" 1.95 + TAGS="compiler C" 1.96 + ;; 1.97 + tcc-osx) 1.98 + copy x86_64-osx-tcc libtcc1-x86_64-osx.a 1.99 + CAT="development|to x86_64 Darwin target" 1.100 + TAGS="compiler C" 1.101 + ;; 1.102 + esac 1.103 } 1.104 -