wok-current rev 16313

ARM: add tslib
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 09 12:00:04 2014 +0200 (2014-04-09)
parents 412cfae4a54c
children 083f88526785
files mercurial/receipt tslib-dev/receipt tslib/receipt ttf-bitstream-vera/receipt
line diff
     1.1 --- a/mercurial/receipt	Wed Apr 09 11:39:21 2014 +0200
     1.2 +++ b/mercurial/receipt	Wed Apr 09 12:00:04 2014 +0200
     1.3 @@ -10,6 +10,7 @@
     1.4  WEB_SITE="http://mercurial.selenic.com/"
     1.5  WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
     1.6  CONFIG_FILES="/etc/mercurial/hgweb.config"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="python patch libssl"
    1.10  BUILD_DEPENDS="python-dev patch openssl-dev"
    1.11 @@ -17,9 +18,14 @@
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 -	python setup.py install --root="$DESTDIR" --optimize=1
    1.16 -	mkdir -p $DESTDIR/usr/share/examples/mercurial
    1.17 -	cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
    1.18 +	export PYTHONXCPREFIX=/cross/$ARCH/sysroot/usr
    1.19 +	export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" 
    1.20 +	export PYTHONPATH="/usr/lib/python2.7/site-packages"
    1.21 +	make all CC=${HOST_SYSTEM}-gcc
    1.22 +	#ARCH_ARGS=""
    1.23 +	#python setup.py install ${ARCH_ARGS} --root="$DESTDIR" --optimize=1
    1.24 +	#mkdir -p $DESTDIR/usr/share/examples/mercurial
    1.25 +	#cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
    1.26  }
    1.27  
    1.28  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/tslib-dev/receipt	Wed Apr 09 11:39:21 2014 +0200
     2.2 +++ b/tslib-dev/receipt	Wed Apr 09 12:00:04 2014 +0200
     2.3 @@ -8,6 +8,7 @@
     2.4  LICENSE="LGPL2"
     2.5  WEB_SITE="http://tslib.berlios.de/"
     2.6  WANTED="tslib"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  DEPENDS="pkg-config"
    2.10  
     3.1 --- a/tslib/receipt	Wed Apr 09 11:39:21 2014 +0200
     3.2 +++ b/tslib/receipt	Wed Apr 09 12:00:04 2014 +0200
     3.3 @@ -9,20 +9,23 @@
     3.4  WEB_SITE="http://tslib.berlios.de/"
     3.5  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     3.6  WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"
     3.7 +HOST_ARCH="i486 arm"
     3.8  
     3.9  BUILD_DEPENDS="libtool automake autoconf"
    3.10  
    3.11 +# Handle cross compilation
    3.12 +case "$ARCH" in
    3.13 +	arm*) export ac_cv_func_malloc_0_nonnull=yes ;;
    3.14 +esac
    3.15 +
    3.16  # Rules to configure and make the package.
    3.17  compile_rules()
    3.18 -{
    3.19 +{ 
    3.20  	./autogen.sh
    3.21  	./configure \
    3.22 -		--prefix=/usr \
    3.23 -		--infodir=/usr/share/info \
    3.24  		--sysconfdir=/etc \
    3.25  		$CONFIGURE_ARGS &&
    3.26 -	make &&
    3.27 -	make DESTDIR=$DESTDIR install
    3.28 +	make && make install
    3.29  }
    3.30  
    3.31  # Rules to gen a SliTaz package suitable for Tazpkg.
     4.1 --- a/ttf-bitstream-vera/receipt	Wed Apr 09 11:39:21 2014 +0200
     4.2 +++ b/ttf-bitstream-vera/receipt	Wed Apr 09 12:00:04 2014 +0200
     4.3 @@ -10,6 +10,7 @@
     4.4  WEB_SITE="http://www.gnome.org/fonts/"
     4.5  WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$VERSION/$TARBALL"
     4.6  TAGS="font"
     4.7 +HOST_ARCH="i486 arm"
     4.8  
     4.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.10  genpkg_rules()