summaryrefslogtreecommitdiff
path: root/devel/py-curses/Makefile
blob: 53131607398f2ac67c817bf20b3bed7da60db1d5 (plain)
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
# $NetBSD: Makefile,v 1.13 2002/01/28 09:32:54 drochner Exp $
#

PKGNAME=	${PYPKGPREFIX}-curses-0
CATEGORIES=	devel

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://www.python.org/doc/current/lib/module-curses.html
COMMENT=	Curses module for Python

DEPENDS+=	ncurses>=4.2:../../devel/ncurses
EVAL_PREFIX+=	NCURSESDIR=ncurses

EXTRACT_ELEMENTS=	${PYSUBDIR}/Modules/_cursesmodule.c
PYDISTUTILSPKG=	yes
PYBINMODULE=	yes
PY_PATCHPLIST=	yes

PY_SETUP_SUBST=	NCURSESPREFIX=${NCURSESDIR}

# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
	(cd ${WRKSRC}; \
	for f in ${PATCHDIR}/patch-*;do \
	${PATCH} --batch <$$f || true; \
	done)

.include "../../lang/python/srcdist.mk"
.include "../../lang/python/extension.buildlink.mk"
.include "../../mk/bsd.pkg.mk"