aboutsummaryrefslogtreecommitdiffstats
path: root/games/warmux
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2013-10-02 04:04:02 +0800
committermarino <marino@FreeBSD.org>2013-10-02 04:04:02 +0800
commit9acb2fdc1d2dee9e29084692f0732d7db77f7cab (patch)
tree0eb043fa8bad0eeb6e78731d6b1f05be06aaef8d /games/warmux
parent014a8a723a8a0116d4d7b1954ec7f699a3c28a76 (diff)
downloadfreebsd-ports-gnome-9acb2fdc1d2dee9e29084692f0732d7db77f7cab.tar.gz
freebsd-ports-gnome-9acb2fdc1d2dee9e29084692f0732d7db77f7cab.tar.zst
freebsd-ports-gnome-9acb2fdc1d2dee9e29084692f0732d7db77f7cab.zip
games/warmux: add <unistd.h> for modern compilers
The DEBUG option, which is now default, sets the -Werror flag that was removed with a sed replace command for some makefiles. Newer compilers will pick up set-but-unused errors so -Werror really has to be disabled everywhere on newer compilers. Approved by: portmgr (bapt, implicit)
Diffstat (limited to 'games/warmux')
-rw-r--r--games/warmux/Makefile2
-rw-r--r--games/warmux/files/patch-src_main.cpp10
-rw-r--r--games/warmux/files/patch-tools_list__games_main.cpp8
3 files changed, 19 insertions, 1 deletions
diff --git a/games/warmux/Makefile b/games/warmux/Makefile
index bc8c2e01cd0f..6faeff391f3f 100644
--- a/games/warmux/Makefile
+++ b/games/warmux/Makefile
@@ -36,7 +36,7 @@ NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
- ${WRKSRC}/src/Makefile.in
+ ${WRKSRC}/src/Makefile.in ${WRKSRC}/configure
${REINPLACE_CMD} -e "s,warmux_files.desktop,," ${WRKSRC}/data/Makefile.in
${FIND} -d ${WRKSRC}/data/ -name "*.*~" -delete
diff --git a/games/warmux/files/patch-src_main.cpp b/games/warmux/files/patch-src_main.cpp
new file mode 100644
index 000000000000..3356c188addc
--- /dev/null
+++ b/games/warmux/files/patch-src_main.cpp
@@ -0,0 +1,10 @@
+--- src/main.cpp.orig 2011-04-28 19:03:06.000000000 +0000
++++ src/main.cpp
+@@ -21,6 +21,7 @@
+
+ #include <WARMUX_singleton.h>
+ #include <getopt.h>
++#include <unistd.h>
+ #ifndef WIN32
+ # include <signal.h>
+ #endif
diff --git a/games/warmux/files/patch-tools_list__games_main.cpp b/games/warmux/files/patch-tools_list__games_main.cpp
new file mode 100644
index 000000000000..eb3696fee25e
--- /dev/null
+++ b/games/warmux/files/patch-tools_list__games_main.cpp
@@ -0,0 +1,8 @@
+--- tools/list_games/main.cpp.orig 2011-04-28 19:03:12.000000000 +0000
++++ tools/list_games/main.cpp
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <unistd.h>
+ #include <WARMUX_types.h>
+ #include <WARMUX_network.h>
+ #include <WARMUX_index_server.h>