diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-03-09 18:58:05 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-03-09 18:58:05 +0000 |
commit | e9593a21e277399273232636f3839578b58e8c38 (patch) | |
tree | feaeeae27b37224fb468ca25cf7f443ecebbdc67 /graphics/appleseed/files/patch-cmake_modules_FindPython3.cmake | |
parent | net/freeradius3: Add FLAVORs for LDAP, MYSQL, PGSQL, and SQLITE3 (diff) |
- Fix Python 3.x bindings build and enable them by default
- Add one missing LIB_DEPENDS per the stage Q/A report
- Make symlinks to external programs instead of copying
- Prevent overlinking to libGLU when it is being found
Diffstat (limited to 'graphics/appleseed/files/patch-cmake_modules_FindPython3.cmake')
-rw-r--r-- | graphics/appleseed/files/patch-cmake_modules_FindPython3.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/graphics/appleseed/files/patch-cmake_modules_FindPython3.cmake b/graphics/appleseed/files/patch-cmake_modules_FindPython3.cmake new file mode 100644 index 000000000000..bcaa2f44c44c --- /dev/null +++ b/graphics/appleseed/files/patch-cmake_modules_FindPython3.cmake @@ -0,0 +1,27 @@ +--- cmake/modules/FindPython3.cmake.orig 2019-08-31 15:49:01 UTC ++++ cmake/modules/FindPython3.cmake +@@ -39,19 +39,13 @@ + + include (FindPackageHandleStandardArgs) + +-find_path (PYTHON3_INCLUDE_DIR NAMES Python.h) +-find_library (PYTHON3_LIBRARY NAMES python3) ++find_package(PythonInterp) # provides Python major/minor version vars ++find_package(PythonLibs) + +-# Handle the QUIETLY and REQUIRED arguments and set PYTHON3_FOUND. +-find_package_handle_standard_args (PYTHON3 DEFAULT_MSG +- PYTHON3_INCLUDE_DIR +- PYTHON3_LIBRARY +-) +- + # Set the output variables. +-if (PYTHON3_FOUND) +- set (PYTHON3_INCLUDE_DIRS ${PYTHON3_INCLUDE_DIR}) +- set (PYTHON3_LIBRARIES ${PYTHON3_LIBRARY}) ++if (PYTHONLIBS_FOUND) ++ set (PYTHON3_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR}) ++ set (PYTHON3_LIBRARIES ${PYTHON_LIBRARIES}) + else () + set (PYTHON3_INCLUDE_DIRS) + set (PYTHON3_LIBRARIES) |