Add py-pivy, a modified version of pivy Coin bindings for Python
This fork has been prepared by the FreeCAD project to support Qt5
This commit is contained in:
@@ -862,6 +862,7 @@
|
||||
SUBDIR += py-photocollage
|
||||
SUBDIR += py-pillow
|
||||
SUBDIR += py-pivy
|
||||
SUBDIR += py-pivy-devel
|
||||
SUBDIR += py-plotly
|
||||
SUBDIR += py-png
|
||||
SUBDIR += py-poppler
|
||||
|
||||
31
graphics/py-pivy-devel/Makefile
Normal file
31
graphics/py-pivy-devel/Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
# Created by: Pedro Giffuni <pfg@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pivy
|
||||
PORTVERSION= 0.6.4
|
||||
CATEGORIES= graphics python
|
||||
PKGNAMESUFFIX= -devel
|
||||
|
||||
MAINTAINER= pfg@FreeBSD.org
|
||||
COMMENT= Python binding for Coin
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BUILD_DEPENDS= cmake:devel/cmake \
|
||||
swig3.0:devel/swig30
|
||||
LIB_DEPENDS= libCoin.so:graphics/Coin \
|
||||
libSoQt.so:x11-toolkits/soqt-devel
|
||||
|
||||
USES= compiler:c11 python:2.7 qt:5
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= FreeCAD
|
||||
USE_PYTHON= autoplist distutils
|
||||
USE_QT= core gui opengl widgets
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
CONFLICTS_INSTALL= py-pivy
|
||||
|
||||
BINARY_ALIAS= swig=swig3.0
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
graphics/py-pivy-devel/distinfo
Normal file
3
graphics/py-pivy-devel/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1549729985
|
||||
SHA256 (FreeCAD-pivy-0.6.4_GH0.tar.gz) = 0b09bc80007b61680ce13b2dd348da6fbaf19795be9a08eeb019ea2a1f51f97e
|
||||
SIZE (FreeCAD-pivy-0.6.4_GH0.tar.gz) = 6614744
|
||||
25
graphics/py-pivy-devel/files/patch-CMakeLists.txt
Normal file
25
graphics/py-pivy-devel/files/patch-CMakeLists.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
--- CMakeLists.txt.orig 2018-06-08 08:15:18 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -2,17 +2,17 @@ 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_DIR)
|
||||
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})
|
||||
+MESSAGE(STATUS "COIN_INCLUDE_DIR: " ${COIN3D_INCLUDE_DIRS})
|
||||
+MESSAGE(STATUS "COIN_LIB_DIR: " ${COIN3D_LIBRARIES})
|
||||
+# MESSAGE(STATUS "COIN_VERSION: " ${COIN3D_VERSION})
|
||||
|
||||
|
||||
|
||||
11
graphics/py-pivy-devel/files/patch-setup.py
Normal file
11
graphics/py-pivy-devel/files/patch-setup.py
Normal file
@@ -0,0 +1,11 @@
|
||||
--- setup.py.orig 2018-06-08 08:15:18 UTC
|
||||
+++ setup.py
|
||||
@@ -203,7 +203,7 @@ class pivy_build(build):
|
||||
print(yellow('calling: ' + cmake_command[0] + ' ' + cmake_command[1]))
|
||||
cmake = subprocess.Popen(cmake_command, stdout=subprocess.PIPE)
|
||||
cmake_out, _ = 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 = {}
|
||||
if cmake.returncode == 0:
|
||||
10
graphics/py-pivy-devel/pkg-descr
Normal file
10
graphics/py-pivy-devel/pkg-descr
Normal file
@@ -0,0 +1,10 @@
|
||||
A Python binding for Coin
|
||||
|
||||
Pivy is a Coin binding for Python. Coin is a high-level 3D graphics library
|
||||
with a C++ Application Programming Interface. Coin uses scene-graph data
|
||||
structures to render real-time graphics suitable for mostly all kinds of
|
||||
scientific and engineering visualization applications.
|
||||
|
||||
This is a forked version provided by the FreeCAD project.
|
||||
|
||||
WWW: https://pypi.org/project/Pivy/
|
||||
Reference in New Issue
Block a user