summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2016-01-31 08:09:22 +0000
committerdbj <dbj@pkgsrc.org>2016-01-31 08:09:22 +0000
commit8a86dc4c210b378f6deb494c5eba431f57d78ac6 (patch)
tree7577452ab3d904c8a8d5fef5bff62a997a4d1a4e
parent5f42ebe7a0ecf852ba72e6247b6e4b4c39f19a0b (diff)
downloadpkgsrc-8a86dc4c210b378f6deb494c5eba431f57d78ac6.tar.gz
work around Darwin specific configure code that assumes the builtin python interpreter
-rw-r--r--x11/py-qt4/Makefile16
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} \