Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / openshadinglanguage / Makefile
1 # Created by: Shane Ambler <FreeBSD@Shaneware.biz>
2 # $FreeBSD$
3
4 PORTNAME=       openshadinglanguage
5 PORTVERSION=    1.7.2
6 DISTVERSIONPREFIX=      Release-
7 CATEGORIES=     graphics devel
8
9 MAINTAINER=     FreeBSD@Shaneware.biz
10 COMMENT=        Advanced shading language for production GI renderers
11
12 LICENSE=        BSD3CLAUSE
13
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
20
21 USE_GITHUB=     yes
22 GH_ACCOUNT=     imageworks
23 GH_PROJECT=     OpenShadingLanguage
24
25 CMAKE_ARGS=     -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config35" \
26                 -DSTOP_ON_WARNING=OFF \
27                 -DOSL_BUILD_CPP11=1 \
28                 -DENABLERTTI:BOOL=ON
29 USE_LDCONFIG=   yes
30 USES=           bison cmake:outsource compiler:c11
31
32 .include <bsd.port.options.mk>
33
34 .if ${ARCH} == powerpc
35 USE_GCC=        yes
36 .endif
37
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
42 .endif
43
44 post-patch:
45         @${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \
46                 ${WRKSRC}/src/liboslexec/serialize-bc.bash
47
48 .include <bsd.port.mk>