diff --git a/games/0ad/0ad.SlackBuild b/games/0ad/0ad.SlackBuild index 2350f00e5b..b6c52e7c61 100644 --- a/games/0ad/0ad.SlackBuild +++ b/games/0ad/0ad.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for 0.A.D. # -# Copyright 2020-2022 Tim Dickson, Scotland +# Copyright 2020-2023 Tim Dickson, Scotland # Copyright 2016-2017 Reedych # Copyright 2010-2016 Erik W. Hanson, Minneapolis, MN, USA # All rights reserved. @@ -24,12 +24,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#build 3 adds patches for fmt >=v10 + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=0ad VERSION=${VERSION:-0.0.26} RELEASE=${RELEASE:-alpha} -BUILD=${BUILD:-1} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} TMP=${TMP:-/tmp/SBo} @@ -91,6 +93,10 @@ export SDL2_CONFIG="/usr/bin/sdl2-config" mkdir -p cargoh export CARGO_HOME="$TMP/$PRGNAM-$VERSION-$RELEASE/cargoh" +#add patches for fmt>9.1.0 ie. 10.1.1 +sed -i 's/, header.GetType()/, static_cast(header.GetType())/g' source/network/NetMessage.cpp +sed -i 's/, arrayType/, static_cast(arrayType)/g' source/simulation2/serialization/BinarySerializer.cpp + # Fix boost names, include paths and remove isystem. commented stuff is fixed upstream already sed -i 's|-mt||g' build/premake/extern_libs5.lua || exit 1 #sed -i 's|/usr/local/include|/usr/include|' build/premake/{extern_libs5.lua,premake5.lua} || exit 1