aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-ncurses/Makefile
blob: c99ce7eb2a6f2b1ebaa9ce17f496cb4ee3860e64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:    pyncurses
# Date created:             Tue May 16 22:15:11 PDT 2000
# Whom:                 adsharma@sharams.dhs.org
#
# $FreeBSD$
#

PORTNAME=   ncurses
PORTVERSION=    0.3
PORTREVISION=   1
CATEGORIES= devel python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyncurses
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pyncurses-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A ncurses binding for Python

USE_PYTHON= yes
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
.endif

.include <bsd.port.post.mk>