diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-01 23:03:44 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-01 23:03:44 +0000 |
commit | 12981f83ff95b5f73fe8af514445d2b45d8cc0b4 (patch) | |
tree | 465993ed34cba02cd9f2eb1e04405a19127efc33 /devel/py-ncurses | |
parent | Add a workaround to enable building on python2.3. (diff) |
Enable build on python2.3
Notes
Notes:
svn path=/head/; revision=86163
Diffstat (limited to 'devel/py-ncurses')
-rw-r--r-- | devel/py-ncurses/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/devel/py-ncurses/Makefile b/devel/py-ncurses/Makefile index d5a837e72238..81fbf03de536 100644 --- a/devel/py-ncurses/Makefile +++ b/devel/py-ncurses/Makefile @@ -19,5 +19,16 @@ COMMENT= A ncurses binding for Python USE_PYTHON= yes USE_PYDISTUTILS= yes +USE_REINPLACE= yes -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +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 +.endif + +.include <bsd.port.post.mk> |