diff options
author | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
commit | 9ebc325833e858b4295322e10edda22b6b78ac27 (patch) | |
tree | 90dc75fdc9044943dfd98b4e15a2edee6adddb42 /games/0ad/0ad.SlackBuild | |
parent | 2a650741141e819af2ecf2c4da75502b0a18d799 (diff) | |
download | slackbuilds-b9c1afb87d8085cf3672ef9e5dcd3255326aca01.tar.gz |
20190416.1 global branch merge.current-20190416.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/0ad/0ad.SlackBuild')
-rw-r--r-- | games/0ad/0ad.SlackBuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/games/0ad/0ad.SlackBuild b/games/0ad/0ad.SlackBuild index 524b16e406..18b7983b5d 100644 --- a/games/0ad/0ad.SlackBuild +++ b/games/0ad/0ad.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=0ad -VERSION=${VERSION:-0.0.21} +VERSION=${VERSION:-0.0.23} RELEASE=${RELEASE:-alpha} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,26 +71,32 @@ 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 {} \; +unset CPPFLAGS + export CFLAGS="$SLKCFLAGS" -export CXXFLAGS="$SLKCFLAGS -fpermissive" -# and yes, it's really necessary to set CPPFLAGS like this :( -export CPPFLAGS="$SLKCFLAGS -fpermissive" +export CXXFLAGS="$SLKCFLAGS -DU_USING_ICU_NAMESPACE=1" export LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" +export SDL2_CONFIG="/usr/bin/sdl2-config" -# Fix boost names -sed -i 's/-mt//g' build/premake/extern_libs4.lua +# Fix boost names, include paths and remove isystem +sed -i 's|-mt||g' build/premake/extern_libs5.lua +sed -i 's|/usr/local/include|/usr/include|' build/premake/{extern_libs5.lua,premake5.lua} +sed -i 's|-isystem |-I|' build/premake/premake5/{src/tools/gcc.lua,tests/tools/test_gcc.lua} # build/workspaces/update-workspaces.sh # have a root check, let's disable it. patch -p1 < $CWD/disable-root-check.patch build/workspaces/update-workspaces.sh \ + --without-pch \ --bindir=/usr/games \ --datadir=/usr/share/games/0ad \ --libdir=/usr/lib${LIBDIRSUFFIX}/0ad \ --${ATLAS:-disable}-atlas -make CONFIG=Release -C build/workspaces/gcc +sed -i 's|-isystem |-I|g' build/workspaces/gcc/*.make + +verbose=1 make CONFIG=Release -C build/workspaces/gcc mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/0ad cp binaries/system/*.so* $PKG/usr/lib${LIBDIRSUFFIX}/0ad |