pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gdal: Add upgrade candidates to 3.9.0
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Wed May 22 08:09:43 2024 -0400
Changeset: 2fee4dad9329d9f284f1f14ad3db2b21ad0ba566
Modified Files:
Makefile
Added Files:
gdal-lib/COMMIT_MSG
gdal-lib/DESCR
gdal-lib/Makefile
gdal-lib/Makefile.common
gdal-lib/PLIST
gdal-lib/buildlink3.mk
gdal-lib/distinfo
gdal-lib/options.mk
gdal-lib/patches/patch-frmts_grib_degrib_degrib_myutil.c
py-gdal/DESCR
py-gdal/Makefile
py-gdal/Makefile.cmake
py-gdal/PLIST
Log Message:
gdal: Add upgrade candidates to 3.9.0
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2fee4dad9329d9f284f1f14ad3db2b21ad0ba566
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 2 +
gdal-lib/COMMIT_MSG | 117 +++++++
gdal-lib/DESCR | 10 +
gdal-lib/Makefile | 108 +++++++
gdal-lib/Makefile.common | 25 ++
gdal-lib/PLIST | 340 +++++++++++++++++++++
gdal-lib/buildlink3.mk | 40 +++
gdal-lib/distinfo | 6 +
gdal-lib/options.mk | 33 ++
.../patch-frmts_grib_degrib_degrib_myutil.c | 17 ++
py-gdal/DESCR | 21 ++
py-gdal/Makefile | 34 +++
py-gdal/Makefile.cmake | 20 ++
py-gdal/PLIST | 11 +
14 files changed, 784 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 002fe617b7..7cd16f8669 100644
--- a/Makefile
+++ b/Makefile
@@ -1134,6 +1134,7 @@ SUBDIR+= gcc9snapshot
SUBDIR+= gconf-cleaner
SUBDIR+= gcta
SUBDIR+= gdal-docs
+SUBDIR+= gdal-lib
SUBDIR+= gdb-git
SUBDIR+= gdb5
SUBDIR+= gdb6
@@ -3694,6 +3695,7 @@ SUBDIR+= py-gato
SUBDIR+= py-gatspy
SUBDIR+= py-gauss
SUBDIR+= py-gbpy
+SUBDIR+= py-gdal
SUBDIR+= py-gdxcc
SUBDIR+= py-gem
SUBDIR+= py-genesis
diff --git a/gdal-lib/COMMIT_MSG b/gdal-lib/COMMIT_MSG
new file mode 100644
index 0000000000..bb2343b61a
--- /dev/null
+++ b/gdal-lib/COMMIT_MSG
@@ -0,0 +1,117 @@
+geography/gdal: Update to 3.9.0
+
+Upstream NEWS.md, heavily trimmed to remove bugfixes and minor
+improvements:
+
+See [MIGRATION_GUIDE.TXT](https://github.com/OSGeo/gdal/blob/release/3.9/MIGRATION_GUIDE.TXT)
+
+# GDAL/OGR 3.9.0 Releases Notes
+
+GDAL/OGR 3.9.0 is a feature release.
+Those notes include changes since GDAL 3.8.0, but not already included in a
+GDAL 3.8.x bugfix release.
+
+## In a nutshell...
+
+* [RFC 96](https://gdal.org/development/rfc/rfc96_deferred_plugin_loading.html):
+ Deferred C++ plugin loading
+* [RFC 97](https://gdal.org/development/rfc/rfc97_feature_and_fielddefn_sealing.html):
+ OGRFeatureDefn, OGRFieldDefn and OGRGeomFieldDefn "sealing"
+* [RFC 98](https://gdal.org/development/rfc/rfc98_build_requirements_gdal_3_9.html):
+ Build requirements for GDAL 3.9
+* [RFC 99](https://gdal.org/development/rfc/rfc99_geometry_coordinate_precision.html):
+ Geometry coordinate precision
+* Add [S104](https://gdal.org/drivers/raster/s104.html) (Water Level Information
+ for Surface Navigation Product) and
+ [S111](https://gdal.org/drivers/raster/s111.html) (Surface Currents Product)
+ raster read-only drivers (required libhdf5)
+* Add raster [GTI](https://gdal.org/drivers/raster/gti.html) (GDAL Raster Tile
+ Index) driver to support catalogs with huge number of sources.
+* Add vector [MiraMonVector](https://gdal.org/drivers/vector/miramon.html)
+ read/creation driver (#9688)
+* Deprecated ARG driver has been removed (#7920)
+* Code linting
+
+# GDAL/OGR 3.8.0 Releases Notes
+
+GDAL/OGR 3.8.0 is a feature release.
+Those notes include changes since GDAL 3.8.0, but not already included in a
+GDAL 3.7.x bugfix release.
+
+## In a nutshell...
+
+* Add [JSONFG](https://gdal.org/drivers/vector/jsonfg.html) read/write vector
+ driver for OGC Features and Geometries JSON.
+* Add [PMTiles](https://gdal.org/drivers/vector/pmtiles.html) read/write vector
+ driver for PMTiles v3 datasets containing MVT PBF tiles
+* Add [S102](https://gdal.org/drivers/raster/s102.html) raster read-only driver
+ for S-102 bathymetric products (depends on libhdf5)
+* Add [gdal_footprint](https://gdal.org/programs/gdal_footprint.html) utility:
+ compute the footprint of a raster file, taking into account nodata/mask band,
+ and generating polygons/multipolygons corresponding to areas where pixels are
+ valid (#6264)
+* Python bindings: various enhancements to reduce the number of "gotchas"
+ related to inter-object ownership relationships, and a few syntaxic sugar
+ enhancements
+* Arrow interface: improve spatial and attribute filtering on read side;
+ add write side with OGRLayer::WriteArrowBatch()
+* GeoPackage: much faster spatial index creation (~ 3-4 times faster)
+* ARG driver deprecated: will be removed in 3.9.0
+
+# GDAL/OGR 3.7.0 Releases Notes
+
+GDAL/OGR 3.7.0 is a feature release.
+Those notes include changes since GDAL 3.6.0, but not already included in a
+GDAL 3.6.x bugfix release.
+
+## In a nutshell...
+
+* [RFC 87](https://gdal.org/development/rfc/rfc87_signed_int8.html): Add
+ GDT_Int8 support
+* [RFC 88](https://gdal.org/development/rfc/rfc88_googletest.html): switch
+ to GoogleTest framework for C++ tests (#3525)
+* [RFC 89](https://gdal.org/development/rfc/rfc89_sql_logging_callback.html):
+ SQL query logging callback (#6967)
+* [RFC 90](https://gdal.org/development/rfc/rfc90_read_compressed_data.html):
+ Direct access to compressed raster data
+* [RFC 91](https://gdal.org/development/rfc/rfc91_dataset_close.html):
+ GDALDataset::Close() method
+* [RFC 93](https://gdal.org/development/rfc/rfc93_update_feature.html):
+ OGRLayer::UpdateFeature() method
+* [RFC 94](https://gdal.org/development/rfc/rfc94_field_precision_width_metadata.html):
+ Numeric fields width/precision metadata
+* ogrinfo: make it accessible through a new GDALVectorInfo() C API call, and
+ a -json switch
+* Add read-only raster driver NOAA_B to read NOAA GEOCON/NADCON5 .b grids
+* Add read-only raster driver NSIDCbin for Sea Ice Concentrations (#7263)
+* Add read-only vector GTFS (General Transit Feed Specification) driver
+* TileDB: add read/write vector side
+* Add support for [SOZip](https://sozip.org) (Seek Optimized ZIP) with enhanced
+ /vsizip/ virtual file system and a new sozip utility
+* OpenFileGDB: add read-only support for raster datasets (.gdb v10)
+* PNG: 1.7-2.0x speed-up in whole image decompression with libdeflate on
+ Intel/AMD CPUs. Benefits GPKG, MRF drivers
+* [RFC 69](https://gdal.org/development/rfc/rfc69_cplusplus_formatting.html):
+ C++ code reformatting
+* Code linting and security fixes
+* Remove any traces of Rasdaman driver, now moved to OSGeo/gdal-extra-drivers
+ repository (#4808)
+
+# GDAL/OGR 3.6.0 Release Notes
+
+Those notes include changes since GDAL 3.5.0, but not already included in a GDAL 3.5.x bugfix release.
+
+## In a nutshell...
+
+* CMake is the only build system available in-tree. autoconf and nmake build systems have been removed
+* OpenFileGDB: write and update support (v10.x format only), without requiring any external dependency, with same (and actually larger) functional scope as write side of the FileGDB driver
+* [RFC 86](https://gdal.org/development/rfc/rfc86_column_oriented_api.html): Column-oriented read API for vector layers.
+ Implemented in core, Arrow, Parquet, GPKG and FlatGeoBuf drivers
+* Add read/write raster [JPEGXL driver](https://gdal.org/drivers/raster/jpegxl.html) for standalone JPEG-XL files. Requires libjxl
+* Add KTX2 and BASISU read/write raster drivers for texture formats. Require (forked) basisu library
+* Vector layer API: table relationship discovery & creation, Upsert() operation
+* GeoTIFF: add multi-threaded read capabilities (reqiures NUM_THREADS open option or GDAL_NUM_THREADS configuration option to be set)
+* Multiple performance improvements in GPKG driver
+* ogr_layer_algebra.py: promoted to official script (#1581)
+* Code linting and security fixes
+* Bump of shared lib major version
diff --git a/gdal-lib/DESCR b/gdal-lib/DESCR
new file mode 100644
index 0000000000..69b5df64ba
--- /dev/null
+++ b/gdal-lib/DESCR
@@ -0,0 +1,10 @@
+GDAL is a translator library for raster and vector geospatial data
+formats that is released under an MIT style Open Source License by the
+Open Source Geospatial Foundation. As a library, it presents a single
+raster abstract data model and single vector abstract data model to
+the calling application for all supported formats. It also comes with
+a variety of useful command line utilities for data translation and
+processing.
+
+This package intends to build support for all formats subject to using
+only open source code and avoiding unreasonably large dependencies.
diff --git a/gdal-lib/Makefile b/gdal-lib/Makefile
new file mode 100644
index 0000000000..b0cb68f139
--- /dev/null
+++ b/gdal-lib/Makefile
@@ -0,0 +1,108 @@
+# $NetBSD: Makefile,v 1.165 2024/05/21 18:21:33 gdt Exp $
+
+.include "../../geography/gdal-lib/Makefile.common"
+PKGNAME= ${DISTNAME:S/gdal/gdal-lib/}
+#PKGREVISION= 0
+
+COMMENT= Translator library for raster geospatial data formats
+
+USE_LANGUAGES+= c c++
+USE_CC_FEATURES+= c99
+USE_CXX_FEATURES+= c++11
+
+USE_TOOLS+= gmake
+USE_TOOLS+= pkg-config
+
+USE_LIBTOOL= yes
+USE_PKGLOCALEDIR= yes
+
+# This package intends to link against only libgeos_c, but ends up
+# also linking to the C++ library libgeos, apparently because of a
+# libtool problem.
+# Therefore this package needs revbumping on every geos update.
+
+# To find out what can be set in the cmake build.
+# \todo Hoist to cmake/buidl.mk.
+cmake-options:
+ (cd ${WRKSRC}/cmake-pkgsrc-build && cmake -L ..) > OPTIONS
+
+.include "../../devel/cmake/build.mk"
+CMAKE_ARGS+= -DBUILD_PYTHON_BINDINGS=OFF
+CMAKE_ARGS+= -DBUILD_CSHARP_BINDINGS=OFF
+CMAKE_ARGS+= -DBUILD_JAVA_BINDINGS=OFF
+
+# \todo Justify or change to bl3 on json-c
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_JSONC_INTERNAL=ON
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_JSONC=OFF
+
+# Disable things that cmake finds that we didn't bl3.
+# \todo For each, consider if we should intead add a bl3.
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_DEFLATE=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_FREEXL=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_HDF5=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_HEIF=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_LZ4=OFF
+# \todo Resolve LZMA usage.
+# GDAL_USE_LZMA appears in gtif but cmake says it doesn't exist.
+#CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_LZMA=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_ODBC=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_OPENEXR=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_PCRE2=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_POPPLER=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_ZSTD=OFF
+
+# \todo One would think these are unnnecessary. Check if these
+# can/should be dropped. If not, explain why we have some and not
+# all. Commented lines are incompletely translated from autoconf,
+# because there is no obvious analog.
+CMAKE_CONFIGURE_ARGS+= -DGEOS_DIR=${BUILDLINK_PREFIX.geos}
+CMAKE_CONFIGURE_ARGS+= -DTiff_DIR=${BUILDLINK_PREFIX.tiff}
+#CMAKE_CONFIGURE_ARGS+= -Dlibz=${BUILDLINK_PREFIX.zlib}
+CMAKE_CONFIGURE_ARGS+= -DNetCDF_DIR=${BUILDLINK_PREFIX.netcdf}
+#CMAKE_CONFIGURE_ARGS+= -Dwebp=${BUILDLINK_PREFIX.libwebp}
+#CMAKE_CONFIGURE_ARGS+= -Dxerces
+#CMAKE_CONFIGURE_ARGS+= -Dxerces-inc=${BUILDLINK_PREFIX.xerces-c}/include
+#CMAKE_CONFIGURE_ARGS+= -Dxerces-lib=-L${BUILDLINK_PREFIX.xerces-c}/lib\ -lxerces-c
+
+.include "options.mk"
+
+CHECK_PORTABILITY_SKIP+= mkbindist.sh
+
+INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1 share/gdal
+
+# \todo: Support geopdf by including poppler, PoDoFo, or PDFium.
+# https://gdal.org/drivers/raster/pdf.html
+
+# As an exception to the "cmake change only" rule, enable spatialite because
+# that's easier than working around a bug that causes cmake to fail because
+# of an empty variable leading to a wrong number of args error.
+#
+# NB: spatialite requires sqlite3, so there is the spectre of base/pkg confusion.
+# Therefore, include it first in the baseless hope that helps.
+.include "../../geography/libspatialite/buildlink3.mk"
+
+# \todo Enable zstd
+# .include "../../archivers/zstd/buildlink3.mk"
+
+# Avoid NetBSD base sqlite3, which is deficient because it lacks rtree.
+# \todo Enhance pkgsrc to be able to declare that modules are needed.
+#BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.36.0
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/netcdf/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../geography/geos/buildlink3.mk"
+.include "../../geography/proj/buildlink3.mk"
+.include "../../geography/libgeotiff/buildlink3.mk"
+.include "../../math/qhull/buildlink3.mk"
+.include "../../graphics/giflib/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/openjpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+# \todo See USE_JSONC_INTERNAL in Makefile.common.
+# .include "../../textproc/json-c/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/xerces-c/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/gdal-lib/Makefile.common b/gdal-lib/Makefile.common
new file mode 100644
index 0000000000..ca7e2cfd2c
--- /dev/null
+++ b/gdal-lib/Makefile.common
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile.common,v 1.26 2024/05/21 18:21:33 gdt Exp $
+#
+# used by geography/gdal-lib/Makefile
+# used by geography/py-gdal/Makefile
+
+VERSION_BASE= 3.9.0
+# Accomodate testing unreleased versions.
+#VERSION_RC= rc1
+VERSION= ${VERSION_BASE}${VERSION_RC}
+DISTNAME= gdal-${VERSION}
+EXTRACT_SUFX= .tar.xz
+CATEGORIES= geography
+MASTER_SITES= https://download.osgeo.org/gdal/${VERSION_BASE}/
+
+MAINTAINER= gdt%NetBSD.org@localhost
+#MAINTAINER+= brook%nmsu.edu@localhost
+HOMEPAGE= http://gdal.org/
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/gdal-${VERSION_BASE}
+
+PATCHDIR= ${.CURDIR}/../../geography/gdal-lib/patches
+DISTINFO_FILE= ${.CURDIR}/../../geography/gdal-lib/distinfo
+
+CHECK_PORTABILITY_SKIP+= mkbindist.sh
diff --git a/gdal-lib/PLIST b/gdal-lib/PLIST
new file mode 100644
index 0000000000..97eb5d8fb0
--- /dev/null
+++ b/gdal-lib/PLIST
@@ -0,0 +1,340 @@
+@comment $NetBSD: PLIST,v 1.22 2024/05/21 13:36:10 gdt Exp $
+bin/gdal-config
+bin/gdal_contour
+bin/gdal_create
+bin/gdal_footprint
+bin/gdal_grid
+bin/gdal_rasterize
+bin/gdal_translate
+bin/gdal_viewshed
+bin/gdaladdo
+bin/gdalbuildvrt
+bin/gdaldem
+bin/gdalenhance
+bin/gdalinfo
+bin/gdallocationinfo
+bin/gdalmanage
+bin/gdalmdiminfo
+bin/gdalmdimtranslate
+bin/gdalsrsinfo
+bin/gdaltindex
+bin/gdaltransform
+bin/gdalwarp
+bin/gnmanalyse
+bin/gnmmanage
+bin/nearblack
+bin/ogr2ogr
+bin/ogrinfo
+bin/ogrlineref
+bin/ogrtindex
+bin/sozip
+include/cpl_atomic_ops.h
+include/cpl_auto_close.h
+include/cpl_compressor.h
+include/cpl_config.h
+include/cpl_config_extras.h
+include/cpl_conv.h
+include/cpl_csv.h
+include/cpl_error.h
+include/cpl_hash_set.h
+include/cpl_http.h
+include/cpl_json.h
+include/cpl_list.h
+include/cpl_minixml.h
+include/cpl_multiproc.h
+include/cpl_port.h
+include/cpl_progress.h
+include/cpl_quad_tree.h
+include/cpl_spawn.h
+include/cpl_string.h
+include/cpl_time.h
+include/cpl_virtualmem.h
+include/cpl_vsi.h
+include/cpl_vsi_error.h
+include/cpl_vsi_virtual.h
+include/cplkeywordparser.h
+include/gdal.h
+include/gdal_alg.h
+include/gdal_alg_priv.h
+include/gdal_csv.h
+include/gdal_frmts.h
+include/gdal_mdreader.h
+include/gdal_pam.h
+include/gdal_priv.h
+include/gdal_proxy.h
+include/gdal_rat.h
+include/gdal_simplesurf.h
+include/gdal_utils.h
+include/gdal_version.h
+include/gdal_vrt.h
+include/gdalcachedpixelaccessor.h
+include/gdalgeorefpamdataset.h
+include/gdalgrid.h
+include/gdalgrid_priv.h
+include/gdaljp2abstractdataset.h
+include/gdaljp2metadata.h
+include/gdalpansharpen.h
+include/gdalsubdatasetinfo.h
+include/gdalwarper.h
+include/gnm.h
+include/gnm_api.h
+include/gnmgraph.h
+include/memdataset.h
+include/ogr_api.h
+include/ogr_core.h
+include/ogr_feature.h
+include/ogr_featurestyle.h
+include/ogr_geocoding.h
+include/ogr_geomcoordinateprecision.h
+include/ogr_geometry.h
+include/ogr_p.h
+include/ogr_recordbatch.h
+include/ogr_spatialref.h
+include/ogr_srs_api.h
+include/ogr_swq.h
+include/ogrsf_frmts.h
+include/rawdataset.h
+include/vrtdataset.h
+lib/cmake/gdal/GDAL-targets-noconfig.cmake
+lib/cmake/gdal/GDAL-targets.cmake
+lib/cmake/gdal/GDALConfig.cmake
+lib/cmake/gdal/GDALConfigVersion.cmake
+lib/gdalplugins/drivers.ini
+lib/libgdal.so
+lib/libgdal.so.35
+lib/libgdal.so.35.${PKGVERSION}
+lib/pkgconfig/gdal.pc
+man/man1/gdal-config.1
+man/man1/gdal2tiles.1
+man/man1/gdal_calc.1
+man/man1/gdal_contour.1
+man/man1/gdal_create.1
+man/man1/gdal_edit.1
+man/man1/gdal_fillnodata.1
+man/man1/gdal_footprint.1
+man/man1/gdal_grid.1
+man/man1/gdal_merge.1
+man/man1/gdal_pansharpen.1
+man/man1/gdal_polygonize.1
+man/man1/gdal_proximity.1
+man/man1/gdal_rasterize.1
+man/man1/gdal_retile.1
+man/man1/gdal_sieve.1
+man/man1/gdal_translate.1
+man/man1/gdal_viewshed.1
+man/man1/gdaladdo.1
+man/man1/gdalbuildvrt.1
+man/man1/gdalcompare.1
+man/man1/gdaldem.1
+man/man1/gdalinfo.1
+man/man1/gdallocationinfo.1
+man/man1/gdalmanage.1
+man/man1/gdalmdiminfo.1
+man/man1/gdalmdimtranslate.1
+man/man1/gdalmove.1
+man/man1/gdalsrsinfo.1
+man/man1/gdaltindex.1
+man/man1/gdaltransform.1
+man/man1/gdalwarp.1
+man/man1/gnmanalyse.1
+man/man1/gnmmanage.1
+man/man1/nearblack.1
+man/man1/ogr2ogr.1
+man/man1/ogr_layer_algebra.1
+man/man1/ogrinfo.1
+man/man1/ogrlineref.1
+man/man1/ogrmerge.1
+man/man1/ogrtindex.1
+man/man1/pct2rgb.1
+man/man1/rgb2pct.1
+man/man1/sozip.1
+share/bash-completion/completions/gdal-config
+share/bash-completion/completions/gdal2tiles.py
+share/bash-completion/completions/gdal2xyz.py
+share/bash-completion/completions/gdal_calc.py
+share/bash-completion/completions/gdal_contour
+share/bash-completion/completions/gdal_create
+share/bash-completion/completions/gdal_edit.py
+share/bash-completion/completions/gdal_fillnodata.py
+share/bash-completion/completions/gdal_grid
+share/bash-completion/completions/gdal_merge.py
+share/bash-completion/completions/gdal_polygonize.py
+share/bash-completion/completions/gdal_proximity.py
+share/bash-completion/completions/gdal_rasterize
+share/bash-completion/completions/gdal_retile.py
+share/bash-completion/completions/gdal_sieve.py
+share/bash-completion/completions/gdal_translate
+share/bash-completion/completions/gdal_viewshed
+share/bash-completion/completions/gdaladdo
+share/bash-completion/completions/gdalbuildvrt
+share/bash-completion/completions/gdalchksum.py
+share/bash-completion/completions/gdalcompare.py
+share/bash-completion/completions/gdaldem
+share/bash-completion/completions/gdalenhance
+share/bash-completion/completions/gdalident.py
+share/bash-completion/completions/gdalimport.py
+share/bash-completion/completions/gdalinfo
+share/bash-completion/completions/gdallocationinfo
+share/bash-completion/completions/gdalmanage
+share/bash-completion/completions/gdalmove.py
+share/bash-completion/completions/gdalsrsinfo
+share/bash-completion/completions/gdaltindex
+share/bash-completion/completions/gdaltransform
+share/bash-completion/completions/gdalwarp
+share/bash-completion/completions/ogr2ogr
+share/bash-completion/completions/ogrinfo
+share/bash-completion/completions/ogrlineref
+share/bash-completion/completions/ogrmerge.py
+share/bash-completion/completions/ogrtindex
+share/gdal/GDALLogoBW.svg
+share/gdal/GDALLogoColor.svg
+share/gdal/GDALLogoGS.svg
+share/gdal/LICENSE.TXT
+share/gdal/MM_m_idofic.csv
+share/gdal/cubewerx_extra.wkt
+share/gdal/default.rsc
+share/gdal/ecw_cs.wkt
+share/gdal/eedaconf.json
+share/gdal/epsg.wkt
+share/gdal/esri_StatePlane_extra.wkt
+share/gdal/gdalicon.png
+share/gdal/gdalinfo_output.schema.json
+share/gdal/gdalmdiminfo_output.schema.json
+share/gdal/gdaltileindex.xsd
+share/gdal/gdalvrt.xsd
+share/gdal/gfs.xsd
+share/gdal/gml_registry.xml
+share/gdal/gml_registry.xsd
+share/gdal/gmlasconf.xml
+share/gdal/gmlasconf.xsd
+share/gdal/grib2_center.csv
+share/gdal/grib2_process.csv
+share/gdal/grib2_subcenter.csv
+share/gdal/grib2_table_4_2_0_0.csv
+share/gdal/grib2_table_4_2_0_1.csv
+share/gdal/grib2_table_4_2_0_13.csv
+share/gdal/grib2_table_4_2_0_14.csv
+share/gdal/grib2_table_4_2_0_15.csv
+share/gdal/grib2_table_4_2_0_16.csv
+share/gdal/grib2_table_4_2_0_17.csv
+share/gdal/grib2_table_4_2_0_18.csv
+share/gdal/grib2_table_4_2_0_19.csv
+share/gdal/grib2_table_4_2_0_190.csv
+share/gdal/grib2_table_4_2_0_191.csv
+share/gdal/grib2_table_4_2_0_2.csv
+share/gdal/grib2_table_4_2_0_20.csv
+share/gdal/grib2_table_4_2_0_21.csv
+share/gdal/grib2_table_4_2_0_3.csv
+share/gdal/grib2_table_4_2_0_4.csv
+share/gdal/grib2_table_4_2_0_5.csv
+share/gdal/grib2_table_4_2_0_6.csv
+share/gdal/grib2_table_4_2_0_7.csv
+share/gdal/grib2_table_4_2_10_0.csv
+share/gdal/grib2_table_4_2_10_1.csv
+share/gdal/grib2_table_4_2_10_191.csv
+share/gdal/grib2_table_4_2_10_2.csv
+share/gdal/grib2_table_4_2_10_3.csv
+share/gdal/grib2_table_4_2_10_4.csv
+share/gdal/grib2_table_4_2_1_0.csv
+share/gdal/grib2_table_4_2_1_1.csv
+share/gdal/grib2_table_4_2_1_2.csv
+share/gdal/grib2_table_4_2_20_0.csv
+share/gdal/grib2_table_4_2_20_1.csv
+share/gdal/grib2_table_4_2_20_2.csv
+share/gdal/grib2_table_4_2_2_0.csv
+share/gdal/grib2_table_4_2_2_3.csv
+share/gdal/grib2_table_4_2_2_4.csv
+share/gdal/grib2_table_4_2_2_5.csv
+share/gdal/grib2_table_4_2_2_6.csv
+share/gdal/grib2_table_4_2_3_0.csv
+share/gdal/grib2_table_4_2_3_1.csv
+share/gdal/grib2_table_4_2_3_2.csv
+share/gdal/grib2_table_4_2_3_3.csv
+share/gdal/grib2_table_4_2_3_4.csv
+share/gdal/grib2_table_4_2_3_5.csv
+share/gdal/grib2_table_4_2_3_6.csv
+share/gdal/grib2_table_4_2_4_0.csv
+share/gdal/grib2_table_4_2_4_1.csv
+share/gdal/grib2_table_4_2_4_10.csv
+share/gdal/grib2_table_4_2_4_2.csv
+share/gdal/grib2_table_4_2_4_3.csv
+share/gdal/grib2_table_4_2_4_4.csv
+share/gdal/grib2_table_4_2_4_5.csv
+share/gdal/grib2_table_4_2_4_6.csv
+share/gdal/grib2_table_4_2_4_7.csv
+share/gdal/grib2_table_4_2_4_8.csv
+share/gdal/grib2_table_4_2_4_9.csv
+share/gdal/grib2_table_4_2_local_Canada.csv
+share/gdal/grib2_table_4_2_local_HPC.csv
+share/gdal/grib2_table_4_2_local_MRMS.csv
+share/gdal/grib2_table_4_2_local_NCEP.csv
+share/gdal/grib2_table_4_2_local_NDFD.csv
+share/gdal/grib2_table_4_2_local_index.csv
+share/gdal/grib2_table_4_5.csv
+share/gdal/grib2_table_versions.csv
+share/gdal/gt_datum.csv
+share/gdal/gt_ellips.csv
+share/gdal/header.dxf
+share/gdal/inspire_cp_BasicPropertyUnit.gfs
+share/gdal/inspire_cp_CadastralBoundary.gfs
+share/gdal/inspire_cp_CadastralParcel.gfs
+share/gdal/inspire_cp_CadastralZoning.gfs
+share/gdal/jpfgdgml_AdmArea.gfs
+share/gdal/jpfgdgml_AdmBdry.gfs
+share/gdal/jpfgdgml_AdmPt.gfs
+share/gdal/jpfgdgml_BldA.gfs
+share/gdal/jpfgdgml_BldL.gfs
+share/gdal/jpfgdgml_Cntr.gfs
+share/gdal/jpfgdgml_CommBdry.gfs
+share/gdal/jpfgdgml_CommPt.gfs
+share/gdal/jpfgdgml_Cstline.gfs
+share/gdal/jpfgdgml_ElevPt.gfs
+share/gdal/jpfgdgml_GCP.gfs
+share/gdal/jpfgdgml_LeveeEdge.gfs
+share/gdal/jpfgdgml_RailCL.gfs
+share/gdal/jpfgdgml_RdASL.gfs
+share/gdal/jpfgdgml_RdArea.gfs
+share/gdal/jpfgdgml_RdCompt.gfs
+share/gdal/jpfgdgml_RdEdg.gfs
+share/gdal/jpfgdgml_RdMgtBdry.gfs
+share/gdal/jpfgdgml_RdSgmtA.gfs
+share/gdal/jpfgdgml_RvrMgtBdry.gfs
+share/gdal/jpfgdgml_SBAPt.gfs
+share/gdal/jpfgdgml_SBArea.gfs
+share/gdal/jpfgdgml_SBBdry.gfs
+share/gdal/jpfgdgml_WA.gfs
+share/gdal/jpfgdgml_WL.gfs
+share/gdal/jpfgdgml_WStrA.gfs
+share/gdal/jpfgdgml_WStrL.gfs
+share/gdal/netcdf_config.xsd
+share/gdal/nitf_spec.xml
+share/gdal/nitf_spec.xsd
+share/gdal/ogrinfo_output.schema.json
+share/gdal/ogrvrt.xsd
+share/gdal/osmconf.ini
+share/gdal/ozi_datum.csv
+share/gdal/ozi_ellips.csv
+share/gdal/pci_datum.txt
+share/gdal/pci_ellips.txt
+share/gdal/pdfcomposition.xsd
+share/gdal/pds4_template.xml
+share/gdal/plscenesconf.json
+share/gdal/ruian_vf_ob_v1.gfs
+share/gdal/ruian_vf_st_uvoh_v1.gfs
+share/gdal/ruian_vf_st_v1.gfs
+share/gdal/ruian_vf_v1.gfs
+share/gdal/s57agencies.csv
+share/gdal/s57attributes.csv
+share/gdal/s57expectedinput.csv
+share/gdal/s57objectclasses.csv
+share/gdal/seed_2d.dgn
+share/gdal/seed_3d.dgn
+share/gdal/stateplane.csv
+share/gdal/tms_LINZAntarticaMapTileGrid.json
+share/gdal/tms_MapML_APSTILE.json
+share/gdal/tms_MapML_CBMTILE.json
+share/gdal/tms_NZTM2000.json
+share/gdal/trailer.dxf
+share/gdal/vdv452.xml
+share/gdal/vdv452.xsd
+share/gdal/vicar.json
diff --git a/gdal-lib/buildlink3.mk b/gdal-lib/buildlink3.mk
new file mode 100644
index 0000000000..cff1b1e736
--- /dev/null
+++ b/gdal-lib/buildlink3.mk
@@ -0,0 +1,40 @@
+# $NetBSD: buildlink3.mk,v 1.86 2024/05/16 06:14:58 wiz Exp $
+
+BUILDLINK_TREE+= gdal-lib
+
+.if !defined(GDAL_LIB_BUILDLINK3_MK)
+GDAL_LIB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gdal-lib+= gdal-lib>=3.0.0
+BUILDLINK_ABI_DEPENDS.gdal-lib+= gdal-lib>=3.5.3nb9
+BUILDLINK_PKGSRCDIR.gdal-lib?= ../../geography/gdal-lib
+
+pkgbase := gdal-lib
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.gdal-lib:Mpgsql}
+.include "../../mk/pgsql.buildlink3.mk"
+.endif
+
+.if ${PKG_BUILD_OPTIONS.gdal-lib:Mmysql}
+.include "../../mk/mysql.buildlink3.mk"
+.endif
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/netcdf/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../geography/geos/buildlink3.mk"
+.include "../../geography/proj/buildlink3.mk"
+.include "../../math/qhull/buildlink3.mk"
+.include "../../geography/libgeotiff/buildlink3.mk"
+.include "../../graphics/giflib/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/openjpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../textproc/xerces-c/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.endif # GDAL_LIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -gdal-lib
diff --git a/gdal-lib/distinfo b/gdal-lib/distinfo
new file mode 100644
index 0000000000..661272fb61
--- /dev/null
+++ b/gdal-lib/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.63 2024/05/21 13:36:10 gdt Exp $
+
+BLAKE2s (gdal-3.9.0.tar.xz) = a69d7dc8e3ffc7336aa73414c9786f211fa4366d5428c14a50df51025bb100ae
+SHA512 (gdal-3.9.0.tar.xz) = 05e50a3898b4c71351125c59b0058eb8213858ef14f213b251dee44638522e7e87ed660d028677803a74728543531b0f438e53a543e6529bb8cdc391e9a09b02
+Size (gdal-3.9.0.tar.xz) = 9081116 bytes
+SHA1 (patch-frmts_grib_degrib_degrib_myutil.c) = 0e046afa236d7e0d6186fe392cb2da05fa5b42c5
diff --git a/gdal-lib/options.mk b/gdal-lib/options.mk
new file mode 100644
index 0000000000..d438941c28
--- /dev/null
+++ b/gdal-lib/options.mk
@@ -0,0 +1,33 @@
+# $NetBSD: options.mk,v 1.7 2024/05/21 13:36:10 gdt Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib
+
+# Note that these are not a mutually-exclusive group.
+PKG_SUPPORTED_OPTIONS= pgsql mysql
+# By default, omit database support, because there isn't an
+# articulated use case and dependency management becomes very painful.
+# For example, depending on pgsql fixes a version, but doesn't put it
+# in the name, and then building postgis fails for all but that one
+# chosen version.
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+. include "../../mk/pgsql.buildlink3.mk"
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_POSTGRESQL=ON
+.else
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_POSTGRESQL=OFF
+.endif
+
+# \todo Fix/test MYSQL
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
+.else
+# The builds says:
+# -- Could NOT find MySQL (missing: MYSQL_LIBRARY MYSQL_INCLUDE_DIR)
+# but cmake -L does not show the option to turn it off.
+.endif
+
+# For now, there is no ODBC option, and hence only the "no ODBC" case.
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_ODBC=OFF
diff --git a/gdal-lib/patches/patch-frmts_grib_degrib_degrib_myutil.c b/gdal-lib/patches/patch-frmts_grib_degrib_degrib_myutil.c
new file mode 100644
index 0000000000..0b0028c250
--- /dev/null
+++ b/gdal-lib/patches/patch-frmts_grib_degrib_degrib_myutil.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-frmts_grib_degrib_degrib_myutil.c,v 1.1 2019/03/09 01:54:59 gdt Exp $
+
+fix build on SunOS
+\todo Explain what's wrong.
+\todo File a ticket and get this fixed upstream.
+
+--- frmts/grib/degrib/degrib/myutil.c.orig 2017-11-20 10:45:40.000000000 +0000
++++ frmts/grib/degrib/degrib/myutil.c
+@@ -23,7 +23,7 @@
+ #ifdef _XOPEN_SOURCE
+ #undef _XOPEN_SOURCE
+ #endif
+-#define _XOPEN_SOURCE 500
++#define _XOPEN_SOURCE 600
+ #endif
+
+ #include <stdlib.h>
diff --git a/py-gdal/DESCR b/py-gdal/DESCR
new file mode 100644
index 0000000000..a391b38f23
--- /dev/null
+++ b/py-gdal/DESCR
@@ -0,0 +1,21 @@
+GDAL is a translator library for raster geospatial data formats that
+is released under an X/MIT style Open Source license. As a library, it
+presents a single abstract data model to the calling application for
+all supported formats. The related OGR library (which lives within
+the GDAL source tree) provides a similar capability for simple
+features vector data. It includes roughly 60 format drivers. Current
+translators include:
+ * GeoTIFF (read/write)
+ * Erdas Imagine (read/write)
+ * ESRI .BIL (read)
+ * .aux labelled raw (read/write)
+ * DTED (read)
+ * SDTS DEM (read)
+ * CEOS (read)
+ * JPEG (read/write)
+ * PNG (read/write)
+ * Geosoft GXF (read)
+ * Arc/Info Binary Grid (read)
+A full list is available at http://www.gdal.org/formats_list.html.
+
+This package is a binding for Python language.
diff --git a/py-gdal/Makefile b/py-gdal/Makefile
new file mode 100644
index 0000000000..e70f3b3986
--- /dev/null
+++ b/py-gdal/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.65 2024/05/21 18:21:33 gdt Exp $
+
+.include "../../geography/gdal-lib/Makefile.common"
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+#PKGREVISION= 0
+
+COMMENT= Translator library for raster geospatial data formats, Python binding
+
+USE_LANGUAGES= c c++
+USE_CC_FEATURES+= c99
+USE_CXX_FEATURES+= c++11
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27 38
+
+WHEEL_NAME= GDAL-${PKGVERSION_NOREV}
+PYSETUPSUBDIR= swig/python
+
+.include "../../mk/bsd.prefs.mk"
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
+
+dont-post-configure:
+ # \todo Figure out why data is here and consider other options for
+ # setuptools to function.
+ #${RM} -rf ${WRKSRC}/swig/python/data
+
+.include "../../geography/gdal-lib/buildlink3.mk"
+# \todo Explain why wheel must be before tool (Python.h not found), or fix
+# documentation of python/foo.mk.
+.include "../../lang/python/wheel.mk"
+.include "../../lang/python/tool.mk"
+.include "../../math/py-numpy/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-gdal/Makefile.cmake b/py-gdal/Makefile.cmake
new file mode 100644
index 0000000000..f57a515642
--- /dev/null
+++ b/py-gdal/Makefile.cmake
@@ -0,0 +1,20 @@
+# The overall plan is to run cmake in the package root, and then just
+# build the bindings.
+
+# The supplied cmakefiles are buggy in that absent spatialite,
+# FindSPATIALITE will find an empty version string and then invoke a
+# REGEX operation with the wrong number of arguments. This is too
+# hard to fix, so tell the build not to build things, and then
+# specifically not to use spatialite. Observting that this isn't
+# enough, set a fake version to avoid cmake trying to find it (badly).
+# This is ok because we don't actually want it at all. Not filed
+# upstream, hoping this isn't as bad in 3.9.
+CMAKE_CONFIGURE_ARGS+= -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF
+CMAKE_CONFIGURE_ARGS+= -DOGR_BUILD_OPTIONAL_DRIVERS=OFF
+CMAKE_CONFIGURE_ARGS+= -DGDAL_USE_SPATIALITE=OFF
+CMAKE_CONFIGURE_ARGS+= -DSPATIALITE_VERSION_STRING=0.0-missing
+
+BUILD_DIRS= swig/python
+
+.include "../../devel/cmake/build.mk"
+
diff --git a/py-gdal/PLIST b/py-gdal/PLIST
new file mode 100644
index 0000000000..bbdbdf793d
--- /dev/null
+++ b/py-gdal/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.6 2024/05/21 18:21:33 gdt Exp $
+${PYSITELIB}/GDAL-0.0.0.dist-info/METADATA
+${PYSITELIB}/GDAL-0.0.0.dist-info/RECORD
+${PYSITELIB}/GDAL-0.0.0.dist-info/WHEEL
+${PYSITELIB}/GDAL-0.0.0.dist-info/top_level.txt
+${PYSITELIB}/osgeo/__init__.py
+${PYSITELIB}/osgeo/__init__.pyc
+${PYSITELIB}/osgeo/__init__.pyo
+${PYSITELIB}/osgeo/gdalnumeric.py
+${PYSITELIB}/osgeo/gdalnumeric.pyc
+${PYSITELIB}/osgeo/gdalnumeric.pyo
Home |
Main Index |
Thread Index |
Old Index