Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gis/osm2pgsql: Updated for version 2.0.0. #8968

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gis/osm2pgsql/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
osm2pgsql is a utility program that converts OpenStreetMap data to
PostGIS-enabled PostgreSQL databases.

Potrace is an optional dependency autodetected.

Since version 1.10.0 osm2pgsql needs a 64 bit architecture. For 32 bit
architectures you have to install osm2pgsql-legacy.
17 changes: 15 additions & 2 deletions gis/osm2pgsql/osm2pgsql.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=osm2pgsql
VERSION=${VERSION:-1.11.0}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions gis/osm2pgsql/osm2pgsql.info
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PRGNAM="osm2pgsql"
VERSION="1.11.0"
VERSION="2.0.0"
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"
DOWNLOAD_x86_64="https://github.com/osm2pgsql-dev/osm2pgsql/archive/2.0.0/osm2pgsql-2.0.0.tar.gz"
MD5SUM_x86_64="266c026e98575e8c9ddc5b495575343b"
REQUIRES="luajit nlohmann_json postgis"
MAINTAINER="Giancarlo Dessi"
EMAIL="[email protected]"