# Template file for 'merkaartor'
pkgname=merkaartor
version=0.20.0
revision=2
build_style=cmake
configure_args="$(vopt_bool webengine WEBENGINE)"
hostmakedepends="libgdal-tools qt6-base qt6-tools pkg-config protobuf"
makedepends="libgdal-devel proj-devel qt6-declarative-devel qt6-svg-devel
 qt6-networkauth-devel qt6-qt5compat-devel protobuf-devel proj-devel
 exiv2-devel $(vopt_if webengine qt6-webengine-devel)"
short_desc="Openstreetmap map editor"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="http://merkaartor.be"
distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz"
checksum=31b73a9d50cb6366a7c15ab36e030467ffe9f7de2be38bad5f3832314d4a5751

build_options="webengine"
if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" = "64$XBPS_TARGET_WORDSIZE" ]; then
	build_options_default="webengine"
fi
