xsane: fix cross and license=
This commit is contained in:
parent
787604c3af
commit
1cbdef1722
1 changed files with 9 additions and 4 deletions
|
@ -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 <pullmoll@t-online.de>"
|
||||
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}
|
||||
|
|
Loading…
Reference in a new issue