diff --git a/srcpkgs/merkaartor/patches/gdal3.patch b/srcpkgs/merkaartor/patches/gdal3.patch new file mode 100644 index 00000000000..f464068022e --- /dev/null +++ b/srcpkgs/merkaartor/patches/gdal3.patch @@ -0,0 +1,11 @@ +--- src/ImportExport/ImportExportGdal.h 2016-09-06 00:29:45.000000000 +0200 ++++ - 2019-05-12 16:24:43.493161590 +0200 +@@ -19,7 +19,7 @@ + #include + #include + +-#if GDAL_VERSION_MAJOR == 2 ++#if GDAL_VERSION_MAJOR == 2 || GDAL_VERSION_MAJOR == 3 + #define GDAL2 + #endif + diff --git a/srcpkgs/merkaartor/template b/srcpkgs/merkaartor/template index 2c03a372c3d..f049eb6751f 100644 --- a/srcpkgs/merkaartor/template +++ b/srcpkgs/merkaartor/template @@ -13,6 +13,9 @@ homepage="http://merkaartor.be" distfiles="https://github.com/openstreetmap/merkaartor/archive/${version}.tar.gz" checksum=d6b3e4d982b2c7b82331bc5bc8d993d733c443250f02919c3c4dbd6924e6e947 +CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" +CXXFLAGS="${CFLAGS}" + if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-host-tools qt5-tools-devel qt5-svg-devel qt5-webkit-devel" fi