aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-02-05 02:58:58 +0800
committerpawel <pawel@FreeBSD.org>2014-02-05 02:58:58 +0800
commit5dcb573bb1657aff07319aa711b721f4977abd46 (patch)
treec220478ff40a0fd5d48aa0f33d1e07a37e531f34 /games
parenteb609aa75847a76fcc8b91d94c8e657c18f3d5ca (diff)
downloadfreebsd-ports-gnome-5dcb573bb1657aff07319aa711b721f4977abd46.tar.gz
freebsd-ports-gnome-5dcb573bb1657aff07319aa711b721f4977abd46.tar.zst
freebsd-ports-gnome-5dcb573bb1657aff07319aa711b721f4977abd46.zip
Fix build with clang
PR: ports/182037 Submitted by: maintainer MFH: 2014Q1
Diffstat (limited to 'games')
-rw-r--r--games/mangband/Makefile4
-rw-r--r--games/mangband/files/patch-client_main-sdl.c11
2 files changed, 13 insertions, 2 deletions
diff --git a/games/mangband/Makefile b/games/mangband/Makefile
index fb759663e4e6..388461e9e1b2 100644
--- a/games/mangband/Makefile
+++ b/games/mangband/Makefile
@@ -12,8 +12,8 @@ COMMENT= Free online multiplayer real-time roguelike game
ALL_TARGET= mangclient mangband
WRKSRC= ${WRKDIR}/${DISTNAME}/src
GNU_CONFIGURE= yes
-USES= ncurses
-USE_GMAKE= yes
+USES= dos2unix gmake ncurses
+DOS2UNIXFILES= ${WRKSRC}/client/main-sdl.c
MAKE_ARGS= "DATADIR=${DATADIR}"
diff --git a/games/mangband/files/patch-client_main-sdl.c b/games/mangband/files/patch-client_main-sdl.c
new file mode 100644
index 000000000000..400a84c7091b
--- /dev/null
+++ b/games/mangband/files/patch-client_main-sdl.c
@@ -0,0 +1,11 @@
+--- client/main-sdl.c.orig 2014-02-04 19:51:35.412181886 +0100
++++ client/main-sdl.c 2014-02-04 19:51:50.859119136 +0100
+@@ -1031,7 +1031,7 @@
+ //if (td->cx != -1 && td->cy != -1) {
+ // RedrawChar(td->cx, td->cy);
+ // }
+- if (td->cx == x && td->cy == y) return;
++ if (td->cx == x && td->cy == y) return (0);
+ //if (x == -1 && y == -1) return;
+ if (td->cursor_on)
+ {