# $FreeBSD: head/graphics/opensubdiv/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= opensubdiv PORTVERSION= 3.0.3 PORTREVISION= 1 CATEGORIES= graphics devel MAINTAINER= mva@FreeBSD.org COMMENT= High performance subdivision surface libraries LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${LOCALBASE}/include/GLFW/glfw3.h:graphics/glfw USE_GITHUB= yes GH_ACCOUNT= PixarAnimationStudios GH_PROJECT= OpenSubdiv GH_TAGNAME= v3_0_3 USE_LDCONFIG= yes USE_GL= glew USES= cmake:outsource compiler pkgconfig USE_XORG= x11 xi xcursor xrandr xxf86vm xinerama CMAKE_ARGS+= -DNO_TUTORIALS:BOOL=ON -DNO_EXAMPLES:BOOL=ON \ -DNO_REGRESSION:BOOL=ON -DNO_PTEX:BOOL=ON -DNO_CUDA:BOOL=ON \ -DNO_OPENCL:BOOL=ON -DNO_MAYA:BOOL=ON -DNO_TBB:BOOL=ON OPTIONS_DEFINE= DOCS .include .if ${CHOSEN_COMPILER_TYPE:Mgcc} # OpenMP is available PLIST_SUB+= OPENMP="" .else PLIST_SUB+= OPENMP="@comment " .endif .include .if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= doxygen:devel/doxygen \ python2:lang/python2 \ rst2html:textproc/py-docutils .else CMAKE_ARGS+= -DNO_DOC:BOOL=ON .endif .include