freebsd-ports/graphics/opensubdiv/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

51 lines
1.1 KiB
Makefile

# $FreeBSD$
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 <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE:Mgcc}
# OpenMP is available
PLIST_SUB+= OPENMP=""
.else
PLIST_SUB+= OPENMP="@comment "
.endif
.include <bsd.port.options.mk>
.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 <bsd.port.post.mk>