2022-05-07 11:46:50 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gdal
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-01-02 21:47:56 +01:00
|
|
|
GDAL_VERSION = 3.8.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
|
|
|
|
|
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.
|
2024-01-02 21:47:55 +01:00
|
|
|
GDAL_DEPENDENCIES = \
|
|
|
|
giflib \
|
|
|
|
host-pkgconf \
|
|
|
|
jpeg \
|
|
|
|
json-c \
|
|
|
|
libgeotiff \
|
|
|
|
libpng \
|
|
|
|
proj \
|
|
|
|
qhull \
|
|
|
|
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 \
|
2024-01-02 21:47:55 +01:00
|
|
|
-DGDAL_USE_GIF=ON \
|
2023-01-24 11:31:49 +01:00
|
|
|
-DGDAL_USE_JPEG=ON \
|
|
|
|
-DGDAL_USE_JSONC=ON \
|
|
|
|
-DGDAL_USE_ZLIB=ON \
|
|
|
|
-DGDAL_USE_PNG=ON \
|
2024-01-02 21:47:55 +01:00
|
|
|
-DGDAL_USE_QHULL=ON \
|
2023-01-24 11:31:49 +01:00
|
|
|
-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=OFF \
|
|
|
|
-DGDAL_USE_FREEXL=OFF \
|
|
|
|
-DGDAL_USE_GEOS=OFF \
|
|
|
|
-DGDAL_USE_LIBKML=OFF \
|
|
|
|
-DGDAL_USE_LZ4=OFF \
|
|
|
|
-DGDAL_USE_GTA=OFF \
|
|
|
|
-DGDAL_USE_HDF4=OFF \
|
|
|
|
-DGDAL_USE_HDF5=OFF \
|
|
|
|
-DGDAL_USE_HDFS=OFF \
|
|
|
|
-DGDAL_USE_HEIF=OFF \
|
|
|
|
-DGDAL_USE_IDB=OFF \
|
|
|
|
-DGDAL_USE_LURATECH=OFF \
|
|
|
|
-DGDAL_USE_JPEG12_INTERNAL=OFF \
|
|
|
|
-DGDAL_USE_JXL=OFF \
|
|
|
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_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))
|