From 53ca320b9bf1f3514abf13aff419430db5df9260 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 8 Nov 2016 17:40:37 +0100 Subject: [PATCH] qupzilla1: fix cross --- srcpkgs/qupzilla1/template | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/srcpkgs/qupzilla1/template b/srcpkgs/qupzilla1/template index 77736d8199a..175e0b5c2e9 100644 --- a/srcpkgs/qupzilla1/template +++ b/srcpkgs/qupzilla1/template @@ -5,7 +5,7 @@ revision=4 wrksrc=QupZilla-${version} build_style=qmake hostmakedepends="pkg-config" -makedepends="qt5-devel qt5-script-devel qt5-tools-devel qt5-webkit-devel +makedepends="qt5-script-devel qt5-tools-devel qt5-webkit-devel qt5-x11extras-devel hunspell-devel" depends="qt5-plugin-sqlite" short_desc="Lightweight multiplatform browser" @@ -16,8 +16,18 @@ distfiles="https://github.com/QupZilla/qupzilla/releases/download/v${version}/Qu checksum=620ffb10a3f6b3f596c2c38a84d9c320cb66dd2d5e6701e8e31945e26308fcac conflicts="qupzilla>=0" +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools" + hostmakedepends+=" qt5-script-devel" + hostmakedepends+=" qt5-tools-devel" + hostmakedepends+=" qt5-webkit-devel" + hostmakedepends+=" qt5-x11extras-devel" +fi + do_build() { # Avoid disable_parallel_build=yes by re-running make once - make ${makejobs} ${make_build_args} ${make_build_target} || - make ${makejobs} ${make_build_args} ${make_build_target} + make ${makejobs} ${make_build_args} ${make_build_target} \ + CC="$CC" CXX="$CXX" LINK="$CXX" || \ + make ${makejobs} ${make_build_args} ${make_build_target} \ + CC="$CC" CXX="$CXX" LINK="$CXX" }