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 osgEarth supports all kinds of data and comes with lots of examples to help you
get up and running quickly and easily. get up and running quickly and easily.
Optional requirements protobuf and rocksdb are recommended for enhanced Some optional requirements are recommended for enhanced functionality
performance. They will be used if detected when osgEarth is built. 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 PRGNAM=osgEarth
SRCNAM=osgearth SRCNAM=osgearth
VERSION=${VERSION:-2.9} VERSION=${VERSION:-2.9}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -56,12 +56,22 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi 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 set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $SRCNAM-$VERSION rm -rf $SRCNAM-$SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$SRCNAM-$VERSION cd $SRCNAM-$SRCNAM-$VERSION
chown -R root:root . chown -R root:root .
@ -73,12 +83,14 @@ find -L . \
mkdir -p build mkdir -p build
cd build cd build
cmake \ cmake .. \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -lX11" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -lX11" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release .. \ -DCMAKE_BUILD_TYPE=Release \
-DDYNAMIC_OSGEARTH=ON -DDYNAMIC_OSGEARTH=ON \
$osgqt
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
cd .. cd ..

View file

@ -1,7 +1,7 @@
PRGNAM="osgEarth" PRGNAM="osgEarth"
VERSION="2.9" VERSION="2.9"
HOMEPAGE="http://osgearth.org/" 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" MD5SUM="87d0ce80a9bb5c8b8ce4ae7b5b257c52"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""