2022-05-07 11:46:50 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gdal
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-03-13 06:09:38 +01:00
|
|
|
GDAL_VERSION = 3.6.2
|
2022-05-07 11:46:50 +02:00
|
|
|
GDAL_SITE = https://download.osgeo.org/gdal/$(GDAL_VERSION)
|
|
|
|
GDAL_SOURCE = gdal-$(GDAL_VERSION).tar.xz
|
2023-03-13 06:09:38 +01:00
|
|
|
GDAL_LICENSE = Apache-2.0, ISC, MIT, many others
|
2022-05-07 11:46:50 +02:00
|
|
|
GDAL_LICENSE_FILES = LICENSE.TXT
|
2022-07-27 15:34:28 +02:00
|
|
|
GDAL_CPE_ID_VENDOR = osgeo
|
2022-05-07 11:46:50 +02:00
|
|
|
GDAL_INSTALL_STAGING = YES
|
|
|
|
GDAL_CONFIG_SCRIPTS = gdal-config
|
2023-01-24 11:31:49 +01:00
|
|
|
GDAL_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
|
|
|
# Using 'make' with CMake's Makefile generator will not work, as
|
|
|
|
# 'make' uses GNUmakefile first, but GNUmakefile is provided by
|
|
|
|
# autotools in gdal. We need to force 'make' to use the Makefile,
|
|
|
|
# which is generated by CMake. GNUmakefile and autoconf are dropped in
|
|
|
|
# 3.6 so this can be dropped in future version.
|
|
|
|
GDAL_MAKE_OPTS += -f Makefile
|
|
|
|
|
2022-05-07 11:46:50 +02:00
|
|
|
# gdal at its core only needs host-pkgconf, libgeotiff, proj and tiff
|
|
|
|
# but since by default mrf driver support is enabled, it also needs
|
|
|
|
# jpeg, libpng and zlib. By default there are also many other drivers
|
|
|
|
# enabled but it seems, in contrast to mrf driver support, that they
|
|
|
|
# can be implicitly disabled, by configuring gdal without their
|
|
|
|
# respectively needed dependencies.
|
package/gdal: fix json dependency
gdal needs json-c, not libjson, resulting in the following build failure
since the addition of the package in commit
1e64fa2956171cdc9d6e6c8896b4b589ce573513:
configure: error: could not find json-c/json.h
While at it, also drop unrecognized options:
configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --without-dods-root, --without-fme, --without-grass, --without-libgrass, --without-ingres, --without-jasper, --without-charls, --without-mdb, --without-mongocxx, --without-mrsid_lidar, --without-perl
Fixes:
- http://autobuild.buildroot.org/results/f977675125167806e844a176a4c8c8873557b709
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-07-28 10:00:16 +02:00
|
|
|
GDAL_DEPENDENCIES = host-pkgconf jpeg json-c libgeotiff libpng proj tiff zlib
|
2022-05-07 11:46:50 +02:00
|
|
|
|
2023-01-24 11:31:49 +01:00
|
|
|
# Yes, even though they have -DDGDAL_USE options, a few libraries are
|
2022-05-07 11:46:50 +02:00
|
|
|
# mandatory. If we don't provide them, bundled versions are used.
|
|
|
|
GDAL_CONF_OPTS = \
|
2023-01-24 11:31:49 +01:00
|
|
|
-DGDAL_USE_GEOTIFF=ON \
|
|
|
|
-DGDAL_USE_JPEG=ON \
|
|
|
|
-DGDAL_USE_JSONC=ON \
|
|
|
|
-DGDAL_USE_ZLIB=ON \
|
|
|
|
-DGDAL_USE_PNG=ON \
|
|
|
|
-DGDAL_USE_ARMADILLO=OFF \
|
|
|
|
-DGDAL_USE_BLOSC=OFF \
|
|
|
|
-DGDAL_USE_BRUNSLI=OFF \
|
|
|
|
-DGDAL_USE_CFITSIO=OFF \
|
|
|
|
-DGDAL_USE_OPENSSL=OFF \
|
|
|
|
-DGDAL_USE_CRYPTOPP=OFF \
|
|
|
|
-DGDAL_USE_CRNLIB=OFF \
|
|
|
|
-DGDAL_USE_CURL=OFF \
|
|
|
|
-DGDAL_USE_ECW=OFF \
|
|
|
|
-DGDAL_USE_EXPAT=OFF \
|
|
|
|
-DGDAL_USE_FILEGDB=O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|
-DGDAL_USE_QHULL=OFF \
|
|
|
|
-DGDAL_USE_RASDAMAN=OFF \
|
|
|
|
-DGDAL_USE_RASTERLITE2=OFF \
|
|
|
|
-DGDAL_USE_RDB=OFF \
|
|
|
|
-DGDAL_USE_SFCGAL=OFF \
|
|
|
|
-DGDAL_USE_FYBA=OFF \
|
|
|
|
-DGDAL_USE_SPATIALITE=OFF \
|
|
|
|
-DGDAL_USE_SQLITE3=OFF \
|
|
|
|
-DGDAL_USE_TEIGHA=OFF \
|
|
|
|
-DGDAL_USE_TILEDB=OFF \
|
|
|
|
-DGDAL_USE_WEBP=OFF \
|
|
|
|
-DGDAL_USE_XERCESC=OFF \
|
|
|
|
-DGDAL_USE_ZSTD=OFF \
|
|
|
|
-DGDAL_ENABLE_DRIVER_PCIDSK=OFF \
|
|
|
|
-DGDAL_ENABLE_DRIVER_PCRASTER=OFF \
|
|
|
|
-DGDAL_ENABLE_DRIVER_NULL=OFF \
|
|
|
|
-DGDAL_ENABLE_MACOSX_FRAMEWORK=OFF \
|
|
|
|
-DENABLE_GNM=OFF \
|
|
|
|
-DENABLE_PAM=OFF \
|
|
|
|
-DBUILD_JAVA_BINDINGS=OFF \
|
|
|
|
-DBUILD_PYTHON_BINDINGS=OFF
|
2022-05-07 11:46:50 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
GDAL_DEPENDENCIES += libxml2
|
2023-01-24 11:31:49 +01:00
|
|
|
GDAL_CONF_OPTS += -DGDAL_USE_LIBXML2=ON
|
2022-05-07 11:46:50 +02:00
|
|
|
else
|
2023-01-24 11:31:49 +01:00
|
|
|
GDAL_CONF_OPTS += -DGDAL_USE_LIBXML2=OFF
|
2022-05-07 11:46:50 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
|
|
|
GDAL_DEPENDENCIES += postgresql
|
2023-01-24 11:31:49 +01:00
|
|
|
GDAL_CONF_OPTS += -DGDAL_USE_POSTGRESQL=ON
|
2022-05-07 11:46:50 +02:00
|
|
|
else
|
2023-01-24 11:31:49 +01:00
|
|
|
GDAL_CONF_OPTS += -DGDAL_USE_POSTGRESQL=OFF
|
2022-05-07 11:46:50 +02:00
|
|
|
endif
|
|
|
|
|
2023-01-24 11:31:49 +01:00
|
|
|
$(eval $(cmake-package))
|