Lines 2-10
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= openshadinglanguage |
4 |
PORTNAME= openshadinglanguage |
5 |
PORTVERSION= 1.7.2 |
5 |
PORTVERSION= 1.7.5 |
6 |
DISTVERSIONPREFIX= Release- |
6 |
DISTVERSIONPREFIX= Release- |
7 |
PORTREVISION= 2 |
|
|
8 |
CATEGORIES= graphics devel |
7 |
CATEGORIES= graphics devel |
9 |
|
8 |
|
10 |
MAINTAINER= FreeBSD@Shaneware.biz |
9 |
MAINTAINER= FreeBSD@Shaneware.biz |
Lines 12-20
Link Here
|
12 |
|
11 |
|
13 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE= BSD3CLAUSE |
14 |
|
13 |
|
15 |
BUILD_DEPENDS= llvm-config34:devel/llvm34 \ |
14 |
BUILD_DEPENDS= llvm-config34:devel/llvm34 |
16 |
clang34>=3.4_1:lang/clang34 |
|
|
17 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
15 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
|
|
16 |
libtinfo.so:devel/ncurses \ |
17 |
libImath-2_2.so:graphics/ilmbase \ |
18 |
libIlmImf.so:graphics/OpenEXR \ |
18 |
libIlmImf.so:graphics/OpenEXR \ |
19 |
libOpenImageIO.so:graphics/openimageio |
19 |
libOpenImageIO.so:graphics/openimageio |
20 |
RUN_DEPENDS= llvm-config34:devel/llvm34 |
20 |
RUN_DEPENDS= llvm-config34:devel/llvm34 |
Lines 24-43
Link Here
|
24 |
GH_PROJECT= OpenShadingLanguage |
24 |
GH_PROJECT= OpenShadingLanguage |
25 |
|
25 |
|
26 |
CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config34" \ |
26 |
CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config34" \ |
27 |
-DENABLERTTI:BOOL=ON |
27 |
-DENABLERTTI:BOOL=ON -DOSL_BUILD_CPP11:BOOL=OFF \ |
|
|
28 |
-DOSL_BUILD_CPP14:BOOL=OFF |
28 |
USE_LDCONFIG= yes |
29 |
USE_LDCONFIG= yes |
29 |
USES= bison cmake:outsource compiler:c11 |
30 |
USES= bison cmake:outsource |
30 |
|
31 |
|
31 |
.include <bsd.port.options.mk> |
32 |
.include <bsd.port.options.mk> |
32 |
|
33 |
|
33 |
.if ${ARCH} == powerpc |
34 |
.if ${OSVERSION} > 1200000 |
34 |
USE_GCC= yes |
35 |
# llvm-as34 fails to build llvm_ops.s generated by clang4 |
35 |
.endif |
36 |
# disabling this option uses clang4 instead of llvm-as34 |
36 |
|
37 |
CMAKE_ARGS+= -DUSE_LLVM_BITCODE:BOOL=OFF |
37 |
.if ${OSVERSION} < 1000033 |
|
|
38 |
BUILD_DEPENDS+= flex>=2.5.37:textproc/flex |
39 |
CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex |
40 |
CXXFLAGS+= -I${LOCALBASE}/include/flex |
41 |
.endif |
38 |
.endif |
42 |
|
39 |
|
43 |
post-patch: |
40 |
post-patch: |