summaryrefslogtreecommitdiff
path: root/gis/osgEarth/osgEarth.SlackBuild
diff options
context:
space:
mode:
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 ..