wok-current annotate tcc/receipt @ rev 24828
updated libshout and libshout-dev again (2.4.3 -> 2.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 23 17:27:54 2022 +0100 (2022-03-23) |
parents | 951896e3e5b3 |
children |
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@24415 | 23 # What is the latest version available today? |
pascal@24415 | 24 current_version() |
pascal@24415 | 25 { |
pascal@24415 | 26 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 27 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24415 | 28 } |
pascal@24415 | 29 |
pascal@769 | 30 # Rules to configure and make the package. |
pascal@769 | 31 compile_rules() |
pascal@769 | 32 { |
pascal@20566 | 33 sed -i 's|uname -m|echo i686|' configure |
pankso@15984 | 34 case "$ARCH" in |
pankso@15984 | 35 arm) |
pankso@15984 | 36 ./configure \ |
pankso@15984 | 37 --prefix=/usr \ |
pankso@15984 | 38 --cross-prefix=arm-slitaz-linux-gnueabi- \ |
pankso@15984 | 39 --cpu=armv4l ;; |
pankso@15984 | 40 *) |
pankso@15984 | 41 ./configure \ |
pankso@15984 | 42 --prefix=/usr \ |
pankso@15984 | 43 --enable-cross ;; |
pankso@15984 | 44 esac && |
pascal@22345 | 45 make && make -j 1 test && |
pascal@22345 | 46 make -j 1 DESTDIR=$DESTDIR install |
pascal@769 | 47 } |
pascal@769 | 48 |
pascal@769 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@769 | 50 genpkg_rules() |
pascal@769 | 51 { |
pascal@5573 | 52 mkdir -p $fs/usr/bin |
pankso@13370 | 53 cp -a $install/usr/bin/tcc $fs/usr/bin |
pascal@769 | 54 } |