# HG changeset patch # User Christophe Lincoln # Date 1394379075 -3600 # Node ID e4cda1000ec763c135a7605f79d9e2f92e115a84 # Parent 8cf93f4aedd19ea7ec54dfc8b408c48e06c2c547 Add to ARM: sqlite ptunnel libpcap gdbm gc diff -r 8cf93f4aedd1 -r e4cda1000ec7 gc-dev/receipt --- a/gc-dev/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/gc-dev/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -8,8 +8,9 @@ LICENSE="MIT GPL" WANTED="gc" WEB_SITE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/" +HOST_ARCH="i468 arm" -DEPENDS="gc pkg-config" +DEPENDS="gc" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 8cf93f4aedd1 -r e4cda1000ec7 gc/receipt --- a/gc/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/gc/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -9,6 +9,7 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/" WGET_URL="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$TARBALL" +HOST_ARCH="i468 arm" # Rules to configure and make the package. compile_rules() diff -r 8cf93f4aedd1 -r e4cda1000ec7 gdbm-dev/receipt --- a/gdbm-dev/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/gdbm-dev/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -8,6 +8,7 @@ LICENSE="GPL3" WEB_SITE="http://www.gnu.org/software/gdbm" WANTED="gdbm" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 8cf93f4aedd1 -r e4cda1000ec7 gdbm/receipt --- a/gdbm/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/gdbm/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -9,15 +9,15 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gnu.org/software/gdbm" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" +HOST_ARCH="i486 arm" -DEPENDS="glibc-base" -BUILD_DEPENDS="gcc" +DEPENDS="" +BUILD_DEPENDS="" # Rules to configure and make the package. compile_rules() { - cd $src - sed -i -e 's/BINOWN = bin/BINOWN = root/' \ + sed -i -e 's/BINOWN = bin/BINOWN = root/' \ -e 's/BINGRP = bin/BINGRP = root/' Makefile.in ./configure $CONFIGURE_ARGS && make && diff -r 8cf93f4aedd1 -r e4cda1000ec7 libpcap-dev/receipt --- a/libpcap-dev/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/libpcap-dev/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -9,6 +9,7 @@ DEPENDS="libpcap" WEB_SITE="http://www.tcpdump.org/" WANTED="libpcap" +HOST_ARCH="i468 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 8cf93f4aedd1 -r e4cda1000ec7 libpcap/receipt --- a/libpcap/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/libpcap/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -9,18 +9,25 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.tcpdump.org/" WGET_URL="http://www.tcpdump.org/release/$TARBALL"; +HOST_ARCH="i468 arm" DEPENDS="libnl" BUILD_DEPENDS="flex bison" +# Handle cross compilation +case "$ARCH" in + arm) + BUILD_DEPENDS="" + ARCH_ARGS="--with-pcap=linux" + export ac_cv_linux_vers=2 ;; +esac + # Rules to configure and make the package. compile_rules() { - cd $src - ./configure --prefix=/usr --infodir=/usr/share/info \ - --mandir=/usr/share/man $CONFIGURE_ARGS && - make && - make DESTDIR=$DESTDIR install + ./configure \ + $CONFIGURE_ARGS $ARCH_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 8cf93f4aedd1 -r e4cda1000ec7 ptunnel/receipt --- a/ptunnel/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/ptunnel/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -10,6 +10,7 @@ TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.cs.uit.no/~daniels/PingTunnel/" WGET_URL="$WEB_SITE/$TARBALL" +HOST_ARCH="i468 arm" DEPENDS="libpcap" BUILD_DEPENDS="libpcap-dev" @@ -17,8 +18,7 @@ # Rules to configure and make the package. compile_rules() { - cd $src - make + make CC=${HOST_SYSTEM}-gcc } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -28,3 +28,6 @@ cp -a $src/ptunnel $fs/usr/bin } +testsuite() { + readelf -h ${src}/ptunnel +} diff -r 8cf93f4aedd1 -r e4cda1000ec7 sqlite-dev/receipt --- a/sqlite-dev/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/sqlite-dev/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -9,8 +9,9 @@ LICENSE="PublicDomain" WANTED="sqlite" WEB_SITE="http://www.sqlite.org/" +HOST_ARCH="i486 arm" -DEPENDS="sqlite pkg-config" +DEPENDS="sqlite" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 8cf93f4aedd1 -r e4cda1000ec7 sqlite/receipt --- a/sqlite/receipt Sun Mar 09 14:09:57 2014 +0000 +++ b/sqlite/receipt Sun Mar 09 16:31:15 2014 +0100 @@ -10,6 +10,7 @@ TARBALL="$PACKAGE-src-${_realver}.zip" WEB_SITE="http://www.sqlite.org/" WGET_URL="http://www.sqlite.org/2013/$TARBALL" +HOST_ARCH="i486 arm" DEPENDS="libsqlite" BUILD_DEPENDS="tcl"