wok-current rev 16498

ARM: add wayland
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 17:30:56 2014 +0200 (2014-04-23)
parents 33583de47df5
children 96b7a0fabed3
files wayland-dev/receipt wayland/receipt
line diff
     1.1 --- a/wayland-dev/receipt	Wed Apr 23 17:05:52 2014 +0200
     1.2 +++ b/wayland-dev/receipt	Wed Apr 23 17:30:56 2014 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4  LICENSE="MIT"
     1.5  WANTED="wayland"
     1.6  WEB_SITE="http://www.bluez.org/"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
    1.11 @@ -16,6 +17,7 @@
    1.12  	cp -a $install/usr/include $fs/usr
    1.13  	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.14  	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.15 -	cp -a $install/usr/share/pkgconfig/* $fs/usr/lib/pkgconfig
    1.16 +	[ -d "$install/usr/share/pkgconfig" ] && \
    1.17 +		cp -a $install/usr/share/pkgconfig/* $fs/usr/lib/pkgconfig
    1.18  	cp -a $install/usr/share/aclocal $fs/usr/share
    1.19  }
     2.1 --- a/wayland/receipt	Wed Apr 23 17:05:52 2014 +0200
     2.2 +++ b/wayland/receipt	Wed Apr 23 17:30:56 2014 +0200
     2.3 @@ -9,16 +9,25 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     2.5  WEB_SITE="http://www.slitaz.org/"
     2.6  WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9 +# WARNING: wayland must be installed in chroot since build host 
    2.10 +# wayland-scanner is used for cross compilation to ARM
    2.11  DEPENDS="libffi expat"
    2.12  BUILD_DEPENDS="libffi-dev expat-dev"
    2.13  
    2.14 +# Handle cross compilation
    2.15 +case "$ARCH" in
    2.16 +	arm*) ARCH_ARGS="--disable-scanner" ;;
    2.17 +esac
    2.18 +
    2.19  # Rules to configure and make the package.
    2.20  compile_rules()
    2.21  {
    2.22  	./configure \
    2.23  		--prefix=/usr \
    2.24 -		--disable-documentation &&
    2.25 +		--disable-documentation \
    2.26 +		${CONFIGURE_ARGS} ${ARCH_ARGS} &&
    2.27  	make && make install
    2.28  }
    2.29  
    2.30 @@ -26,7 +35,7 @@
    2.31  genpkg_rules()
    2.32  {
    2.33  	mkdir -p $fs/usr/lib $fs/usr/share
    2.34 -	cp -a $install/usr/bin $fs/usr
    2.35 +	[ -d "$install/usr/bin" ] && cp -a $install/usr/bin $fs/usr
    2.36  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.37  	cp -a $install/usr/share/wayland $fs/usr/share
    2.38  }