blob: a43d7707a587b89da9bc0f561101384a769fdfe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
PORTNAME= openvdb
DISTVERSIONPREFIX= v
DISTVERSION= 8.0.1
PORTREVISION= 1
CATEGORIES= misc
MAINTAINER= yuri@FreeBSD.org
COMMENT= Tools for storage and manipulation of sparse volumetric data
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libblosc.so:archivers/c-blosc \
libboost_system.so:devel/boost-libs \
libHalf.so:graphics/ilmbase \
libtbb.so:devel/tbb
USES= cmake compiler:c++11-lang localbase:ldflags pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= AcademySoftwareFoundation
USE_LDCONFIG= yes
CMAKE_ARGS= -DCONCURRENT_MALLOC="Tbbmalloc"
CMAKE_OFF= OPENVDB_CORE_STATIC
OPTIONS_DEFINE= PYTHON TOOLS #DOCS # TOOLS and PYTHON should be made into subpackages
OPTIONS_DEFAULT= PYTHON TOOLS
OPTIONS_SUB= yes
PYTHON_USES= python
PYTHON_CMAKE_BOOL= OPENVDB_BUILD_PYTHON_MODULE
PYTHON_CMAKE_ON= -DFREEBSD_PYTHON_VER:STRING=${PYTHON_VER} -DUSE_NUMPY:BOOL=ON
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 xorg
TOOLS_USE= GL=gl,glu XORG=ice,sm,x11,xcursor,xext,xi,xinerama,xrandr,xxf86vm
# DOCS is broken: https://github.com/AcademySoftwareFoundation/openvdb/issues/899
#DOCS_CMAKE_BOOL= OPENVDB_BUILD_DOCS
#DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
#PORTDOCS= *
.include <bsd.port.mk>
|