aboutsummaryrefslogtreecommitdiff
path: root/games/noegnud-nethack-deet
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-10-09 23:09:55 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-10-09 23:09:55 +0000
commit1f71de60b9d031c234c82513c601297c89e2c50a (patch)
tree1f3d6acb7704ba9a4fff91525750d5ffd7fda863 /games/noegnud-nethack-deet
parent736c5e2a1ba52e925da85b11f3a681e7e1858090 (diff)
downloadports-1f71de60b9d031c234c82513c601297c89e2c50a.tar.gz
ports-1f71de60b9d031c234c82513c601297c89e2c50a.zip
- Unbreak
- Fix build with gcc 4.2 PR: 116822 116823 116824 116828 Submitted by: miwi Approved by: maintainer
Notes
Notes: svn path=/head/; revision=201228
Diffstat (limited to 'games/noegnud-nethack-deet')
-rw-r--r--games/noegnud-nethack-deet/Makefile4
-rw-r--r--games/noegnud-nethack-deet/files/patch-noegnud_noegnud_gui.c11
2 files changed, 11 insertions, 4 deletions
diff --git a/games/noegnud-nethack-deet/Makefile b/games/noegnud-nethack-deet/Makefile
index 022337127a96..492fa5a7afb6 100644
--- a/games/noegnud-nethack-deet/Makefile
+++ b/games/noegnud-nethack-deet/Makefile
@@ -35,10 +35,6 @@ INSTALL_TARGET= install_nh342-dt
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
pre-everything::
.if ${HAVE_SDL}
@${ECHO_MSG} "This port depends on SDL with OpenGL support."
diff --git a/games/noegnud-nethack-deet/files/patch-noegnud_noegnud_gui.c b/games/noegnud-nethack-deet/files/patch-noegnud_noegnud_gui.c
new file mode 100644
index 000000000000..420fb13f3009
--- /dev/null
+++ b/games/noegnud-nethack-deet/files/patch-noegnud_noegnud_gui.c
@@ -0,0 +1,11 @@
+--- noegnud/noegnud_gui.c.orig 2007-10-02 14:32:19.000000000 +0200
++++ noegnud/noegnud_gui.c 2007-10-02 14:32:30.000000000 +0200
+@@ -627,7 +627,7 @@
+ //button=(noegnud_gui_tbutton *)noegnud_gui_create_window(parent,x,y,width,height,(sizeof(noegnud_gui_twindow)-sizeof(noegnud_gui_twidget))+datasize);
+
+ text=noegnud_gui_create_text(
+- (noegnud_gui_twidget *)button=(noegnud_gui_tbutton *)noegnud_gui_create_window(
++ button=(noegnud_gui_tbutton *)noegnud_gui_create_window(
+ parent,
+ x,y,
+ width,height,