wok diff gpm/receipt @ 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 b304b521220c
children 5c1c1e5a76c6
line diff
     1.1 --- a/gpm/receipt	Fri Sep 17 03:10:10 2010 +0000
     1.2 +++ b/gpm/receipt	Mon May 21 01:38:41 2012 +0200
     1.3 @@ -6,25 +6,34 @@
     1.4  SHORT_DESC="Mouse server for console."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.7 -WEB_SITE="http://unix.schottelius.org/$PACKAGE"
     1.8 -WGET_URL="http://www.nico.schottelius.org/software/$PACKAGE/archives/$TARBALL"
     1.9 +WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
    1.10 +WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
    1.11 +HOST_ARCH="i486 arm"
    1.12 +
    1.13 +DEPENDS="ncurses"
    1.14  BUILD_DEPENDS="gawk bison"
    1.15 -DEPENDS="ncurses"
    1.16 +
    1.17 +# When cross compiling gawk and bison build system are used.
    1.18 +case "$ARCH" in
    1.19 +	arm) BUILD_DEPENDS="" ;;
    1.20 +esac
    1.21  
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {
    1.25  	cd $src
    1.26 -	./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
    1.27 -	make &&
    1.28 -	make DESTDIR=$PWD/_pkg install
    1.29 +	./configure \
    1.30 +		--prefix=/usr \
    1.31 +		--sysconfdir=/etc \
    1.32 +		$CONFIGURE_ARGS &&
    1.33 +	make && make install
    1.34  }
    1.35  
    1.36  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.37  genpkg_rules()
    1.38  {
    1.39  	mkdir -p $fs/usr/lib
    1.40 -	cp -a $_pkg/usr/sbin $fs/usr
    1.41 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.42 -	cp -a stuff/* $fs
    1.43 +	cp -a $install/usr/sbin $fs/usr
    1.44 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.45 +	cp -a $stuff/* $fs
    1.46  }