6ff243b328
Should fix a building problem reported by Kent Polk.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2002/01/31 15:48:10 drochner Exp $
|
|
#
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-Tk-0
|
|
CATEGORIES= x11
|
|
|
|
MAINTAINER= tsarna@netbsd.org
|
|
HOMEPAGE= http://www.python.org/topics/tkinter/
|
|
COMMENT= Tkinter -- Python interface to Tcl/Tk
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_tkinter.c \
|
|
${PYSUBDIR}/Modules/tkappinit.c
|
|
PYDISTUTILSPKG= yes
|
|
PYBINMODULE= yes
|
|
PY_PATCHPLIST= yes
|
|
|
|
PY_SETUP_SUBST+= BLPREFIX=${BUILDLINK_DIR}
|
|
PY_SETUP_SUBST+= TCLRTPREFIX=${BUILDLINK_PREFIX.tcl}
|
|
PY_SETUP_SUBST+= TKRTPREFIX=${BUILDLINK_PREFIX.tk}
|
|
PY_SETUP_SUBST+= X11PREFIX=${BUILDLINK_X11_DIR}
|
|
PY_SETUP_SUBST+= X11RTPREFIX=${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 "../../lang/tcl/buildlink.mk"
|
|
.include "../../x11/tk/buildlink.mk"
|
|
.include "../../mk/x11.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|