aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-ncurses
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-ncurses')
-rw-r--r--devel/py-ncurses/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/devel/py-ncurses/Makefile b/devel/py-ncurses/Makefile
index c99ce7eb2a6f..6b95dfda25bd 100644
--- a/devel/py-ncurses/Makefile
+++ b/devel/py-ncurses/Makefile
@@ -22,16 +22,17 @@ USE_PYDISTUTILS= yes
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 700000
-BROKEN= does not work with newer ncurses
-.endif
-
post-patch:
.if ${PYTHON_REL} >= 230
.for f in _curses_wrap.c _panel_wrap.c _menu_wrap.c _form_wrap.c
@${REINPLACE_CMD} -e '45s,^.*$$,#include "py_curses.h",' \
${WRKSRC}/ncurses/${f}
.endfor
+.if ${OSVERSION} > 700033 || (${OSVERSION} < 700000 && ${OSVERSION} > 602106)
+ @${REINPLACE_CMD} -e '/^extern int define_key(/d' \
+ ${WRKSRC}/ncurses/_curses_wrap.c
+.endif
+
.endif
.include <bsd.port.post.mk>