aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-ncurses/Makefile
blob: 007e5efb2d6465e5944820b258abe2d3e095b290 (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
# Created by: adsharma@sharams.dhs.org
# $FreeBSD$

PORTNAME=   ncurses
PORTVERSION=    0.3
PORTREVISION=   2
CATEGORIES= devel python
MASTER_SITES=   SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pyncurses-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Ncurses binding for Python

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT

USES=       ncurses python
USE_PYTHON= distutils autoplist

post-patch:
.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
    @${REINPLACE_CMD} -e '/^extern int define_key(/d' \
        ${WRKSRC}/ncurses/_curses_wrap.c

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ncurses/*.so

.include <bsd.port.mk>