From 1c41b8bcf6ebf9e86c1ed63f137bcc87013f954b Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 10 Jan 2024 23:16:20 +0100 Subject: [PATCH] package/gdal: add xz optional dependency Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/gdal/gdal.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/gdal/gdal.mk b/package/gdal/gdal.mk index 937e28ba20..3104332db9 100644 --- a/package/gdal/gdal.mk +++ b/package/gdal/gdal.mk @@ -67,7 +67,6 @@ GDAL_CONF_OPTS = \ -DGDAL_USE_KDU=OFF \ -DGDAL_USE_KEA=OFF \ -DGDAL_USE_LERC=OFF \ - -DGDAL_USE_LIBLZMA=OFF \ -DGDAL_USE_DEFLATE=OFF \ -DGDAL_USE_MONGOCXX=OFF \ -DGDAL_USE_MRSID=OFF \ @@ -139,4 +138,11 @@ else GDAL_CONF_OPTS += -DGDAL_USE_SQLITE3=OFF endif +ifeq ($(BR2_PACKAGE_XZ),y) +GDAL_DEPENDENCIES += xz +GDAL_CONF_OPTS += -DGDAL_USE_LIBLZMA=ON +else +GDAL_CONF_OPTS += -DGDAL_USE_LIBLZMA=OFF +endif + $(eval $(cmake-package))