1 # Created by: Shane Ambler <FreeBSD@Shaneware.biz>
4 PORTNAME= openshadinglanguage
6 DISTVERSIONPREFIX= Release-
7 CATEGORIES= graphics devel
9 MAINTAINER= FreeBSD@Shaneware.biz
10 COMMENT= Advanced shading language for production GI renderers
14 BUILD_DEPENDS= llvm-config35:devel/llvm35 \
15 clang35>=3.5:lang/clang35
16 LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
17 libIlmImf.so:graphics/OpenEXR \
18 libOpenImageIO.so:graphics/openimageio
19 RUN_DEPENDS= llvm-config35:devel/llvm35
22 GH_ACCOUNT= imageworks
23 GH_PROJECT= OpenShadingLanguage
25 CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config35" \
26 -DSTOP_ON_WARNING=OFF \
30 USES= bison cmake:outsource compiler:c11
32 .include <bsd.port.options.mk>
34 .if ${ARCH} == powerpc
38 .if ${OSVERSION} < 1000033
39 BUILD_DEPENDS+= flex>=2.5.37:textproc/flex
40 CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex
41 CXXFLAGS+= -I${LOCALBASE}/include/flex
45 @${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \
46 ${WRKSRC}/src/liboslexec/serialize-bc.bash
48 .include <bsd.port.mk>