pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python pyversion.mk: handle more cmake module goop



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2fa0a0c7169
branches:  trunk
changeset: 450996:a2fa0a0c7169
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Apr 23 19:20:08 2021 +0000

description:
pyversion.mk: handle more cmake module goop

diffstat:

 lang/python/pyversion.mk |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r f11c71c5afae -r a2fa0a0c7169 lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Fri Apr 23 18:18:02 2021 +0000
+++ b/lang/python/pyversion.mk  Fri Apr 23 19:20:08 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.134 2020/12/19 13:12:00 nia Exp $
+# $NetBSD: pyversion.mk,v 1.135 2021/04/23 19:20:08 nia Exp $
 
 # This file determines which Python version is used as a dependency for
 # a package.
@@ -206,6 +206,19 @@
 
 ALL_ENV+=              PYTHON=${PYTHONBIN}
 .if defined(USE_CMAKE)
+# used by FindPython
+CMAKE_ARGS+=           -DPython_EXECUTABLE:FILEPATH=${PYTHONBIN}
+CMAKE_ARGS+=           -DPython_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC}
+# used by FindPython2
+.  if !empty(_PYTHON_VERSION:M2*)
+CMAKE_ARGS+=           -DPython2_EXECUTABLE:FILEPATH=${PYTHONBIN}
+CMAKE_ARGS+=           -DPython2_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC}
+.  endif
+# used by FindPython3
+.  if !empty(_PYTHON_VERSION:M3*)
+CMAKE_ARGS+=           -DPython3_EXECUTABLE:FILEPATH=${PYTHONBIN}
+CMAKE_ARGS+=           -DPython3_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC}
+.  endif
 # used by FindPythonInterp.cmake and FindPythonLibs.cmake
 CMAKE_ARGS+=           -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX}
 # set this explicitly, as by default it will prefer the built in framework



Home | Main Index | Thread Index | Old Index