diff options
author | rafan <rafan@FreeBSD.org> | 2007-04-19 10:46:58 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-04-19 10:46:58 +0800 |
commit | f2726da35c7d621ee3d616041755eb0f436b8bed (patch) | |
tree | f812273efffe5d8e9d7ade1191bc2099812edc77 /devel | |
parent | cefeff9c6fd6197ad2ec917b557ce64448a4dbaf (diff) | |
download | freebsd-ports-gnome-f2726da35c7d621ee3d616041755eb0f436b8bed.tar.gz freebsd-ports-gnome-f2726da35c7d621ee3d616041755eb0f436b8bed.tar.zst freebsd-ports-gnome-f2726da35c7d621ee3d616041755eb0f436b8bed.zip |
- Remove define_key() definition when newer ncurses is used
Reported by: pointyhat via kris
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-ncurses/Makefile | 9 |
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> |