summaryrefslogtreecommitdiffstats
path: root/libraries/SimGear/SimGear.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/SimGear/SimGear.SlackBuild')
-rw-r--r--libraries/SimGear/SimGear.SlackBuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/libraries/SimGear/SimGear.SlackBuild b/libraries/SimGear/SimGear.SlackBuild
index 02e0b04b75..2fe3db206d 100644
--- a/libraries/SimGear/SimGear.SlackBuild
+++ b/libraries/SimGear/SimGear.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=SimGear
SRCNAM=simgear
-VERSION=${VERSION:-2019.1.2}
+VERSION=${VERSION:-2018.3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-${VERSION}-rc.tar.?z*
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@@ -70,6 +70,15 @@ 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 {} \;
+# Option to build on -current
+if [ "${CURRENT:-no}" = "yes" ]; then
+ BOOSTOPT="-DBoost_NO_BOOST_CMAKE=ON"
+ # patch for the new boost:
+ patch -p1 < $CWD/simgear-enable-if.patch
+else
+ BOOSTOPT=""
+fi
+
mkdir -p build
cd build
cmake \
@@ -79,6 +88,7 @@ cd build
-DSIMGEAR_SHARED=ON \
-DSYSTEM_EXPAT=ON \
-DENABLE_TESTS=OFF \
+ $BOOSTOPT \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG