1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

converters/osm2pgsql: update 1.11.0 → 2.0.0

This commit is contained in:
Dmitry Marakasov 2024-09-19 23:20:40 +03:00
parent 9449c05974
commit 9188e28a24
3 changed files with 17 additions and 18 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= osm2pgsql
PORTVERSION= 1.11.0
PORTREVISION= 2
PORTVERSION= 2.0.0
CATEGORIES= converters geography
MAINTAINER= amdmi3@FreeBSD.org
@ -16,12 +15,12 @@ NOT_FOR_ARCHS= armv7 i386 powerpc
NOT_FOR_ARCHS_REASON= needs a 64 bit architecture
LIB_DEPENDS= libproj.so:graphics/proj \
libboost_system.so:devel/boost-libs \
libexpat.so:textproc/expat2
BUILD_DEPENDS= ${LOCALBASE}/include/osmium/version.hpp:astro/libosmium \
${LOCALBASE}/include/protozero/version.hpp:devel/protozero \
${LOCALBASE}/include/nlohmann/json.hpp:devel/nlohmann-json \
${LOCALBASE}/include/CLI/Version.hpp:devel/cli11
${LOCALBASE}/include/CLI/Version.hpp:devel/cli11 \
${LOCALBASE}/include/boost/geometry.hpp:devel/boost-libs
USES= cmake compiler:c++17-lang pgsql python:run shebangfix
USE_GITHUB= yes

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1709050981
SHA256 (openstreetmap-osm2pgsql-1.11.0_GH0.tar.gz) = 6b46313813b816f15ce906c04cd4108bbb05362740e0a1a8889055f4e25977d2
SIZE (openstreetmap-osm2pgsql-1.11.0_GH0.tar.gz) = 2722008
TIMESTAMP = 1726776348
SHA256 (openstreetmap-osm2pgsql-2.0.0_GH0.tar.gz) = 05c2355b4a59d03a0f9855b4234a3bdc717b078faee625e73357947d1a82fe89
SIZE (openstreetmap-osm2pgsql-2.0.0_GH0.tar.gz) = 2712209

View File

@ -1,18 +1,18 @@
--- CMakeLists.txt.orig 2023-11-07 15:25:19 UTC
--- CMakeLists.txt.orig 2024-09-19 13:10:47 UTC
+++ CMakeLists.txt
@@ -28,6 +28,7 @@ endif()
@@ -28,6 +28,7 @@ option(BUILD_COVERAGE "Build with coverage" OFF)
option(BUILD_TESTS "Build test suite" OFF)
option(BUILD_COVERAGE "Build with coverage" OFF)
+option(BUILD_GEN "Build gen" OFF)
option(WITH_LUA "Build with Lua support" ON)
+option(BUILD_GEN "Build osm2pgsql-gen" OFF)
option(WITH_LUAJIT "Build with LuaJIT support" OFF)
option(WITH_PROJ "Build with Projection support" ON)
@@ -289,7 +290,6 @@ if (${POTRACE_LIBRARY} STREQUAL "POTRACE_LIBRARY-NOTFO
@@ -253,7 +254,6 @@ else()
message(STATUS "Did not find opencv and/or potrace library. Not building osm2pgsql-gen.")
else()
if (WITH_LUA)
message(STATUS "Found opencv and potrace library. Building osm2pgsql-gen.")
- set(BUILD_GEN 1)
include_directories(SYSTEM ${POTRACE_INCLUDE_DIR})
add_executable(osm2pgsql-gen src/gen/osm2pgsql-gen.cpp
src/gen/canvas.cpp
message(STATUS "Found opencv and potrace library. Building osm2pgsql-gen.")
- set(BUILD_GEN 1)
include_directories(SYSTEM ${POTRACE_INCLUDE_DIR})
add_executable(osm2pgsql-gen src/gen/osm2pgsql-gen.cpp
src/gen/canvas.cpp