wok diff tcc/receipt @ rev 13740

Move from undigest: kivy gmerlin glances phproxy zonecheck ledger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 26 15:50:31 2012 +0100 (2012-12-26)
parents cff46a382835
children f51d35fb6a4a
line diff
     1.1 --- a/tcc/receipt	Tue Mar 08 17:23:59 2011 +0100
     1.2 +++ b/tcc/receipt	Wed Dec 26 15:50:31 2012 +0100
     1.3 @@ -3,14 +3,21 @@
     1.4  PACKAGE="tcc"
     1.5  VERSION="0.9.25"
     1.6  CATEGORY="development"
     1.7 -SHORT_DESC="fast Tiny C Compiler."
     1.8 +SHORT_DESC="Fast Tiny C Compiler."
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.11 -WEB_SITE="http://bellard.org/$PACKAGE/"
    1.12 +WEB_SITE="http://bellard.org/tcc/"
    1.13 +WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
    1.14 +TAGS="compiler C"
    1.15 +HOST_ARCH="i486 arm"
    1.16 +
    1.17  DEPENDS="tcc-common"
    1.18  BUILD_DEPENDS="perl"
    1.19 -WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
    1.20 -TAGS="compiler C"
    1.21 +
    1.22 +# Perl is installed in a cross env.
    1.23 +case "$ARCH" in
    1.24 +	arm) BUILD_DEPENDS="" ;;
    1.25 +esac
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29 @@ -23,16 +30,18 @@
    1.30  	sed -i 's/cp -u/cp/' tests/Makefile
    1.31  	sed -i 's, tcctest.gcc .*, tcctest.gcc $< -I. -w $(shell echo $(CFLAGS) | sed "/-O2//"),' \
    1.32  		tests/Makefile
    1.33 -	./configure --prefix=/usr --enable-cross $CONFIGURE_ARGS &&
    1.34 -	make &&
    1.35 -	make test &&
    1.36 -	make DESTDIR=$PWD/_pkg install
    1.37 +	./configure \
    1.38 +		--prefix=/usr \
    1.39 +		--enable-cross \
    1.40 +		$CONFIGURE_ARGS &&
    1.41 +	make && make test &&
    1.42 +	make DESTDIR=$DESTDIR install
    1.43  }
    1.44  
    1.45  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.46  genpkg_rules()
    1.47  {
    1.48  	mkdir -p $fs/usr/bin
    1.49 -	cp -a $_pkg/usr/bin/tcc $fs/usr/bin
    1.50 +	cp -a $install/usr/bin/tcc $fs/usr/bin
    1.51  }
    1.52