wok-next rev 12816

gpm: cross compile for ARM
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 21 01:38:41 2012 +0200 (2012-05-21)
parents 09524cdf6ae8
children c50f70597a21
files gpm-dev/receipt gpm-extra/receipt gpm/receipt
line diff
     1.1 --- a/gpm-dev/receipt	Mon May 21 01:35:07 2012 +0200
     1.2 +++ b/gpm-dev/receipt	Mon May 21 01:38:41 2012 +0200
     1.3 @@ -5,14 +5,16 @@
     1.4  CATEGORY="development"
     1.5  SHORT_DESC="Mouse server for console, development files."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 -WEB_SITE="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE"
     1.8 +WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
     1.9  WANTED="gpm"
    1.10 +HOST_ARCH="i486 arm"
    1.11 +
    1.12  DEPENDS="gpm"
    1.13  
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {
    1.17  	mkdir -p $fs/usr/lib
    1.18 -	cp -a $_pkg/usr/include $fs/usr
    1.19 -	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    1.20 +	cp -a $install/usr/include $fs/usr
    1.21 +	cp -a $install/usr/lib/*a $fs/usr/lib
    1.22  }
     2.1 --- a/gpm-extra/receipt	Mon May 21 01:35:07 2012 +0200
     2.2 +++ b/gpm-extra/receipt	Mon May 21 01:38:41 2012 +0200
     2.3 @@ -5,13 +5,21 @@
     2.4  CATEGORY="misc"
     2.5  SHORT_DESC="Mouse server for console, extra files."
     2.6  MAINTAINER="pascal.bellard@slitaz.org"
     2.7 -WEB_SITE="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE"
     2.8 +WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
     2.9 +WANTED="gpm"
    2.10 +HOST_ARCH="i486 arm"
    2.11 +
    2.12  DEPENDS="gpm"
    2.13 -WANTED="gpm"
    2.14 +
    2.15 +# Just to be sure when cross-compiling.
    2.16 +testsuite()
    2.17 +{
    2.18 +	readelf -h $install/usr/bin/gpm-root
    2.19 +}
    2.20  
    2.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.22  genpkg_rules()
    2.23  {
    2.24  	mkdir -p $fs/usr
    2.25 -	cp -a $_pkg/usr/bin $fs/usr
    2.26 +	cp -a $install/usr/bin $fs/usr
    2.27  }
     3.1 --- a/gpm/receipt	Mon May 21 01:35:07 2012 +0200
     3.2 +++ b/gpm/receipt	Mon May 21 01:38:41 2012 +0200
     3.3 @@ -6,25 +6,34 @@
     3.4  SHORT_DESC="Mouse server for console."
     3.5  MAINTAINER="pascal.bellard@slitaz.org"
     3.6  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     3.7 -WEB_SITE="http://unix.schottelius.org/$PACKAGE"
     3.8 -WGET_URL="http://www.nico.schottelius.org/software/$PACKAGE/archives/$TARBALL"
     3.9 +WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
    3.10 +WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
    3.11 +HOST_ARCH="i486 arm"
    3.12 +
    3.13 +DEPENDS="ncurses"
    3.14  BUILD_DEPENDS="gawk bison"
    3.15 -DEPENDS="ncurses"
    3.16 +
    3.17 +# When cross compiling gawk and bison build system are used.
    3.18 +case "$ARCH" in
    3.19 +	arm) BUILD_DEPENDS="" ;;
    3.20 +esac
    3.21  
    3.22  # Rules to configure and make the package.
    3.23  compile_rules()
    3.24  {
    3.25  	cd $src
    3.26 -	./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
    3.27 -	make &&
    3.28 -	make DESTDIR=$PWD/_pkg install
    3.29 +	./configure \
    3.30 +		--prefix=/usr \
    3.31 +		--sysconfdir=/etc \
    3.32 +		$CONFIGURE_ARGS &&
    3.33 +	make && make install
    3.34  }
    3.35  
    3.36  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.37  genpkg_rules()
    3.38  {
    3.39  	mkdir -p $fs/usr/lib
    3.40 -	cp -a $_pkg/usr/sbin $fs/usr
    3.41 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    3.42 -	cp -a stuff/* $fs
    3.43 +	cp -a $install/usr/sbin $fs/usr
    3.44 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    3.45 +	cp -a $stuff/* $fs
    3.46  }