pkgsrc/x11/py-Tk/Makefile
jperkin 9e7a1ba4b9 Set USE_GCC_RUNTIME=yes for packages which build shared libraries but do
not use libtool to do so.  This is required to correctly depend upon a
gcc runtime package (e.g. gcc47-libs) when using USE_PKGSRC_GCC_RUNTIME.
2014-03-13 11:08:49 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.60 2014/03/13 11:08:53 jperkin Exp $
PKGNAME= ${PYPKGPREFIX}-Tk-${PY_DISTVERSION}
PKGREVISION= 4
CATEGORIES= x11 python
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wiki.python.org/moin/TkInter
COMMENT= Tkinter -- Python interface to Tcl/Tk
LICENSE= python-software-foundation
USE_GCC_RUNTIME= yes
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_tkinter.c \
${PYSUBDIR}/Modules/tkappinit.c
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PY_SETUP_SUBST+= BLPREFIX=${LOCALBASE}
PY_SETUP_SUBST+= TCLRTPREFIX=${BUILDLINK_PREFIX.tcl}
PY_SETUP_SUBST+= TKRTPREFIX=${BUILDLINK_PREFIX.tk}
PY_SETUP_SUBST+= X11PREFIX=${X11BASE}
PY_SETUP_SUBST+= X11RTPREFIX=${X11BASE}
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
PY_SETUP_SUBST+= X11LIB=
.else
PY_SETUP_SUBST+= X11LIB=\'X11\'
.endif
.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:
set -e; cd ${WRKSRC} && for f in ${PATCHDIR}/patch-*; do \
${PATCH} ${PATCHARGS} --batch <$$f || ${TRUE}; \
done
.include "../../lang/python/srcdist.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"