diff options
author | dbj <dbj@pkgsrc.org> | 2015-01-27 06:33:46 +0000 |
---|---|---|
committer | dbj <dbj@pkgsrc.org> | 2015-01-27 06:33:46 +0000 |
commit | bddb9c871aef76a534e184141068665810bcffa3 (patch) | |
tree | 55becdffe2e8af95419a51937fec2e805099be7e | |
parent | e1536589930f514687286a7ef9acbec4cb99c058 (diff) | |
download | pkgsrc-bddb9c871aef76a534e184141068665810bcffa3.tar.gz |
manually set CMAKE's PYTHON_INCLUDE_DIR and PYTHON_EXECUTABLE to avoid
it finding the native python versions
-rw-r--r-- | lang/python/pyversion.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 2e2e7b41c9d..6945bf0e5d1 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.115 2014/05/10 04:25:40 obache Exp $ +# $NetBSD: pyversion.mk,v 1.116 2015/01/27 06:33:46 dbj Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -200,6 +200,11 @@ ALL_ENV+= PYTHON=${PYTHONBIN} .if defined(USE_CMAKE) # used by FindPythonInterp.cmake and FindPythonLibs.cmake CMAKE_ARGS+= -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX} +.if ${OPSYS} == "Darwin" +# set this explicitly, as by default it will prefer the built in framework +CMAKE_ARGS+= -DPYTHON_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} +CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN} +.endif .endif .endif # PYTHON_PYVERSION_MK |