aboutsummaryrefslogtreecommitdiff
path: root/gis/pgrouting
diff options
context:
space:
mode:
authorGiancarlo Dessi <slack@giand.it>2024-01-18 07:45:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-01-18 07:57:22 +0700
commit861a4997194efeb0f58cdc33c8f1e1e605a7942f (patch)
tree749757ae9879afed4a145b37a0c09f8d72b305a6 /gis/pgrouting
parentbe036e72a517a31ff2d0e428069be843eac37fa4 (diff)
gis/pgrouting: Updated for version 3.6.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/pgrouting')
-rw-r--r--gis/pgrouting/pgrouting.SlackBuild17
-rw-r--r--gis/pgrouting/pgrouting.info12
2 files changed, 18 insertions, 11 deletions
diff --git a/gis/pgrouting/pgrouting.SlackBuild b/gis/pgrouting/pgrouting.SlackBuild
index 1d9a256a7706..dc5af3a9ac0b 100644
--- a/gis/pgrouting/pgrouting.SlackBuild
+++ b/gis/pgrouting/pgrouting.SlackBuild
@@ -2,6 +2,7 @@
# SlackBuild script for pgRouting
+# Copyright 2024 Giancarlo Dessi, Cagliari, IT
# Copyright 2013-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
@@ -27,7 +28,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pgrouting
-VERSION=${VERSION:-3.1.3}
+VERSION=${VERSION:-3.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -81,6 +79,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Prevent cmake warnings in current
+if [ -d /usr/share/cmake-3.28 ]; then
+ CMAKE_POLICY="-DCMAKE_POLICY_DEFAULT_CMP0148=OLD "
+ sed -i ./CMakeLists.txt -e "s/VERSION 3.2 FATAL_ERROR/VERSION 3.5 FATAL_ERROR/g"
+else
+ CMAKE_POLICY=""
+fi
+
mkdir -p build
cd build
cmake \
@@ -88,7 +94,8 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_DOC=${WITH_DOC:-OFF} \
- ..
+ $CMAKE_POLICY \
+ -DCMAKE_BUILD_TYPE=Release ..
make all doc
make install DESTDIR=$PKG
diff --git a/gis/pgrouting/pgrouting.info b/gis/pgrouting/pgrouting.info
index 42e7d073269c..7ceff5f19de8 100644
--- a/gis/pgrouting/pgrouting.info
+++ b/gis/pgrouting/pgrouting.info
@@ -1,10 +1,10 @@
PRGNAM="pgrouting"
-VERSION="3.1.3"
+VERSION="3.6.1"
HOMEPAGE="https://pgrouting.org"
-DOWNLOAD="https://github.com/pgRouting/pgrouting/archive/v3.1.3/pgrouting-3.1.3.tar.gz"
-MD5SUM="fd4a7d8b098ed57c4afb630e4e7d1b13"
+DOWNLOAD="https://github.com/pgRouting/pgrouting/archive/v3.6.1/pgrouting-3.6.1.tar.gz"
+MD5SUM="763ed039292aaab086b299645f4df590"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="CGAL postgis"
-MAINTAINER="Benjamin Trigona-Harany"
-EMAIL="slackbuilds@jaxartes.net"
+REQUIRES="postgis"
+MAINTAINER="Giancarlo Dessi"
+EMAIL="slack@giand.it"