wok diff wayland/receipt @ rev 19059

Add Lines game
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 21 03:09:40 2016 +0300 (2016-04-21)
parents fd8b9f3b8878
children 7c0170dd3ecc
line diff
     1.1 --- a/wayland/receipt	Mon Mar 31 01:18:02 2014 +0200
     1.2 +++ b/wayland/receipt	Thu Apr 21 03:09:40 2016 +0300
     1.3 @@ -9,16 +9,25 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     1.5  WEB_SITE="http://www.slitaz.org/"
     1.6  WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9 +# WARNING: wayland must be installed in chroot since build host 
    1.10 +# wayland-scanner is used for cross compilation to ARM
    1.11  DEPENDS="libffi expat"
    1.12  BUILD_DEPENDS="libffi-dev expat-dev"
    1.13  
    1.14 +# Handle cross compilation
    1.15 +case "$ARCH" in
    1.16 +	arm*) ARCH_ARGS="--disable-scanner" ;;
    1.17 +esac
    1.18 +
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22  	./configure \
    1.23  		--prefix=/usr \
    1.24 -		--disable-documentation &&
    1.25 +		--disable-documentation \
    1.26 +		${CONFIGURE_ARGS} ${ARCH_ARGS} &&
    1.27  	make && make install
    1.28  }
    1.29  
    1.30 @@ -26,7 +35,7 @@
    1.31  genpkg_rules()
    1.32  {
    1.33  	mkdir -p $fs/usr/lib $fs/usr/share
    1.34 -	cp -a $install/usr/bin $fs/usr
    1.35 +	[ -d "$install/usr/bin" ] && cp -a $install/usr/bin $fs/usr
    1.36  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.37  	cp -a $install/usr/share/wayland $fs/usr/share
    1.38  }