# HG changeset patch # User Christophe Lincoln # Date 1347618679 -7200 # Node ID d561d922d0154291aa9a8a8f40d00d46b51ba3c5 # Parent e58f9312f0e7cb51850063c6bf78c2511174b14b tcc: add to ARM arch diff -r e58f9312f0e7 -r d561d922d015 tcc-common/receipt --- a/tcc-common/receipt Fri Sep 14 10:50:33 2012 +0200 +++ b/tcc-common/receipt Fri Sep 14 12:31:19 2012 +0200 @@ -7,12 +7,13 @@ MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://bellard.org/$PACKAGE/" WANTED="tcc" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/include - cp -a $_pkg/usr/lib $fs/usr + cp -a $install/usr/lib $fs/usr mv $fs/usr/lib/tcc/include/tcclib.h $fs/usr/include } diff -r e58f9312f0e7 -r d561d922d015 tcc/receipt --- a/tcc/receipt Fri Sep 14 10:50:33 2012 +0200 +++ b/tcc/receipt Fri Sep 14 12:31:19 2012 +0200 @@ -3,14 +3,21 @@ PACKAGE="tcc" VERSION="0.9.25" CATEGORY="development" -SHORT_DESC="fast Tiny C Compiler." +SHORT_DESC="Fast Tiny C Compiler." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://bellard.org/$PACKAGE/" +WEB_SITE="http://bellard.org/tcc/" +WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" +TAGS="compiler C" +HOST_ARCH="i486 arm" + DEPENDS="tcc-common" BUILD_DEPENDS="perl" -WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" -TAGS="compiler C" + +# Perl is installed in a cross env. +case "$ARCH" in + arm) BUILD_DEPENDS="" ;; +esac # Rules to configure and make the package. compile_rules() @@ -23,16 +30,18 @@ sed -i 's/cp -u/cp/' tests/Makefile sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \ tests/Makefile - ./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS && - make && - make test && - make DESTDIR=$PWD/_pkg install + ./configure \ + --prefix=/usr \ + --enable-cross \ + $CONFIGURE_ARGS && + make && make test && + make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin - cp -a $_pkg/usr/bin/tcc $fs/usr/bin + cp -a $install/usr/bin/tcc $fs/usr/bin }