pkgsrc/geography/geos/Makefile

54 lines
2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.41 2022/03/13 14:28:59 gdt Exp $
DISTNAME= geos-3.10.2
2011-02-15 10:19:29 +01:00
CATEGORIES= geography
MASTER_SITES= http://download.osgeo.org/geos/
EXTRACT_SUFX= .tar.bz2
# geos has two libraries:
# geos_c (C), which follows normal versioning rules
# geos (C++), which uses -release, and changes on every release
# According to the geos project (as documented in README), the C++
# interface should not be directly used and other packages should not
# link against it. Therefore, in theory pkgsrc would perform a
# recursive revbump when the libgeos_c.so version changes, and would
# generally ignore libgeos.so shlib name changes.
#
# However, libtool explicitly adds dependency_libs, so packages that
# intend to only depend on the C library end up being linked directly
# to the C++ library also. Thus, they need revbumping because of
# libtools {bug or feature}.
#
# Packages that need revbumping because of libtool's behavior:
# geography/gdal-lib
# geography/py-gdal
# Packages that need revbumping because of direct use of the C++ lib:
# (none known)
2011-02-15 10:19:29 +01:00
MAINTAINER= gdt@NetBSD.org
2017-01-22 16:56:07 +01:00
HOMEPAGE= https://trac.osgeo.org/geos
2011-02-15 10:19:29 +01:00
COMMENT= C++ port of the Java Topology Suite (JTS)
LICENSE= gnu-lgpl-v2.1
USE_LANGUAGES= c c++11
geography/geos: Update to 3.10.0 Packaging changes: Use cmake instead of the now-deleted autotools, introducing a regression in "make test" where the installed version is tested instead of the build tree version. Upstream changes: Changes in 3.10.0 2021-10-20 - New things: - CAPI: GEOSDistanceWithin, GEOSPreparedDistanceWithin (#1124, Sandro Santilli) - Output WKT using positional precision with the ryu library (#868, Paul Ramsey) - geosop CLI for GEOS (Martin Davis) - Full doxygen of the C-API (Paul Ramsey) - GeometryFixer class for validity enforcement (Martin Davis, Paul Ramsey) - CAPI: GEOSDensify (Brendan Ward) - CAPI: GEOSCoordSeq_copyFromArrays, GEOSCoordSeq_copyFromBuffer, GEOSCoordSeq_copyToArrays, GEOSCoordSeq_copyToBuffer (Daniel Baston) - CAPI: GEOSMakeValidWithParams new validity enforcement approach from https://github.com/locationtech/jts/pull/704, uses GeometryFixer (Paul Ramsey, Martin Davis) - CAPI: GEOSWKBWriter_getFlavor, GEOSWKBWriter_setFlavor support outputting ISO or Extended WKB flavors (#466, Paul Ramsey) - CAPI: GEOSConstrainedDelaunayTriangulation, builds a constrained triangulation of an input Polygon or MultiPolygon, returning a GeometryCollection(Polygon) of the triangles. - Fixes/Improvements: - Preserve ordering of lines in overlay results (Martin Davis) - Check for invalid geometry before fixing polygonal result in Densifier and DPSimplifier (Martin Davis) - Fix overlay handling of flat interior lines (JTS-685, Martin Davis) - Fix IsValidOp to correctly report invalid nested MultiPolygons (#1112, Martin Davis) - Fix BufferOp to avoid artifacts in certain polygon buffers (#1101, Martin Davis) - Fix IsValidOp to correctly report certain kinds of invalid LinearRings (Martin Davis) - Improve STRtree performance through TemplateSTRtree implementation (Daniel Baston) - Fix DiscreteFrechetDistance to use initial points of input lines (#1128, Martin Davis) - Changes: - Autoconf build system is dropped in favour of CMake See README.md and INSTALL.md for examples of usage - Libtool is no longer used for in favour of CMake Therefor libgeos.la is no longer built/installed - #1094, #1090: Drop inlines.cpp to address duplicate symbols on many platforms (Regina Obe) - GH475: Do not return NaN from GEOSProjectNormalized_r (Paul Ramsey) - GH442: BufferOp now returns unique_ptr<Geometry> result (Paul Ramsey)
2021-10-21 02:25:16 +02:00
USE_CMAKE= yes
#PKG_DEBUG_LEVEL?= 1
# cmake hides what it is doing; ask it to be like traditional builds.
MAKE_FLAGS+= VERBOSE=1
# Note that the new geos cmake build system is broken and misorders
# RPATH for tests, leading to testing the installed geos instead of
# the built geos. Reported upstream via email 202110, and probably
# it's a cmake bug.
TEST_TARGET= check
geography/geos: Update to 3.10.0 Packaging changes: Use cmake instead of the now-deleted autotools, introducing a regression in "make test" where the installed version is tested instead of the build tree version. Upstream changes: Changes in 3.10.0 2021-10-20 - New things: - CAPI: GEOSDistanceWithin, GEOSPreparedDistanceWithin (#1124, Sandro Santilli) - Output WKT using positional precision with the ryu library (#868, Paul Ramsey) - geosop CLI for GEOS (Martin Davis) - Full doxygen of the C-API (Paul Ramsey) - GeometryFixer class for validity enforcement (Martin Davis, Paul Ramsey) - CAPI: GEOSDensify (Brendan Ward) - CAPI: GEOSCoordSeq_copyFromArrays, GEOSCoordSeq_copyFromBuffer, GEOSCoordSeq_copyToArrays, GEOSCoordSeq_copyToBuffer (Daniel Baston) - CAPI: GEOSMakeValidWithParams new validity enforcement approach from https://github.com/locationtech/jts/pull/704, uses GeometryFixer (Paul Ramsey, Martin Davis) - CAPI: GEOSWKBWriter_getFlavor, GEOSWKBWriter_setFlavor support outputting ISO or Extended WKB flavors (#466, Paul Ramsey) - CAPI: GEOSConstrainedDelaunayTriangulation, builds a constrained triangulation of an input Polygon or MultiPolygon, returning a GeometryCollection(Polygon) of the triangles. - Fixes/Improvements: - Preserve ordering of lines in overlay results (Martin Davis) - Check for invalid geometry before fixing polygonal result in Densifier and DPSimplifier (Martin Davis) - Fix overlay handling of flat interior lines (JTS-685, Martin Davis) - Fix IsValidOp to correctly report invalid nested MultiPolygons (#1112, Martin Davis) - Fix BufferOp to avoid artifacts in certain polygon buffers (#1101, Martin Davis) - Fix IsValidOp to correctly report certain kinds of invalid LinearRings (Martin Davis) - Improve STRtree performance through TemplateSTRtree implementation (Daniel Baston) - Fix DiscreteFrechetDistance to use initial points of input lines (#1128, Martin Davis) - Changes: - Autoconf build system is dropped in favour of CMake See README.md and INSTALL.md for examples of usage - Libtool is no longer used for in favour of CMake Therefor libgeos.la is no longer built/installed - #1094, #1090: Drop inlines.cpp to address duplicate symbols on many platforms (Regina Obe) - GH475: Do not return NaN from GEOSProjectNormalized_r (Paul Ramsey) - GH442: BufferOp now returns unique_ptr<Geometry> result (Paul Ramsey)
2021-10-21 02:25:16 +02:00
# pthreads are used in tests only, to validate that the thread-safe
# API to geos, which is not threaded, works. In that API, callers
# provide context so that the library does not use internal state.
# For now, leave it out on the theory that it's found anyway,
# optimizing for the package not the tests.
#.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"