# HG changeset patch # User Christophe Lincoln # Date 1337557121 -7200 # Node ID 601c59dca5bf74d85b99de4c1da469455649ed18 # Parent 09524cdf6ae823e47d0b36a91c419d1945223d5f gpm: cross compile for ARM diff -r 09524cdf6ae8 -r 601c59dca5bf gpm-dev/receipt --- a/gpm-dev/receipt Mon May 21 01:35:07 2012 +0200 +++ b/gpm-dev/receipt Mon May 21 01:38:41 2012 +0200 @@ -5,14 +5,16 @@ CATEGORY="development" SHORT_DESC="Mouse server for console, development files." MAINTAINER="pascal.bellard@slitaz.org" -WEB_SITE="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE" +WEB_SITE="http://www.nico.schottelius.org/software/gpm/" WANTED="gpm" +HOST_ARCH="i486 arm" + DEPENDS="gpm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $_pkg/usr/include $fs/usr - cp -a $_pkg/usr/lib/*a $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/*a $fs/usr/lib } diff -r 09524cdf6ae8 -r 601c59dca5bf gpm-extra/receipt --- a/gpm-extra/receipt Mon May 21 01:35:07 2012 +0200 +++ b/gpm-extra/receipt Mon May 21 01:38:41 2012 +0200 @@ -5,13 +5,21 @@ CATEGORY="misc" SHORT_DESC="Mouse server for console, extra files." MAINTAINER="pascal.bellard@slitaz.org" -WEB_SITE="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE" +WEB_SITE="http://www.nico.schottelius.org/software/gpm/" +WANTED="gpm" +HOST_ARCH="i486 arm" + DEPENDS="gpm" -WANTED="gpm" + +# Just to be sure when cross-compiling. +testsuite() +{ + readelf -h $install/usr/bin/gpm-root +} # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr - cp -a $_pkg/usr/bin $fs/usr + cp -a $install/usr/bin $fs/usr } diff -r 09524cdf6ae8 -r 601c59dca5bf gpm/receipt --- a/gpm/receipt Mon May 21 01:35:07 2012 +0200 +++ b/gpm/receipt Mon May 21 01:38:41 2012 +0200 @@ -6,25 +6,34 @@ SHORT_DESC="Mouse server for console." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://unix.schottelius.org/$PACKAGE" -WGET_URL="http://www.nico.schottelius.org/software/$PACKAGE/archives/$TARBALL" +WEB_SITE="http://www.nico.schottelius.org/software/gpm/" +WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL" +HOST_ARCH="i486 arm" + +DEPENDS="ncurses" BUILD_DEPENDS="gawk bison" -DEPENDS="ncurses" + +# When cross compiling gawk and bison build system are used. +case "$ARCH" in + arm) BUILD_DEPENDS="" ;; +esac # Rules to configure and make the package. compile_rules() { cd $src - ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS && - make && - make DESTDIR=$PWD/_pkg install + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $_pkg/usr/sbin $fs/usr - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib - cp -a stuff/* $fs + cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $stuff/* $fs }