summaryrefslogtreecommitdiffstats
path: root/gis/osgEarth/osgEarth.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/osgEarth/osgEarth.SlackBuild')
-rw-r--r--gis/osgEarth/osgEarth.SlackBuild9
1 files changed, 3 insertions, 6 deletions
diff --git a/gis/osgEarth/osgEarth.SlackBuild b/gis/osgEarth/osgEarth.SlackBuild
index fd1e04a158..2677c42388 100644
--- a/gis/osgEarth/osgEarth.SlackBuild
+++ b/gis/osgEarth/osgEarth.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for osgEarth
# Copyright 2012 Alexander Bruy <alexander.bruy@gmail.com>
+# Copyright 2018 Christoph Willing, Brisbane Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +25,7 @@
PRGNAM=osgEarth
SRCNAM=osgearth
-VERSION=${VERSION:-2.8}
+VERSION=${VERSION:-2.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,7 +63,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-cd $SRCNAM-$VERSION
+cd $SRCNAM-$SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,16 +71,12 @@ 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 {} \;
-# https://github.com/gwaldron/osgearth/pull/848
-patch -p1 < $CWD/geos-3_6_1-support.patch
-
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -lX11" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_BUILD_TYPE=Release .. \
-DDYNAMIC_OSGEARTH=ON
make