diff options
author | B. Watson <yalhcru@gmail.com> | 2021-02-15 05:01:06 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-02-21 00:05:06 +0700 |
commit | e2072c21c8c038f3e9a5585516552a31c06e71a5 (patch) | |
tree | 901c05df5b130e8b9ebdd5bd7f1ad72ae49e2ebd /games/megaglest | |
parent | c90a8578ff54a40a69b880dc9b4c3df1a6aef4ff (diff) |
games/megaglest: Fix build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/megaglest')
-rw-r--r-- | games/megaglest/README | 3 | ||||
-rw-r--r-- | games/megaglest/megaglest.SlackBuild | 16 |
2 files changed, 14 insertions, 5 deletions
diff --git a/games/megaglest/README b/games/megaglest/README index d0547643244d1..141c56584502e 100644 --- a/games/megaglest/README +++ b/games/megaglest/README @@ -5,6 +5,3 @@ is setup in one of 16 naturally looking settings, which (like the unit models) are crafted with great appreciation for detail. Optional dependencies: libircclient, miniupnpc, vlc, p7zip - -Note to parallel builders: don't user more than 2 jobs or build -will break. diff --git a/games/megaglest/megaglest.SlackBuild b/games/megaglest/megaglest.SlackBuild index e72f00d757b5d..b6a644667c994 100644 --- a/games/megaglest/megaglest.SlackBuild +++ b/games/megaglest/megaglest.SlackBuild @@ -22,6 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20210215 bkw: modified by SlackBuilds.org: This build was broken for +# *3 years* and nobody ever complained... +# - Add -std=c++11 to CXXFLAGS. +# - Force cmake to use lua 5.1. This fixes the build on systems where +# both lua and (lua52 and/or lua53) are installed. +# - Add -j1 to the 'make install' because the xvfb-run script fails if +# a 2nd instance is started (and get rid of parallel build warning +# in README). + PRGNAM=megaglest VERSION=${VERSION:-3.13.0} BUILD=${BUILD:-1} @@ -82,17 +91,20 @@ patch -p1 < $CWD/megaglest-underlink.patch mkdir build cd build cmake -G "Unix Makefiles" \ + -DLUA_LIBRARY="/usr/lib$LIBDIRSUFFIX/liblua.so" \ + -DLUA_INCLUDE_DIR="/usr/include/" \ + -DLUA_MATH_LIBRARY="/usr/lib$LIBDIRSUFFIX/libm.so" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DWANT_GIT_STAMP=OFF \ -DMEGAGLEST_BIN_INSTALL_PATH:PATH="games/" \ -DMEGAGLEST_MANPAGE_INSTALL_PATH:PATH="man/man6/" \ -DWANT_USE_XercesC:BOOL=ON \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \ -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 - make install DESTDIR=$PKG + make -j1 install DESTDIR=$PKG cd - # Now install the game data |