diff options
-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 d054764324..141c565845 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 e72f00d757..b6a644667c 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 |