# HG changeset patch # User Christophe Lincoln # Date 1398267056 -7200 # Node ID 351577bd7833b9261764540d2eb120a85eb75a10 # Parent 33583de47df57bb98115d369aa5327d2a05f48e8 ARM: add wayland diff -r 33583de47df5 -r 351577bd7833 wayland-dev/receipt --- a/wayland-dev/receipt Wed Apr 23 17:05:52 2014 +0200 +++ b/wayland-dev/receipt Wed Apr 23 17:30:56 2014 +0200 @@ -8,6 +8,7 @@ LICENSE="MIT" WANTED="wayland" WEB_SITE="http://www.bluez.org/" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() @@ -16,6 +17,7 @@ cp -a $install/usr/include $fs/usr cp -a $install/usr/lib/*.*a $fs/usr/lib cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/share/pkgconfig/* $fs/usr/lib/pkgconfig + [ -d "$install/usr/share/pkgconfig" ] && \ + cp -a $install/usr/share/pkgconfig/* $fs/usr/lib/pkgconfig cp -a $install/usr/share/aclocal $fs/usr/share } diff -r 33583de47df5 -r 351577bd7833 wayland/receipt --- a/wayland/receipt Wed Apr 23 17:05:52 2014 +0200 +++ b/wayland/receipt Wed Apr 23 17:30:56 2014 +0200 @@ -9,16 +9,25 @@ TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://www.slitaz.org/" WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL" +HOST_ARCH="i486 arm" +# WARNING: wayland must be installed in chroot since build host +# wayland-scanner is used for cross compilation to ARM DEPENDS="libffi expat" BUILD_DEPENDS="libffi-dev expat-dev" +# Handle cross compilation +case "$ARCH" in + arm*) ARCH_ARGS="--disable-scanner" ;; +esac + # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ - --disable-documentation && + --disable-documentation \ + ${CONFIGURE_ARGS} ${ARCH_ARGS} && make && make install } @@ -26,7 +35,7 @@ genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/share - cp -a $install/usr/bin $fs/usr + [ -d "$install/usr/bin" ] && cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/wayland $fs/usr/share }