diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-28 17:34:29 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-28 17:34:29 +0000 |
commit | 2e4b93568bdae86eea4841cfccc57af99d7bfbf1 (patch) | |
tree | a51da8b182360b253f5a002c6833bf22a1cae85e /x11/py-Tk/Makefile | |
parent | cfe2bd46f2bc0d710ff6c2a6e54449bb3d12d6d6 (diff) | |
download | pkgsrc-2e4b93568bdae86eea4841cfccc57af99d7bfbf1.tar.gz |
-move to distutils scheme (but leave the Setup file in place because
there is at least one pkg (graphics/sketch) which needs it
-add buildlink.mk
Diffstat (limited to 'x11/py-Tk/Makefile')
-rw-r--r-- | x11/py-Tk/Makefile | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/x11/py-Tk/Makefile b/x11/py-Tk/Makefile index 7418e7be3a8..4290954399f 100644 --- a/x11/py-Tk/Makefile +++ b/x11/py-Tk/Makefile @@ -1,28 +1,41 @@ -# $NetBSD: Makefile,v 1.18 2002/01/22 18:08:01 drochner Exp $ +# $NetBSD: Makefile,v 1.19 2002/01/28 17:34:29 drochner Exp $ # -DISTNAME= ${PY_DISTNAME} -PKGNAME= py-Tk-${PY_VERSION} +PKGNAME= ${PYPKGPREFIX}-Tk-0 CATEGORIES= x11 -MASTER_SITES= ${PY_MASTER_SITES} MAINTAINER= tsarna@netbsd.org HOMEPAGE= http://www.python.org/topics/tkinter/ COMMENT= Tkinter -- Python interface to Tcl/Tk DEPENDS+= tk>=8.3.2:../../x11/tk +EVAL_PREFIX+= TCLDIR=tcl USE_X11= yes -WRKSRC= ${PY_WRKSRC} -EXTRACT_ELEMENTS= ${PY_MODULES}/_tkinter.c \ - ${PY_MODULES}/tkappinit.c - -do-configure: python-std-do-configure - -do-install: - ${INSTALL_DATA} ${WRKSRC}/_tkinter.so ${PY_LIBDIR}/lib-dynload - ${INSTALL_DATA} ${WRKSRC}/Setup.in ${PY_CONFIGDIR}/Setup.tk - -.include "../../lang/python20/Makefile.inc" +EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_tkinter.c \ + ${PYSUBDIR}/Modules/tkappinit.c +PYDISTUTILSPKG= yes +PYBINMODULE= yes +PY_PATCHPLIST= yes + +PY_SETUP_SUBST+= TCLPREFIX=${TCLDIR} +PY_SETUP_SUBST+= X11PREFIX=${X11BASE} +PLIST_SUBST+= PYLIB=${PYLIB} + +# ignore errors due to missing files (EXTRACT_ELEMENTS!) +do-patch: + (cd ${WRKSRC}; \ + for f in ${PATCHDIR}/patch-*;do \ + ${PATCH} --batch <$$f || true; \ + done) + +# this is needed by graphics/sketch +post-install: + ${SED} -e "s|@LOCALBASE@|${LOCALBASE}|g" \ + -e "s|@X11BASE@|${X11BASE}|g" \ + <${FILESDIR}/Setup.in >${PREFIX}/${PYLIB}/config/Setup.tk + +.include "../../lang/python/extension.buildlink.mk" +.include "../../lang/python/srcdist.mk" .include "../../mk/bsd.pkg.mk" |