Lines 1-7
Link Here
|
1 |
PORTNAME= opensubdiv |
1 |
PORTNAME= opensubdiv |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 3_6_0 |
3 |
DISTVERSION= 3_6_0 |
4 |
CATEGORIES?= graphics |
4 |
PORTREVISION= 1 |
|
|
5 |
CATEGORIES= graphics |
5 |
|
6 |
|
6 |
MAINTAINER= FreeBSD@Shaneware.biz |
7 |
MAINTAINER= FreeBSD@Shaneware.biz |
7 |
COMMENT= High performance subdivision surface libraries |
8 |
COMMENT= High performance subdivision surface libraries |
Lines 12-75
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
Link Here
|
12 |
|
13 |
|
13 |
BUILD_DEPENDS= glfw>3.0.0:graphics/glfw |
14 |
BUILD_DEPENDS= glfw>3.0.0:graphics/glfw |
14 |
|
15 |
|
15 |
USES= cmake gl localbase |
16 |
USES= cmake gl localbase:ldflags |
16 |
|
17 |
|
17 |
USE_GITHUB= yes |
18 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= PixarAnimationStudios |
19 |
GH_ACCOUNT= PixarAnimationStudios |
19 |
GH_PROJECT= OpenSubdiv |
20 |
GH_PROJECT= OpenSubdiv |
20 |
|
21 |
|
21 |
USE_GL= egl gl glu glew |
22 |
USE_GL= opengl |
22 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
23 |
CMAKE_ON= NO_CLEW NO_CUDA NO_DX NO_METAL |
24 |
CMAKE_ON= NO_CLEW NO_CUDA NO_DX NO_METAL |
24 |
|
25 |
|
|
|
26 |
PLIST_SUB+= LIBVERS=${PORTVERSION} |
27 |
|
25 |
OPTIONS_DEFINE= DOCS EXAMPLES OPENCL OPENMP PTEX TBB TEST TUTORIALS |
28 |
OPTIONS_DEFINE= DOCS EXAMPLES OPENCL OPENMP PTEX TBB TEST TUTORIALS |
26 |
OPTIONS_DEFAULT= TBB |
29 |
OPTIONS_DEFAULT= PTEX TBB |
|
|
30 |
OPTIONS_DEFAULT_armv6= |
31 |
OPTIONS_DEFAULT_armv7= |
32 |
OPTIONS_DEFAULT_OTHER_ARCHS= OPENMP |
27 |
OPTIONS_SUB= yes |
33 |
OPTIONS_SUB= yes |
28 |
|
34 |
|
29 |
DOCS_CMAKE_BOOL_OFF= NO_DOC |
35 |
PTEX_DESC= ptex support |
|
|
36 |
TBB_DESC= Intel threading building blocks |
37 |
TUTORIALS_DESC= Install tutorial programs |
38 |
|
30 |
DOCS_BUILD_DEPENDS= rst2html.py:textproc/py-docutils \ |
39 |
DOCS_BUILD_DEPENDS= rst2html.py:textproc/py-docutils \ |
31 |
doxygen>=1.8.4:devel/doxygen |
40 |
doxygen>=1.8.4:devel/doxygen |
32 |
DOCS_USES= python:build |
41 |
DOCS_USES= python:build |
|
|
42 |
DOCS_CMAKE_BOOL_OFF= NO_DOC |
33 |
DOCS_PORTDOCS= * |
43 |
DOCS_PORTDOCS= * |
34 |
|
44 |
|
35 |
EXAMPLES_CMAKE_BOOL_OFF= NO_EXAMPLES |
45 |
EXAMPLES_LIB_DEPENDS= libglfw.so:graphics/glfw |
36 |
EXAMPLES_USES= xorg |
46 |
EXAMPLES_USES= xorg |
37 |
EXAMPLES_USE= xorg=ice,sm,x11,xcursor,xext,xi,xinerama,xrandr,xxf86vm |
47 |
EXAMPLES_USE= xorg=ice,sm,x11,xcursor,xext,xi,xinerama,xrandr,xxf86vm |
38 |
EXAMPLES_LIB_DEPENDS= libglfw.so:graphics/glfw |
48 |
EXAMPLES_CMAKE_BOOL_OFF= NO_EXAMPLES |
39 |
|
49 |
|
40 |
OPENCL_CMAKE_BOOL_OFF= NO_OPENCL |
|
|
41 |
OPENCL_CFLAGS= -pthread |
42 |
OPENCL_BUILD_DEPENDS= ${LOCALBASE}/include/CL/cl.h:devel/opencl |
50 |
OPENCL_BUILD_DEPENDS= ${LOCALBASE}/include/CL/cl.h:devel/opencl |
43 |
OPENCL_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd |
51 |
OPENCL_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd |
44 |
OPENCL_PREVENTS= EXAMPLES |
52 |
OPENCL_USE= gl=gl |
|
|
53 |
OPENCL_CMAKE_BOOL_OFF= NO_OPENCL |
54 |
OPENCL_CFLAGS= -pthread |
55 |
OPENCL_LDFLAGS= -lGLX |
45 |
|
56 |
|
46 |
OPENMP_CMAKE_BOOL_OFF= NO_OMP |
57 |
OPENMP_CMAKE_BOOL_OFF= NO_OMP |
47 |
|
58 |
|
48 |
PTEX_DESC= ptex support |
|
|
49 |
PTEX_CMAKE_BOOL_OFF= NO_PTEX |
50 |
PTEX_CMAKE_ON= -DPTEX_LOCATION:STRING=${LOCALBASE} \ |
51 |
-DPTEX_INCLUDE_DIR:STRING=${LOCALBASE}/include/ptex |
52 |
PTEX_LIB_DEPENDS= libPtex.so:graphics/ptex |
59 |
PTEX_LIB_DEPENDS= libPtex.so:graphics/ptex |
|
|
60 |
PTEX_CMAKE_BOOL_OFF= NO_PTEX |
61 |
PTEX_CMAKE_ON= -DPTEX_INCLUDE_DIR:STRING=${LOCALBASE}/include/ptex \ |
62 |
-DPTEX_LOCATION:STRING=${LOCALBASE} |
53 |
|
63 |
|
54 |
TBB_DESC= Intel threading building blocks |
|
|
55 |
TBB_CMAKE_BOOL_OFF= NO_TBB |
56 |
TBB_LIB_DEPENDS= libtbb.so:devel/onetbb |
64 |
TBB_LIB_DEPENDS= libtbb.so:devel/onetbb |
|
|
65 |
TBB_CMAKE_BOOL_OFF= NO_TBB |
57 |
|
66 |
|
58 |
TEST_CMAKE_BOOL_OFF= NO_REGRESSION NO_TESTS NO_GL_TESTS |
|
|
59 |
TEST_LIB_DEPENDS= libglfw.so:graphics/glfw |
67 |
TEST_LIB_DEPENDS= libglfw.so:graphics/glfw |
60 |
TEST_USES= xorg |
68 |
TEST_USES= xorg |
61 |
TEST_USE= xorg=ice,sm,x11,xcursor,xext,xi,xinerama,xrandr,xxf86vm |
69 |
TEST_USE= xorg=ice,sm,x11,xcursor,xext,xi,xinerama,xrandr,xxf86vm |
|
|
70 |
TEST_CMAKE_BOOL_OFF= NO_REGRESSION NO_TESTS |
62 |
|
71 |
|
63 |
# the tutorials and tests include use of deprecated parts of the library |
|
|
64 |
# using clang 10 on 32 bit fails to build all tutorials and tests |
65 |
# currently 12.1 still works - 11.4 and current fail |
66 |
# CMake files and pkg-plist are patched to prevent failing builds |
67 |
|
68 |
TUTORIALS_DESC= Install tutorial programs |
69 |
TUTORIALS_CMAKE_BOOL_OFF= NO_TUTORIALS |
72 |
TUTORIALS_CMAKE_BOOL_OFF= NO_TUTORIALS |
70 |
|
73 |
|
71 |
PLIST_SUB+= LIBVERS=${PORTVERSION} |
|
|
72 |
|
73 |
post-patch: |
74 |
post-patch: |
74 |
${FIND} ${WRKSRC}/tutorials -name CMakeLists.txt -exec \ |
75 |
${FIND} ${WRKSRC}/tutorials -name CMakeLists.txt -exec \ |
75 |
${REINPLACE_CMD} -e 's|{CMAKE_BINDIR_BASE}/tutorials|{CMAKE_INSTALL_PREFIX}/${DATADIR_REL}/tutorials|g' {} + |
76 |
${REINPLACE_CMD} -e 's|{CMAKE_BINDIR_BASE}/tutorials|{CMAKE_INSTALL_PREFIX}/${DATADIR_REL}/tutorials|g' {} + |