gis/osgEarth: Added support for osgQt

Signed-off-by: Christoph Willing <chris.willing@linux.com>
This commit is contained in:
Christoph Willing 2018-05-30 15:34:51 +10:00 committed by Willy Sudiarto Raharjo
parent 6b23339e21
commit 0a712518c9
3 changed files with 34 additions and 8 deletions

View file

@ -5,5 +5,19 @@ OpenSceneGraph application, and go!
osgEarth supports all kinds of data and comes with lots of examples to help you
get up and running quickly and easily.
Optional requirements protobuf and rocksdb are recommended for enhanced
performance. They will be used if detected when osgEarth is built.
Some optional requirements are recommended for enhanced functionality
and/or performance. They include:
osgQt, poco, protobuf, rocksdb
For all but osgQt, they will be used if detected when osgEarth is built.
In the case of osgQt, the version of Qt that it was built with is relevant.
If osgQt was built with Qt5, the environment variable OSGQT=5 must be set when
running the osgEarth SlackBuild i.e.
OSGQT=5 sh osgEarth.SlackBuild
In this case, the qt5 package is also an additional build requirement.
If osgQt was built with Qt4 (the standard for Slackware 14.2), set OSGQT=4 i.e.
OSGQT=4 sh osgEarth.SlackBuild
If OSGQT is not set, osgQt support will not be included.

View file

@ -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 ..

View file

@ -1,7 +1,7 @@
PRGNAM="osgEarth"
VERSION="2.9"
HOMEPAGE="http://osgearth.org/"
DOWNLOAD="https://github.com/gwaldron/osgearth/archive/osgearth-2.9.tar.gz"
DOWNLOAD="https://github.com/gwaldron/osgearth/archive/osgearth-2.9/osgearth-2.9.tar.gz"
MD5SUM="87d0ce80a9bb5c8b8ce4ae7b5b257c52"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""