mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
misc/openvdb: Add TOOLS and DOCS options
Submitted by: Shane Ambler <FreeBSD@shaneware.biz> (via e-mail)
This commit is contained in:
parent
c35f258f7a
commit
24d1604d7d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501900
3 changed files with 30 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
PORTNAME= openvdb
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 6.1.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= misc
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
@ -23,8 +24,8 @@ USE_LDCONFIG= yes
|
|||
|
||||
CMAKE_OFF= OPENVDB_CORE_STATIC
|
||||
|
||||
OPTIONS_DEFINE= PYTHON
|
||||
OPTIONS_DEFAULT= PYTHON
|
||||
OPTIONS_DEFINE= PYTHON TOOLS DOCS # TOOLS should be a subpackage
|
||||
OPTIONS_DEFAULT= PYTHON TOOLS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
PYTHON_USES= python:2.7 # 3.6 is broken: https://github.com/AcademySoftwareFoundation/openvdb/issues/427
|
||||
|
@ -34,4 +35,17 @@ PYTHON_LIB_DEPENDS= ${PY_BOOST}
|
|||
PYTHON_BUILD_DEPENDS= ${PYNUMPY}
|
||||
PYTHON_RUN_DEPENDS= ${PYNUMPY}
|
||||
|
||||
TOOLS_DESC= Build CLI tools
|
||||
TOOLS_CMAKE_BOOL= OPENVDB_BUILD_BINARIES OPENVDB_BUILD_VDB_LOD \
|
||||
OPENVDB_BUILD_VDB_RENDER OPENVDB_BUILD_VDB_VIEW
|
||||
TOOLS_LIB_DEPENDS= libglfw.so:graphics/glfw \
|
||||
libIlmImf.so:graphics/openexr
|
||||
TOOLS_USES= gl
|
||||
TOOLS_USE= GL=gl,glu XORG=x11,xcursor,xi,xinerama,xrandr,xxf86vm
|
||||
|
||||
DOCS_CMAKE_BOOL= OPENVDB_BUILD_DOCS
|
||||
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- CMakeLists.txt.orig 2019-05-11 05:39:52 UTC
|
||||
--- CMakeLists.txt.orig 2019-05-07 20:58:35 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -177,7 +177,7 @@ if(NOT DISABLE_DEPENDENCY_VERSION_CHECKS
|
||||
@@ -177,7 +177,7 @@ if(NOT DISABLE_DEPENDENCY_VERSION_CHECKS)
|
||||
set(MINIMUM_ZLIB_VERSION 1.2.7)
|
||||
set(MINIMUM_TBB_VERSION 4.4)
|
||||
|
||||
|
@ -9,3 +9,12 @@
|
|||
set(MINIMUM_NUMPY_VERSION 1.9.2)
|
||||
|
||||
set(MINIMUM_CPPUNIT_VERSION 1.10)
|
||||
@@ -271,7 +271,7 @@ if(OPENVDB_BUILD_DOCS)
|
||||
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
||||
)
|
||||
|
||||
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html DESTINATION docs)
|
||||
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openvdb/doc/html DESTINATION share/doc/openvdb)
|
||||
endif()
|
||||
|
||||
# Early exit if there's nothing to build
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
bin/vdb_print
|
||||
%%TOOLS%%bin/vdb_lod
|
||||
%%TOOLS%%bin/vdb_render
|
||||
%%TOOLS%%bin/vdb_view
|
||||
include/openvdb/Exceptions.h
|
||||
include/openvdb/Grid.h
|
||||
include/openvdb/MetaMap.h
|
||||
|
|
Loading…
Add table
Reference in a new issue