2001-03-13 18:31:41 +01:00
|
|
|
# New ports collection makefile for: pyncurses
|
|
|
|
# Date created: Tue May 16 22:15:11 PDT 2000
|
|
|
|
# Whom: adsharma@sharams.dhs.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-06-20 22:04:31 +02:00
|
|
|
PORTNAME= ncurses
|
2001-03-13 18:31:41 +01:00
|
|
|
PORTVERSION= 0.3
|
2002-06-20 22:04:31 +02:00
|
|
|
PORTREVISION= 1
|
2001-03-13 18:31:41 +01:00
|
|
|
CATEGORIES= devel python
|
2002-06-20 22:04:31 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pyncurses
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= pyncurses-${PORTVERSION}
|
2001-03-13 18:31:41 +01:00
|
|
|
|
2002-11-18 04:48:10 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= A ncurses binding for Python
|
2001-03-13 18:31:41 +01:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2002-04-29 16:01:09 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= pyncurses
|
2001-03-13 18:31:41 +01:00
|
|
|
|
2003-08-02 01:03:44 +02:00
|
|
|
.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
|
2007-04-19 04:46:58 +02:00
|
|
|
.if ${OSVERSION} > 700033 || (${OSVERSION} < 700000 && ${OSVERSION} > 602106)
|
|
|
|
@${REINPLACE_CMD} -e '/^extern int define_key(/d' \
|
|
|
|
${WRKSRC}/ncurses/_curses_wrap.c
|
|
|
|
.endif
|
|
|
|
|
2003-08-02 01:03:44 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|