# HG changeset patch # User Christophe Lincoln # Date 1397305639 -7200 # Node ID ee9478b37d1d1f1f42c7257fb1ff54e490fe19e1 # Parent e48fb758c6d8a34afd104be6e1169e7658115654 ARM: fix squeak-vm cross compilation diff -r e48fb758c6d8 -r ee9478b37d1d squeak-vm/receipt --- a/squeak-vm/receipt Sat Apr 12 13:55:15 2014 +0200 +++ b/squeak-vm/receipt Sat Apr 12 14:27:19 2014 +0200 @@ -12,16 +12,23 @@ WGET_URL="http://squeakvm.org/unix/release/$TARBALL" HOST_ARCH="i486 arm" -SUGGESTED="" +SUGGESTED="scratch" DEPENDS="alsa-lib dbus xorg-libXrender" -BUILD_DEPENDS="alsa-lib-dev dbus-dev xorg-libXrender-dev cmake" +BUILD_DEPENDS="alsa-lib-dev dbus-dev xorg-libXrender-dev" + +# Use build host cmake when cross compiling +case "$ARCH" in + i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;; + arm) ARCH_ARGS="--without-SqueakFFIPrims" ;; +esac # Rules to configure and make the package. compile_rules() { - ./unix/cmake/configure \ + ./unix/cmake/configure ${ARCH_ARGS} \ --prefix=/usr \ --without-quartz \ + --without-gl \ --with-x \ --enable-mpg-mmx && make && make DESTDIR=${DESTDIR} install