aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-pivy/files
diff options
context:
space:
mode:
authorChristoph Moench-Tegeder <cmt@FreeBSD.org>2020-01-17 22:16:25 +0000
committerChristoph Moench-Tegeder <cmt@FreeBSD.org>2020-01-17 22:16:25 +0000
commit05a7f8e49baabcf037153aa84a85a06042a1e42f (patch)
treeabc2f57bc7d70cb3b420bd3a8e98926a2fe39827 /graphics/py-pivy/files
parent44d47c7faea88f85899e8b96ebd08f245caea8cb (diff)
downloadports-05a7f8e49baabcf037153aa84a85a06042a1e42f.tar.gz
ports-05a7f8e49baabcf037153aa84a85a06042a1e42f.zip
Notes
Diffstat (limited to 'graphics/py-pivy/files')
-rw-r--r--graphics/py-pivy/files/patch-CMakeLists.txt26
-rw-r--r--graphics/py-pivy/files/patch-setup.py11
2 files changed, 37 insertions, 0 deletions
diff --git a/graphics/py-pivy/files/patch-CMakeLists.txt b/graphics/py-pivy/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..dca4ed6f72f1
--- /dev/null
+++ b/graphics/py-pivy/files/patch-CMakeLists.txt
@@ -0,0 +1,26 @@
+--- CMakeLists.txt.orig 2020-01-12 21:51:59 UTC
++++ CMakeLists.txt
+@@ -2,17 +2,18 @@ project(pivy_cmake_setup NONE)
+ cmake_minimum_required(VERSION 3.5)
+
+
+-find_package(Coin CONFIG REQUIRED)
++find_package(Coin3D REQUIRED)
+
+-if (Coin_INCLUDE_DIR)
++if (COIN3D_INCLUDE_DIRS)
+ MESSAGE(STATUS "COIN_FOUND: true")
+ else()
+ MESSAGE(STATUS "COIN_FOUND: false")
+ endif()
+
+-MESSAGE(STATUS "COIN_INCLUDE_DIR: ${Coin_INCLUDE_DIR}")
+-MESSAGE(STATUS "COIN_LIB_DIR: ${Coin_LIB_DIR}")
+-MESSAGE(STATUS "COIN_VERSION: ${Coin_VERSION}")
++get_filename_component(COIN_LIB_DIR ${COIN3D_LIBRARIES} DIRECTORY)
++MESSAGE(STATUS "COIN_INCLUDE_DIR: ${COIN3D_INCLUDE_DIRS}")
++MESSAGE(STATUS "COIN_LIB_DIR: ${COIN_LIB_DIR}")
++# MESSAGE(STATUS "COIN_VERSION: ${Coin_VERSION}")
+
+
+
diff --git a/graphics/py-pivy/files/patch-setup.py b/graphics/py-pivy/files/patch-setup.py
new file mode 100644
index 000000000000..4e9704738e0d
--- /dev/null
+++ b/graphics/py-pivy/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2020-01-12 21:51:59 UTC
++++ setup.py
+@@ -201,7 +201,7 @@ class pivy_build(build):
+ print(yellow('calling: ' + cmake_command[0] + ' ' + cmake_command[1]))
+ cmake = subprocess.Popen(cmake_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ cmake_out, cmake_err = cmake.communicate()
+- coin_vars = ['COIN_FOUND', 'COIN_VERSION', 'COIN_INCLUDE_DIR', 'COIN_LIB_DIR']
++ coin_vars = ['COIN_FOUND', 'COIN_INCLUDE_DIR', 'COIN_LIB_DIR']
+ soqt_vars = ['SOQT_FOUND', 'SOQT_VERSION', 'SOQT_INCLUDE_DIR', 'SOQT_LIB_DIR']
+ config_dict = {}
+ print(yellow(cmake_out.decode("utf-8")))