mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
gis/merkaartor: new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0901df5be8
commit
62791a7772
3 changed files with 28 additions and 9 deletions
|
@ -2,3 +2,11 @@ Merkaartor is an openstreetmap mapping program.
|
|||
|
||||
Merkaartor focuses on providing a visually pleasing but
|
||||
performant editing environment for free geographical data.
|
||||
|
||||
gpsd is an optional dependency autodetected enabled by default
|
||||
if found in the system. You can disable the support by passing
|
||||
GPSD=no ./merkaartor.SlackBuild
|
||||
|
||||
The option -DWEBENGINE is set to ON by default. You can disable
|
||||
it by passing
|
||||
WEBENGINE=no ./merkaartor.SlackBuild
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for Merkaartor
|
||||
# Slackware build script for merkaartor
|
||||
|
||||
# Written by otzy_007 (oz@oprod.net)
|
||||
# Maintained 2020-2021 by Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||
# Maintained 2023 by Giancarlo Dessi, Cagliari, IT
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -27,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=merkaartor
|
||||
VERSION=${VERSION:-0.19.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -39,14 +40,19 @@ 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
|
||||
fi
|
||||
|
||||
if [ -x /etc/rc.d/rc.gpsd ] ; then
|
||||
gpsd="-DGPSD=ON" ; [ "${GPSD:-yes}" = "no" ] && gpsd=""
|
||||
else
|
||||
gpsd=""
|
||||
fi
|
||||
|
||||
webengine="-DWEBENGINE=ON" ; [ "${WEBENGINE:-yes}" = "no" ] && webengine=""
|
||||
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
@ -80,14 +86,19 @@ 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 {} \;
|
||||
|
||||
# fix build failure in current
|
||||
if [ -f /usr/lib${LIBDIRSUFFIX}/libexiv2.so.0.28* ] ; then
|
||||
sed -i ./src/Docks/GeoImageDock.cpp -e "s/AutoPtr/UniquePtr/g"
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-DMAN_INSTALL_DIR=/usr/man \
|
||||
$gpsd \
|
||||
$webengine \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install/strip DESTDIR=$PKG
|
||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="3696fde6c0521182e9e8c51563d68b94"
|
|||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="gdal"
|
||||
MAINTAINER="Benjamin Trigona-Harany"
|
||||
EMAIL="slackbuilds@jaxartes.net"
|
||||
MAINTAINER="Giancarlo Dessi"
|
||||
EMAIL="slack@giand.it"
|
||||
|
|
Loading…
Reference in a new issue