diff --git a/srcpkgs/xsane/template b/srcpkgs/xsane/template index 7bfa8b313e..022eae8e94 100644 --- a/srcpkgs/xsane/template +++ b/srcpkgs/xsane/template @@ -1,20 +1,25 @@ # Template file for 'xsane' pkgname=xsane version=0.999 -revision=2 +revision=3 hostmakedepends="pkg-config" makedepends="gtk+-devel lcms-devel sane-devel gimp-devel" depends="sane" short_desc="GTK-based X11 frontend for SANE" maintainer="Jürgen Buchmüller " -license="GPL-2" +license="GPL-2.0-or-later" homepage="http://www.xsane.org" distfiles="${DEBIAN_SITE}/main/x/xsane/xsane_${version}.orig.tar.gz" checksum=5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b -nocross="configure: error: cannot run C compiled programs. If you meant to cross compile, use '--host'." + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" sane-devel" +fi do_build() { - local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man" + local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man + --target=${XBPS_CROSS_TRIPLET} --host=${XBPS_CROSS_TRIPLET} + --build=${XBPS_TRIPLET}" ./configure ${_args} --enable-gimp make ${makejobs} mv src/xsane{,-gimp}