aboutsummaryrefslogtreecommitdiff
path: root/gis/osm2pgsql
diff options
context:
space:
mode:
Diffstat (limited to 'gis/osm2pgsql')
-rw-r--r--gis/osm2pgsql/README6
-rw-r--r--gis/osm2pgsql/osm2pgsql.SlackBuild19
-rw-r--r--gis/osm2pgsql/osm2pgsql.info8
3 files changed, 26 insertions, 7 deletions
diff --git a/gis/osm2pgsql/README b/gis/osm2pgsql/README
index 4fa8d0224f..e83c5492e6 100644
--- a/gis/osm2pgsql/README
+++ b/gis/osm2pgsql/README
@@ -1,5 +1,11 @@
osm2pgsql is a utility program that converts OpenStreetMap data to
PostGIS-enabled PostgreSQL databases.
+Potrace is an optional dependency autodetected.
+
+Required dependencies autodetected are libosmium, protozero, and fmt.
+If not found in the system, the build will use the bundled versions
+included in the source.
+
Since version 1.10.0 osm2pgsql needs a 64 bit architecture. For 32 bit
architectures you have to install osm2pgsql-legacy.
diff --git a/gis/osm2pgsql/osm2pgsql.SlackBuild b/gis/osm2pgsql/osm2pgsql.SlackBuild
index 66c63ff65a..d5dc21fa25 100644
--- a/gis/osm2pgsql/osm2pgsql.SlackBuild
+++ b/gis/osm2pgsql/osm2pgsql.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for osm2pgsql
# Copyright 2013-2021 Benjamin Trigona-Harany
-# Copyright 2024 Giancarlo Dessi, Cagliari, IT
+# Copyright 2024-2025 Giancarlo Dessi, Cagliari, IT
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,8 +28,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=osm2pgsql
-VERSION=${VERSION:-1.11.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.1.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,6 +70,16 @@ if [ $ARCH64 = "no" ]; then
exit 1
fi
+CMAKEVER=$(cmake --version | head -1 | cut -f3 -d" ")
+CMAKEVER=${CMAKEVER:2:2}
+
+# Prevent cmake warnings in current
+if [ $CMAKEVER = "21" ]; then
+ CMAKE_POLICY=""
+else
+ CMAKE_POLICY="-DCMAKE_POLICY_DEFAULT_CMP0167=OLD "
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -82,6 +92,8 @@ find -L . \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+
+sed -i CMakeLists.txt -e "s/VERSION 3.8/VERSION 3.10/g"
mkdir -p build
cd build
@@ -91,6 +103,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=OFF \
-DWITH_LUAJIT=ON \
+ $CMAKE_POLICY \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
diff --git a/gis/osm2pgsql/osm2pgsql.info b/gis/osm2pgsql/osm2pgsql.info
index c6c549619f..ac1ec9e036 100644
--- a/gis/osm2pgsql/osm2pgsql.info
+++ b/gis/osm2pgsql/osm2pgsql.info
@@ -1,10 +1,10 @@
PRGNAM="osm2pgsql"
-VERSION="1.11.0"
+VERSION="2.1.1"
HOMEPAGE="https://osm2pgsql.org/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/osm2pgsql-dev/osm2pgsql/archive/1.11.0/osm2pgsql-1.11.0.tar.gz"
-MD5SUM_x86_64="20c445875232011522c39c533bfb2f21"
-REQUIRES="luajit nlohmann_json postgis"
+DOWNLOAD_x86_64="https://github.com/osm2pgsql-dev/osm2pgsql/archive/2.1.1/osm2pgsql-2.1.1.tar.gz"
+MD5SUM_x86_64="3b38e0313c7eed09c0a1379064a352e3"
+REQUIRES="luajit nlohmann_json postgis proj"
MAINTAINER="Giancarlo Dessi"
EMAIL="slack@giand.it"