aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2018-06-28 16:27:21 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2018-06-28 16:27:21 +0000
commitf18dfc08d575198e7e7a31380e361f9a75e0d9bc (patch)
tree5bb1dabcb6d8c4cd79514d57ce345f28837647b8
parentc3fc98c9a64eb05a319b57a0be5657a948a0985a (diff)
downloadports-f18dfc08d575198e7e7a31380e361f9a75e0d9bc.tar.gz
ports-f18dfc08d575198e7e7a31380e361f9a75e0d9bc.zip
- (Really) fix build with clanf6
Notes
Notes: svn path=/head/; revision=473501
-rw-r--r--games/wop/Makefile2
-rw-r--r--games/wop/files/patch-src_global.cpp17
2 files changed, 18 insertions, 1 deletions
diff --git a/games/wop/Makefile b/games/wop/Makefile
index 752ae27e658e..65af38e3793e 100644
--- a/games/wop/Makefile
+++ b/games/wop/Makefile
@@ -23,7 +23,7 @@ USE_SDL= sdl net mixer ttf image
MAKE_JOBS_UNSAFE= yes
-CXXFLAGS+= -Wno-c++11-narrowing
+CXXFLAGS+= -Wno-c++11-narrowing -Wno-reserved-user-defined-literal
DATAVERSION= 2005-12-21
DESKTOP_ENTRIES="Worms of Prey" \
diff --git a/games/wop/files/patch-src_global.cpp b/games/wop/files/patch-src_global.cpp
new file mode 100644
index 000000000000..e6fc878e1695
--- /dev/null
+++ b/games/wop/files/patch-src_global.cpp
@@ -0,0 +1,17 @@
+--- src/global.cpp.orig 2005-07-21 07:56:31 UTC
++++ src/global.cpp
+@@ -44,10 +44,10 @@
+ #define GREEN(s) s
+ #define RED(s) s
+ #else
+-#define BLACK(s) "\033[0;1m"s"\033[0m"
+-#define BLINKINK_BLACK_ON_RED(s) "\033[05;1;41m"s"\033[0m"
+-#define GREEN(s) "\033[32m"s"\033[0m"
+-#define RED(s) "\033[31m"s"\033[0m"
++#define BLACK(s) "\033[0;1m" s "\033[0m"
++#define BLINKINK_BLACK_ON_RED(s) "\033[05;1;41m" s "\033[0m"
++#define GREEN(s) "\033[32m" s "\033[0m"
++#define RED(s) "\033[31m" s "\033[0m"
+ #endif
+
+ /**********************************************************/