diff options
Diffstat (limited to 'gis/SFCGAL/SFCGAL.SlackBuild')
-rw-r--r-- | gis/SFCGAL/SFCGAL.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gis/SFCGAL/SFCGAL.SlackBuild b/gis/SFCGAL/SFCGAL.SlackBuild index 0a8fbfd5cb..034f6838bc 100644 --- a/gis/SFCGAL/SFCGAL.SlackBuild +++ b/gis/SFCGAL/SFCGAL.SlackBuild @@ -2,6 +2,7 @@ # SlackBuild script for SFCGAL +# Copyright 2023 Giancarlo Dessi, Cagliari, IT # Copyright 2013-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # @@ -27,11 +28,16 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=SFCGAL -VERSION=${VERSION:-1.3.9} +VERSION=${VERSION:-1.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +WITHOSG=""; +if [[ -f /usr/bin/osgviewer ]] ; then + WITHOSG="-DSFCGAL_WITH_OSG=ON" ; [ "${OSG:-yes}" = "no" ] && WITHOSG=""; +fi + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -40,9 +46,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 @@ -89,10 +92,12 @@ cd build -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DCGAL_USE_AUTOLINK=ON \ -DSFCGAL_BUILD_EXAMPLES=OFF \ -DSFCGAL_BUILD_TESTS=OFF \ + $WITHOSG \ .. - + make make install DESTDIR=$PKG cd .. |