wok rev 13370

tcc: add to ARM arch
author Christophe Lincoln <pankso@slitaz.org>
date Fri Sep 14 12:31:19 2012 +0200 (2012-09-14)
parents e58f9312f0e7
children cfb225e7bc33
files tcc-common/receipt tcc/receipt
line diff
     1.1 --- a/tcc-common/receipt	Fri Sep 14 10:50:33 2012 +0200
     1.2 +++ b/tcc-common/receipt	Fri Sep 14 12:31:19 2012 +0200
     1.3 @@ -7,12 +7,13 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  WEB_SITE="http://bellard.org/$PACKAGE/"
     1.6  WANTED="tcc"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
    1.11  {
    1.12  	mkdir -p $fs/usr/include
    1.13 -	cp -a $_pkg/usr/lib $fs/usr
    1.14 +	cp -a $install/usr/lib $fs/usr
    1.15  	mv $fs/usr/lib/tcc/include/tcclib.h $fs/usr/include
    1.16  }
    1.17  
     2.1 --- a/tcc/receipt	Fri Sep 14 10:50:33 2012 +0200
     2.2 +++ b/tcc/receipt	Fri Sep 14 12:31:19 2012 +0200
     2.3 @@ -3,14 +3,21 @@
     2.4  PACKAGE="tcc"
     2.5  VERSION="0.9.25"
     2.6  CATEGORY="development"
     2.7 -SHORT_DESC="fast Tiny C Compiler."
     2.8 +SHORT_DESC="Fast Tiny C Compiler."
     2.9  MAINTAINER="pascal.bellard@slitaz.org"
    2.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.11 -WEB_SITE="http://bellard.org/$PACKAGE/"
    2.12 +WEB_SITE="http://bellard.org/tcc/"
    2.13 +WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
    2.14 +TAGS="compiler C"
    2.15 +HOST_ARCH="i486 arm"
    2.16 +
    2.17  DEPENDS="tcc-common"
    2.18  BUILD_DEPENDS="perl"
    2.19 -WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
    2.20 -TAGS="compiler C"
    2.21 +
    2.22 +# Perl is installed in a cross env.
    2.23 +case "$ARCH" in
    2.24 +	arm) BUILD_DEPENDS="" ;;
    2.25 +esac
    2.26  
    2.27  # Rules to configure and make the package.
    2.28  compile_rules()
    2.29 @@ -23,16 +30,18 @@
    2.30  	sed -i 's/cp -u/cp/' tests/Makefile
    2.31  	sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \
    2.32  		tests/Makefile
    2.33 -	./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS &&
    2.34 -	make &&
    2.35 -	make test &&
    2.36 -	make DESTDIR=$PWD/_pkg install
    2.37 +	./configure \
    2.38 +		--prefix=/usr \
    2.39 +		--enable-cross \
    2.40 +		$CONFIGURE_ARGS &&
    2.41 +	make && make test &&
    2.42 +	make DESTDIR=$DESTDIR install
    2.43  }
    2.44  
    2.45  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.46  genpkg_rules()
    2.47  {
    2.48  	mkdir -p $fs/usr/bin
    2.49 -	cp -a $_pkg/usr/bin/tcc $fs/usr/bin
    2.50 +	cp -a $install/usr/bin/tcc $fs/usr/bin
    2.51  }
    2.52