mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/warmux: Added a patch to explicitly include zlib header.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
4582e825b1
commit
3cd89eb224
3 changed files with 14 additions and 1 deletions
11
games/warmux/patches/include-zlib.patch
Normal file
11
games/warmux/patches/include-zlib.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff -uNr warmux-11.04.orig/src/graphic/surface.cpp warmux-11.04/src/graphic/surface.cpp
|
||||
--- warmux-11.04.orig/src/graphic/surface.cpp 2011-09-19 09:26:52.392650465 +0200
|
||||
+++ warmux-11.04/src/graphic/surface.cpp 2011-09-19 09:26:19.417648189 +0200
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <SDL_image.h>
|
||||
#include <SDL_rotozoom.h>
|
||||
#include <png.h>
|
||||
+#include <zlib.h>
|
||||
|
||||
#include "graphic/surface.h"
|
||||
#include "tool/math_tools.h"
|
|
@ -73,7 +73,9 @@ find -L . \
|
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Fix building with gcc-4.7.x
|
||||
patch -p1 < $CWD/gcc47.patch
|
||||
patch -p1 < $CWD/patches/gcc47.patch
|
||||
# Explicitly include zlib headers
|
||||
patch -p1 < $CWD/patches/include-zlib.patch
|
||||
# Fix for sdlnet
|
||||
sed -i "s|SDLNet_Read32(buffer)|SDLNet_Read32(const_cast<char*>(buffer))|" \
|
||||
lib/warmux/action/action.cpp
|
||||
|
|
Loading…
Reference in a new issue