diff options
author | Giancarlo Dessi <slack@giand.it> | 2024-01-18 07:48:27 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-21 08:26:51 +0700 |
commit | 5ecb02d104588ac216ca8ef7ddfd98638501fcf7 (patch) | |
tree | efcba42889493e679661b65de7c6403610cd2f01 /gis/osm2pgsql/osm2pgsql.SlackBuild | |
parent | 9b65a74ecb2001830c0716ef357db388915fdea1 (diff) |
gis/osm2pgsql: Updated for version 1.10.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/osm2pgsql/osm2pgsql.SlackBuild')
-rw-r--r-- | gis/osm2pgsql/osm2pgsql.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/gis/osm2pgsql/osm2pgsql.SlackBuild b/gis/osm2pgsql/osm2pgsql.SlackBuild index 546e09feb9fc6..0d6a8a80d82be 100644 --- a/gis/osm2pgsql/osm2pgsql.SlackBuild +++ b/gis/osm2pgsql/osm2pgsql.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for osm2pgsql # Copyright 2013-2021 Benjamin Trigona-Harany +# Copyright 2024 Giancarlo Dessi, Cagliari, IT # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=osm2pgsql -VERSION=${VERSION:-1.4.2} +VERSION=${VERSION:-1.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -37,9 +38,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 @@ -49,22 +47,26 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then +ARCH64="no" +if [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + ARCH64="yes" else - SLKCFLAGS="-O2" + SLKCFLAGS="" LIBDIRSUFFIX="" fi set -e +if [ $ARCH64 = "no" ]; then + echo "*****************************************" + echo "THIS PACKAGE DOES NOT SUPPORT YOUR SYSTEM" + echo "YOU NEED osm2pgsql-legacy package" + echo "*****************************************" + exit 1 +fi + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP |