diff options
-rw-r--r-- | x11/py-qt4/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/x11/py-qt4/Makefile b/x11/py-qt4/Makefile index e40fdcbba13..f674e63d21a 100644 --- a/x11/py-qt4/Makefile +++ b/x11/py-qt4/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.77 2015/11/23 15:18:19 adam Exp $ +# $NetBSD: Makefile,v 1.78 2016/01/31 08:09:22 dbj Exp $ PKGNAME= ${PYPKGPREFIX}-qt4-${PYQT_VERSION} PYQT_VERSION= 4.11.4 +PKGREVISION= 1 CATEGORIES= x11 python #MASTER_SITES= http://www.riverbankcomputing.com/static/Downloads/PyQt4/ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/} @@ -61,6 +62,19 @@ DISTNAME= PyQt-x11-gpl-${PYQT_VERSION} .include "../../lang/python/extension.mk" +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} == "Darwin" +# configure-ng.py has Darwin specific code to avoid using sys.executable +# that assumes the builtin python when configuring the path in pyuic/pyuic4. +# Instead of patching that out, just do a manual replace-interpreter +# on the configured result +SUBST_CLASSES+= fix-pyuic4 +SUBST_STAGE.fix-pyuic4= post-configure +SUBST_MESSAGE.fix-pyuic4= Fixing python interpreter path in pyuic4 +SUBST_FILES.fix-pyuic4= pyuic/pyuic4 +SUBST_SED.fix-pyuic4= -e 's,python[^ ]*,${PYTHONBIN},' +.endif + CONFIGURE_ARGS+= --verbose do-configure: (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ |