summaryrefslogtreecommitdiff
path: root/gis/osgEarth/osgEarth.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2018-05-30 15:34:51 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-02 07:32:28 +0700
commit0a712518c9f375cb41726f981806e1de0b62bb33 (patch)
tree66469f38fdaa6c7abece9b765799fd2d30acb3dd /gis/osgEarth/osgEarth.SlackBuild
parent6b23339e21f05316b9c24b78c12df9b40232de79 (diff)
downloadslackbuilds-0a712518c9f375cb41726f981806e1de0b62bb33.tar.gz
gis/osgEarth: Added support for osgQt
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'gis/osgEarth/osgEarth.SlackBuild')
-rw-r--r--gis/osgEarth/osgEarth.SlackBuild22
1 files changed, 17 insertions, 5 deletions
diff --git a/gis/osgEarth/osgEarth.SlackBuild b/gis/osgEarth/osgEarth.SlackBuild
index 2677c42388..69fc3f2061 100644
--- a/gis/osgEarth/osgEarth.SlackBuild
+++ b/gis/osgEarth/osgEarth.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=osgEarth
SRCNAM=osgearth
VERSION=${VERSION:-2.9}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -56,12 +56,22 @@ else
LIBDIRSUFFIX=""
fi
+osgqt="";
+echo "OSGQT = $OSGQT"
+if [ "$OSGQT" = "4" ]; then
+ osgqt="-DOSGEARTH_QT_BUILD=ON -DOSGEARTH_QT_VERSION=4"
+elif [ "$OSGQT" = "5" ]; then
+ osgqt="-DOSGEARTH_QT_BUILD=ON -DOSGEARTH_QT_VERSION=5"
+else
+ osgqt=""
+fi
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
+rm -rf $SRCNAM-$SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$SRCNAM-$VERSION
chown -R root:root .
@@ -73,12 +83,14 @@ find -L . \
mkdir -p build
cd build
- cmake \
+ cmake .. \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -lX11" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release .. \
- -DDYNAMIC_OSGEARTH=ON
+ -DCMAKE_BUILD_TYPE=Release \
+ -DDYNAMIC_OSGEARTH=ON \
+ $osgqt
+
make
make install DESTDIR=$PKG
cd ..