2022-03-13 15:28:59 +01:00
|
|
|
# $NetBSD: Makefile,v 1.41 2022/03/13 14:28:59 gdt Exp $
|
2017-09-28 02:24:41 +02:00
|
|
|
|
2022-03-13 15:28:59 +01:00
|
|
|
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
|
2005-11-06 11:36:46 +01:00
|
|
|
|
2012-06-06 01:17:32 +02:00
|
|
|
# geos has two libraries:
|
|
|
|
# geos_c (C), which follows normal versioning rules
|
|
|
|
# geos (C++), which uses -release, and changes on every release
|
|
|
|
|
2013-01-23 01:35:12 +01:00
|
|
|
# According to the geos project (as documented in README), the C++
|
|
|
|
# interface should not be directly used and other packages should not
|
Update to 3.7.0:
pkgsrc changes: revise comments about geos C vs C++ library linking in
light of unexpected libtool behavior (which defeats geos's scheme)
Upstream NEWS:
3.7.0 changes
2018-09-10
- New things:
- CAPI: GEOSDistanceIndexed (#795, Dan Baston)
- CAPI: GEOSCoordSeq_isCCW (#870, Dan Baston)
- CAPI: GEOSGeom_getXMin, GEOSGeom_getXMax,
GEOSGeom_getYMin, GEOSGeom_getYMax (#871, Dan Baston)
- CAPI: GEOSFrechetDistance (#797, Shinichi SUGIYAMA)
- CAPI: GEOSReverse (#872, Dan Baston)
- CAPI: GEOSGeomGetZ (#581, J Smith)
- Improvements
- Interruptible snap operation (Paul Ramsey)
- Numerous packaging, doc, and build changes
(Debian group: Bas Couwenberg, Francesco Paolo Lovergine)
(NetBSD: Greg Troxel)
- Allow static library with C API for CMake builds (#878, Dakota Hawkins)
- C++ API changes:
- Require defining USE_UNSTABLE_GEOS_CPP_API for use without
warnings.
- Make C++11 required (Mateusz Loskot)
- Use C++11 unique_ptr, nullptr, and override constructs
(Mateusz Loskot)
- C++11 standard delete on noncopyable
(#851, Vicky Vergara)
- Fix CommonBits::getBit to correctly handle i >= 32
(#834, Kurt Schwehr)
2018-09-11 18:13:29 +02:00
|
|
|
# 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}.
|
|
|
|
#
|
2018-09-11 19:26:52 +02:00
|
|
|
# Packages that need revbumping because of libtool's behavior:
|
2012-11-15 23:07:27 +01:00
|
|
|
# geography/gdal-lib
|
2018-09-11 19:26:52 +02:00
|
|
|
# geography/py-gdal
|
Update to 3.7.0:
pkgsrc changes: revise comments about geos C vs C++ library linking in
light of unexpected libtool behavior (which defeats geos's scheme)
Upstream NEWS:
3.7.0 changes
2018-09-10
- New things:
- CAPI: GEOSDistanceIndexed (#795, Dan Baston)
- CAPI: GEOSCoordSeq_isCCW (#870, Dan Baston)
- CAPI: GEOSGeom_getXMin, GEOSGeom_getXMax,
GEOSGeom_getYMin, GEOSGeom_getYMax (#871, Dan Baston)
- CAPI: GEOSFrechetDistance (#797, Shinichi SUGIYAMA)
- CAPI: GEOSReverse (#872, Dan Baston)
- CAPI: GEOSGeomGetZ (#581, J Smith)
- Improvements
- Interruptible snap operation (Paul Ramsey)
- Numerous packaging, doc, and build changes
(Debian group: Bas Couwenberg, Francesco Paolo Lovergine)
(NetBSD: Greg Troxel)
- Allow static library with C API for CMake builds (#878, Dakota Hawkins)
- C++ API changes:
- Require defining USE_UNSTABLE_GEOS_CPP_API for use without
warnings.
- Make C++11 required (Mateusz Loskot)
- Use C++11 unique_ptr, nullptr, and override constructs
(Mateusz Loskot)
- C++11 standard delete on noncopyable
(#851, Vicky Vergara)
- Fix CommonBits::getBit to correctly handle i >= 32
(#834, Kurt Schwehr)
2018-09-11 18:13:29 +02:00
|
|
|
# Packages that need revbumping because of direct use of the C++ lib:
|
|
|
|
# (none known)
|
2012-06-03 18:05:44 +02:00
|
|
|
|
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
|
2005-11-06 11:36:46 +01:00
|
|
|
|
Update to 3.7.0:
pkgsrc changes: revise comments about geos C vs C++ library linking in
light of unexpected libtool behavior (which defeats geos's scheme)
Upstream NEWS:
3.7.0 changes
2018-09-10
- New things:
- CAPI: GEOSDistanceIndexed (#795, Dan Baston)
- CAPI: GEOSCoordSeq_isCCW (#870, Dan Baston)
- CAPI: GEOSGeom_getXMin, GEOSGeom_getXMax,
GEOSGeom_getYMin, GEOSGeom_getYMax (#871, Dan Baston)
- CAPI: GEOSFrechetDistance (#797, Shinichi SUGIYAMA)
- CAPI: GEOSReverse (#872, Dan Baston)
- CAPI: GEOSGeomGetZ (#581, J Smith)
- Improvements
- Interruptible snap operation (Paul Ramsey)
- Numerous packaging, doc, and build changes
(Debian group: Bas Couwenberg, Francesco Paolo Lovergine)
(NetBSD: Greg Troxel)
- Allow static library with C API for CMake builds (#878, Dakota Hawkins)
- C++ API changes:
- Require defining USE_UNSTABLE_GEOS_CPP_API for use without
warnings.
- Make C++11 required (Mateusz Loskot)
- Use C++11 unique_ptr, nullptr, and override constructs
(Mateusz Loskot)
- C++11 standard delete on noncopyable
(#851, Vicky Vergara)
- Fix CommonBits::getBit to correctly handle i >= 32
(#834, Kurt Schwehr)
2018-09-11 18:13:29 +02:00
|
|
|
USE_LANGUAGES= c c++11
|
2005-11-06 11:36:46 +01:00
|
|
|
|
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.
|
2008-12-11 18:17:57 +01:00
|
|
|
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"
|
2008-12-11 18:17:57 +01:00
|
|
|
|
2005-11-06 11:36:46 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|