games/odamex: Updated for version 0.8.3.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
ae3417f372
commit
dc3c47b63a
|
@ -6,6 +6,7 @@
|
|||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
# 20201024 bkw: update for v0.8.3.
|
||||
# 20191201 bkw: update for v0.8.1.
|
||||
|
||||
# 20140910 bkw:
|
||||
|
@ -21,7 +22,7 @@
|
|||
# - include sample orasrv.cfg from 0.6.4 source (it's gone from 0.7.0)
|
||||
|
||||
PRGNAM=odamex
|
||||
VERSION=${VERSION:-0.8.1}
|
||||
VERSION=${VERSION:-0.8.3}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -79,6 +80,9 @@ sed -i \
|
|||
'/launchercfg_s.odamex_directory *= */s,wxGetCwd(),wxString::FromAscii("/usr/games"),' \
|
||||
odalaunch/src/dlg_main.cpp
|
||||
|
||||
# 20201024 bkw: Not sure why make is exiting with nonzero status after
|
||||
# linking odalaunch. There are no error messages. Adding "-i" to the
|
||||
# make command line is a band-aid for this.
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
|
@ -87,17 +91,22 @@ cd build
|
|||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DwxWidgets_CONFIG_EXECUTABLE=$WXCONFIG \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make VERBOSE=1
|
||||
make -i VERBOSE=1
|
||||
cd ..
|
||||
|
||||
# cmake-based odamex lacks a 'make install' target, do it manually.
|
||||
# Actually, there is one in 0.8.3, but it doesn't work.
|
||||
mkdir -p $PKG/usr/games
|
||||
install -s -m0755 build/client/$PRGNAM $PKG/usr/games
|
||||
install -s -m0755 build/server/odasrv $PKG/usr/games
|
||||
install -s -m0755 build/odalaunch/odalaunch $PKG/usr/games
|
||||
|
||||
mkdir -p $PKG/usr/share/games/doom
|
||||
install -m0644 $PRGNAM.wad $PKG/usr/share/games/doom
|
||||
|
||||
# wad file has moved in the source tree, accomodate either version
|
||||
WAD="$PRGNAM.wad"
|
||||
[ -e "wad/$PRGNAM.wad" ] && WAD="wad/$PRGNAM.wad"
|
||||
install -m0644 $WAD $PKG/usr/share/games/doom
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/tech
|
||||
cp -a CHANGELOG LICENSE MAINTAINERS README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="odamex"
|
||||
VERSION="0.8.1"
|
||||
VERSION="0.8.3"
|
||||
HOMEPAGE="http://odamex.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/odamex/odamex-src-0.8.1.tar.bz2"
|
||||
MD5SUM="5fcc9549a595af5a1a3a9f8b21d0a033"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/odamex/odamex-src-0.8.3.tar.bz2"
|
||||
MD5SUM="c096604173a0d48946f877483520dec1"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="wxGTK3"
|
||||
|
|
Loading…
Reference in New Issue