Fix build with python-2.7. From Alexander Nasonov in PR 45122.
This commit is contained in:
parent
b2d989e6b4
commit
c0f77d81c1
1 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.45 2011/05/04 11:38:06 obache Exp $
|
||||
# $NetBSD: Makefile,v 1.46 2011/07/10 16:58:19 wiz Exp $
|
||||
#
|
||||
|
||||
PKGNAME= ${PYPKGPREFIX}-Tk-0
|
||||
|
@ -23,14 +23,18 @@ PY_SETUP_SUBST+= X11PREFIX=${X11BASE}
|
|||
PY_SETUP_SUBST+= X11RTPREFIX=${X11BASE}
|
||||
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
|
||||
|
||||
.include "../../lang/python/extension.mk"
|
||||
|
||||
.if ${_PYTHON_VERSION} >= 27
|
||||
EXTRACT_ELEMENTS+= ${PYSUBDIR}/Modules/tkinter.h
|
||||
.endif
|
||||
|
||||
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
||||
do-patch:
|
||||
(cd ${WRKSRC}; \
|
||||
for f in ${PATCHDIR}/patch-*;do \
|
||||
${PATCH} --batch <$$f || true; \
|
||||
done)
|
||||
for f in ${PATCHDIR}/patch-*; do \
|
||||
${PATCH} ${PATCHARGS} --batch <$$f || true; \
|
||||
done
|
||||
|
||||
.include "../../lang/python/extension.mk"
|
||||
.include "../../lang/python/srcdist.mk"
|
||||
.include "../../lang/tcl/buildlink3.mk"
|
||||
.include "../../x11/tk/buildlink3.mk"
|
||||
|
|
Loading…
Reference in a new issue