summaryrefslogtreecommitdiff
path: root/math/py-nlopt/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-04-04 01:04:12 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2024-04-04 01:05:07 -0700
commit9c26f66e0b0eeceee43e3c27cdc594036b569b2e (patch)
treeed52f1daa22d426c4afea6ba27a69ea4dcf591f0 /math/py-nlopt/files/patch-CMakeLists.txt
parentwww/davix: update 0_8_5 → 0_8_6 (diff)
math/py-nlopt: update 2.7.1 → 2.7.1.2
Reported by: portscout
Diffstat (limited to 'math/py-nlopt/files/patch-CMakeLists.txt')
-rw-r--r--math/py-nlopt/files/patch-CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/py-nlopt/files/patch-CMakeLists.txt b/math/py-nlopt/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..482d889f62b6
--- /dev/null
+++ b/math/py-nlopt/files/patch-CMakeLists.txt
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig 2024-04-03 02:23:20 UTC
++++ CMakeLists.txt
+@@ -2,6 +2,8 @@ project(nlopt-python)
+
+ project(nlopt-python)
+
++set(FREEBSD_PYTHON_VER $ENV{FREEBSD_PYTHON_VER})
++
+ set (CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})
+ set (CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/nlopt)
+ set (INSTALL_PYTHON_DIR ${CMAKE_INSTALL_PREFIX})
+@@ -9,7 +11,7 @@ if (NOT WIN32)
+ option (BUILD_SHARED_LIBS OFF)
+
+ if (NOT WIN32)
+- find_package (PythonInterp)
++ find_package (PythonInterp ${FREEBSD_PYTHON_VER} EXACT)
+
+ execute_process(
+ COMMAND