# Created by: Shane Ambler # $FreeBSD$ PORTNAME= openshadinglanguage PORTVERSION= 1.10.2 DISTVERSIONPREFIX= Release- PORTREVISION= 3 CATEGORIES= graphics devel MAINTAINER= FreeBSD@Shaneware.biz COMMENT= Advanced shading language for production GI renderers LICENSE= BSD3CLAUSE BUILD_DEPENDS= llvm-config60:devel/llvm60 LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libtinfo.so:devel/ncurses \ libImath.so:graphics/ilmbase \ libIlmImf.so:graphics/openexr \ libOpenImageIO.so:graphics/openimageio \ libpugixml.so:textproc/pugixml RUN_DEPENDS= llvm-config60:devel/llvm60 USES= bison cmake compiler:c++11-lang ncurses python:build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= imageworks GH_PROJECT= OpenShadingLanguage CMAKE_ON= ENABLERTTI OSL_BUILD_TESTS USE_LLVM_BITCODE USE_LIBCPLUSPLUS CMAKE_OFF= USE_BOOST_WAVE CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config60" \ -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} \ -DUSE_CPP:STRING=11 OPTIONS_DEFINE= OSLTOY OPTIONS_SUB= yes OSLTOY_DESC= Interactive shader edit and visualize tool OSLTOY_CMAKE_BOOL= USE_QT OSLTOY_USES= qt:5 OSLTOY_USE= QT=core,gui,qmake_build,widgets CXXFLAGS+= -I${STAGEDIR}/include PLIST_SUB+= LIBVERS=${PORTVERSION} post-patch: @${REINPLACE_CMD} -e 's,bash,sh,' \ ${WRKSRC}/src/liboslexec/serialize-bc.bash @${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \ -e 's,%%PYCMD%%,${PYTHON_CMD},' \ ${WRKSRC}/src/shaders/CMakeLists.txt \ ${WRKSRC}/src/shaders/MaterialX/CMakeLists.txt \ ${WRKSRC}/src/doc/CMakeLists.txt .include