diff --git a/srcpkgs/scummvm/template b/srcpkgs/scummvm/template index 3b0c4a6268..55b0c5a2ff 100644 --- a/srcpkgs/scummvm/template +++ b/srcpkgs/scummvm/template @@ -15,6 +15,16 @@ license="GPL-2" distfiles="http://www.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz" checksum=2417edcb1ad51ca05a817c58aeee610bc6db5442984e8cf28e8a5fd914e8ae05 +if [ "$CROSS_BUILD" ]; then + configure_args+=" --host=${XBPS_CROSS_TRIPLET} --disable-nasm" + CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL" +fi + +# Cross for arm* is broken when trying to assemble engines/scumm/smush/codec47ARM.s +case "$XBPS_TARGET_MACHINE" in + arm*) broken="engines/scumm/smush/codec47ARM.s" +esac + do_install() { vbin scummvm vman dists/scummvm.6