wok-6.x rev 16042

Add to ARM: sqlite ptunnel libpcap gdbm gc
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 09 16:31:15 2014 +0100 (2014-03-09)
parents 8cf93f4aedd1
children e5af50726894
files gc-dev/receipt gc/receipt gdbm-dev/receipt gdbm/receipt libpcap-dev/receipt libpcap/receipt ptunnel/receipt sqlite-dev/receipt sqlite/receipt
line diff
     1.1 --- a/gc-dev/receipt	Sun Mar 09 14:09:57 2014 +0000
     1.2 +++ b/gc-dev/receipt	Sun Mar 09 16:31:15 2014 +0100
     1.3 @@ -8,8 +8,9 @@
     1.4  LICENSE="MIT GPL"
     1.5  WANTED="gc"
     1.6  WEB_SITE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
     1.7 +HOST_ARCH="i468 arm"
     1.8  
     1.9 -DEPENDS="gc pkg-config"
    1.10 +DEPENDS="gc"
    1.11  
    1.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.13  genpkg_rules()
     2.1 --- a/gc/receipt	Sun Mar 09 14:09:57 2014 +0000
     2.2 +++ b/gc/receipt	Sun Mar 09 16:31:15 2014 +0100
     2.3 @@ -9,6 +9,7 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.5  WEB_SITE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
     2.6  WGET_URL="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$TARBALL"
     2.7 +HOST_ARCH="i468 arm"
     2.8  
     2.9  # Rules to configure and make the package.
    2.10  compile_rules()
     3.1 --- a/gdbm-dev/receipt	Sun Mar 09 14:09:57 2014 +0000
     3.2 +++ b/gdbm-dev/receipt	Sun Mar 09 16:31:15 2014 +0100
     3.3 @@ -8,6 +8,7 @@
     3.4  LICENSE="GPL3"
     3.5  WEB_SITE="http://www.gnu.org/software/gdbm"
     3.6  WANTED="gdbm"
     3.7 +HOST_ARCH="i486 arm"
     3.8  
     3.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.10  genpkg_rules()
     4.1 --- a/gdbm/receipt	Sun Mar 09 14:09:57 2014 +0000
     4.2 +++ b/gdbm/receipt	Sun Mar 09 16:31:15 2014 +0100
     4.3 @@ -9,15 +9,15 @@
     4.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     4.5  WEB_SITE="http://www.gnu.org/software/gdbm"
     4.6  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
     4.7 +HOST_ARCH="i486 arm"
     4.8  
     4.9 -DEPENDS="glibc-base"
    4.10 -BUILD_DEPENDS="gcc"
    4.11 +DEPENDS=""
    4.12 +BUILD_DEPENDS=""
    4.13  
    4.14  # Rules to configure and make the package.
    4.15  compile_rules()
    4.16  {
    4.17 -	cd $src
    4.18 -	sed -i  -e 's/BINOWN = bin/BINOWN = root/' \
    4.19 +	sed -i -e 's/BINOWN = bin/BINOWN = root/' \
    4.20  		-e 's/BINGRP = bin/BINGRP = root/' Makefile.in
    4.21  	./configure $CONFIGURE_ARGS &&
    4.22  	make &&
     5.1 --- a/libpcap-dev/receipt	Sun Mar 09 14:09:57 2014 +0000
     5.2 +++ b/libpcap-dev/receipt	Sun Mar 09 16:31:15 2014 +0100
     5.3 @@ -9,6 +9,7 @@
     5.4  DEPENDS="libpcap"
     5.5  WEB_SITE="http://www.tcpdump.org/"
     5.6  WANTED="libpcap"
     5.7 +HOST_ARCH="i468 arm"
     5.8  
     5.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.10  genpkg_rules()
     6.1 --- a/libpcap/receipt	Sun Mar 09 14:09:57 2014 +0000
     6.2 +++ b/libpcap/receipt	Sun Mar 09 16:31:15 2014 +0100
     6.3 @@ -9,18 +9,25 @@
     6.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     6.5  WEB_SITE="http://www.tcpdump.org/"
     6.6  WGET_URL="http://www.tcpdump.org/release/$TARBALL";
     6.7 +HOST_ARCH="i468 arm"
     6.8  
     6.9  DEPENDS="libnl"
    6.10  BUILD_DEPENDS="flex bison"
    6.11  
    6.12 +# Handle cross compilation
    6.13 +case "$ARCH" in
    6.14 +	arm) 
    6.15 +		BUILD_DEPENDS="" 
    6.16 +		ARCH_ARGS="--with-pcap=linux" 
    6.17 +		export ac_cv_linux_vers=2 ;;
    6.18 +esac
    6.19 +
    6.20  # Rules to configure and make the package.
    6.21  compile_rules()
    6.22  {
    6.23 -        cd $src
    6.24 -        ./configure --prefix=/usr --infodir=/usr/share/info \
    6.25 -        --mandir=/usr/share/man $CONFIGURE_ARGS &&
    6.26 -        make &&
    6.27 -        make DESTDIR=$DESTDIR install
    6.28 +	./configure \
    6.29 +		$CONFIGURE_ARGS $ARCH_ARGS &&
    6.30 +	make && make install
    6.31  }
    6.32  
    6.33  # Rules to gen a SliTaz package suitable for Tazpkg.
     7.1 --- a/ptunnel/receipt	Sun Mar 09 14:09:57 2014 +0000
     7.2 +++ b/ptunnel/receipt	Sun Mar 09 16:31:15 2014 +0100
     7.3 @@ -10,6 +10,7 @@
     7.4  TARBALL="$SOURCE-$VERSION.tar.gz"
     7.5  WEB_SITE="http://www.cs.uit.no/~daniels/PingTunnel/"
     7.6  WGET_URL="$WEB_SITE/$TARBALL"
     7.7 +HOST_ARCH="i468 arm"
     7.8  
     7.9  DEPENDS="libpcap"
    7.10  BUILD_DEPENDS="libpcap-dev"
    7.11 @@ -17,8 +18,7 @@
    7.12  # Rules to configure and make the package.
    7.13  compile_rules()
    7.14  {
    7.15 -	cd $src
    7.16 -	make
    7.17 +	make CC=${HOST_SYSTEM}-gcc
    7.18  }
    7.19  
    7.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.21 @@ -28,3 +28,6 @@
    7.22  	cp -a $src/ptunnel $fs/usr/bin
    7.23  }
    7.24  
    7.25 +testsuite() {
    7.26 +	readelf -h ${src}/ptunnel
    7.27 +}
     8.1 --- a/sqlite-dev/receipt	Sun Mar 09 14:09:57 2014 +0000
     8.2 +++ b/sqlite-dev/receipt	Sun Mar 09 16:31:15 2014 +0100
     8.3 @@ -9,8 +9,9 @@
     8.4  LICENSE="PublicDomain"
     8.5  WANTED="sqlite"
     8.6  WEB_SITE="http://www.sqlite.org/"
     8.7 +HOST_ARCH="i486 arm"
     8.8  
     8.9 -DEPENDS="sqlite pkg-config"
    8.10 +DEPENDS="sqlite"
    8.11  
    8.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    8.13  genpkg_rules()
     9.1 --- a/sqlite/receipt	Sun Mar 09 14:09:57 2014 +0000
     9.2 +++ b/sqlite/receipt	Sun Mar 09 16:31:15 2014 +0100
     9.3 @@ -10,6 +10,7 @@
     9.4  TARBALL="$PACKAGE-src-${_realver}.zip"
     9.5  WEB_SITE="http://www.sqlite.org/"
     9.6  WGET_URL="http://www.sqlite.org/2013/$TARBALL"
     9.7 +HOST_ARCH="i486 arm"
     9.8  
     9.9  DEPENDS="libsqlite"
    9.10  BUILD_DEPENDS="tcl"