pkgsrc/devel/py-curses/Makefile
drochner 04a768f05a use distutils to build the extension module, to make it work with
newer Python versions too,
XXX we have to override the do-patch rule to avoid patch errors
    (we use EXTRACT_ELEMENTS, so we don't generally have all the
     original files)
2002-01-28 09:30:08 +00:00

30 lines
767 B
Makefile

# $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"