aboutsummaryrefslogtreecommitdiff
path: root/games/FlightGear/FlightGear.SlackBuild
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2020-05-15 21:52:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-15 21:52:23 +0700
commitf62ed0a22ce337e6887e3cbbd5a5c75749241b93 (patch)
treee6f5cd4b40fa1de7e81fd8a1728d08a6f313f29b /games/FlightGear/FlightGear.SlackBuild
parent2e20cf24e18b9b02a8a6d53500815c076d53c51c (diff)
downloadslackbuilds-f62ed0a22ce337e6887e3cbbd5a5c75749241b93.tar.xz
games/FlightGear: Updated for version 2020.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/FlightGear/FlightGear.SlackBuild')
-rw-r--r--games/FlightGear/FlightGear.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/games/FlightGear/FlightGear.SlackBuild b/games/FlightGear/FlightGear.SlackBuild
index 52b041b65d3d..a0cc30ea4dc3 100644
--- a/games/FlightGear/FlightGear.SlackBuild
+++ b/games/FlightGear/FlightGear.SlackBuild
@@ -3,6 +3,8 @@
# Copyright before version 2016.3.1 by Diego Pantano <poplin.dp@gmail.com>
# Copyright 2016-2018 Panagiotis Nikolaou, Culver City, CA
+# Copyright 2019, 2020 Lenard Spencer, Orlando, Florida, USA
+
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +26,7 @@
PRGNAM=FlightGear
SRCNAM=flightgear
-VERSION=${VERSION:-2018.3.5}
+VERSION=${VERSION:-2020.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -77,13 +79,18 @@ 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 {} \;
+# patch for the new boost (Thanks Gentoo)
+if [ "${CURRENT:-no}" = "yes" ]; then
+ patch -p1 < $CWD/FlightGear-version.patch
+fi
+
mkdir -p build
cd build
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DEVENT_INPUT:STRING="ON" \
+ -DEVENT_INPUT="ON" \
-DFG_DATA_DIR=/usr/share/${PRGNAM} \
$OPT \
-DCMAKE_BUILD_TYPE=Release ..