mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-17 08:20:31 -04:00
27 lines
849 B
Plaintext
27 lines
849 B
Plaintext
$NetBSD: patch-ac,v 1.10 2012/11/15 19:31:55 adam Exp $
|
|
|
|
Insist on select python version for pkgsrc.
|
|
|
|
--- Modules/FindPythonLibs.cmake.orig 2012-08-09 18:15:19.000000000 +0000
|
|
+++ Modules/FindPythonLibs.cmake
|
|
@@ -67,11 +67,18 @@ ELSE(PythonLibs_FIND_VERSION)
|
|
set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS})
|
|
endif()
|
|
|
|
+# for pkgsrc: force Python version (set in pyversion.mk)
|
|
+if(DEFINED PYVERSSUFFIX)
|
|
+ set(_VERSIONS ${PYVERSSUFFIX})
|
|
+else()
|
|
+ set(_VERSIONS ${_PYTHON2_VERSIONS} ${_PYTHON3_VERSIONS})
|
|
+endif()
|
|
+
|
|
# Set up the versions we know about, in the order we will search. Always add
|
|
# the user supplied additional versions to the front.
|
|
set(_Python_VERSIONS
|
|
${Python_ADDITIONAL_VERSIONS}
|
|
- ${_PYTHON_FIND_OTHER_VERSIONS}
|
|
+ ${_VERSIONS}
|
|
)
|
|
|
|
unset(_PYTHON_FIND_OTHER_VERSIONS)
|