Lines 1-11
Link Here
|
1 |
PORTNAME= openshadinglanguage |
1 |
PORTNAME= openshadinglanguage |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 1.12.14.0 |
3 |
DISTVERSION= 1.13.10.0 |
4 |
# PORTREVISION must be set with ?= so as not to stomp over |
4 |
# PORTREVISION must be set with ?= so as not to stomp over |
5 |
# py-openimageio's PORTREVISION. |
5 |
# py-openimageio's PORTREVISION. |
6 |
# Also, just to be on the safe side, when resetting, |
6 |
# Also, just to be on the safe side, when resetting, |
7 |
# best keep PORTREVISION?= 0. |
7 |
# best keep PORTREVISION?= 0. |
8 |
PORTREVISION?= 1 |
8 |
PORTREVISION?= 0 |
9 |
CATEGORIES?= graphics devel |
9 |
CATEGORIES?= graphics devel |
10 |
|
10 |
|
11 |
MAINTAINER= FreeBSD@Shaneware.biz |
11 |
MAINTAINER= FreeBSD@Shaneware.biz |
Lines 17-22
LICENSE_FILE= ${WRKSRC}/LICENSE.md
Link Here
|
17 |
|
17 |
|
18 |
BROKEN_riscv64= fails to build: /usr/include/c++/v1/__threading_support:135:3: Unsupported architecture |
18 |
BROKEN_riscv64= fails to build: /usr/include/c++/v1/__threading_support:135:3: Unsupported architecture |
19 |
|
19 |
|
|
|
20 |
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le |
21 |
ONLY_FOR_ARCHS_REASON= fails static_assert(sizeof(ustringhash) == sizeof(size_t) |
22 |
|
20 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
23 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
21 |
libImath.so:math/Imath \ |
24 |
libImath.so:math/Imath \ |
22 |
libOpenEXR.so:graphics/openexr \ |
25 |
libOpenEXR.so:graphics/openexr \ |
Lines 24-36
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
Link Here
|
24 |
libpartio.so:graphics/partio \ |
27 |
libpartio.so:graphics/partio \ |
25 |
libpugixml.so:textproc/pugixml |
28 |
libpugixml.so:textproc/pugixml |
26 |
|
29 |
|
27 |
USES= bison cmake compiler:c++14-lang llvm:max=15,lib localbase ncurses |
30 |
USES= bison cmake compiler:c++17-lang localbase ncurses |
28 |
|
31 |
|
29 |
USE_GITHUB= yes |
32 |
USE_GITHUB= yes |
30 |
GH_ACCOUNT= AcademySoftwareFoundation |
33 |
GH_ACCOUNT= AcademySoftwareFoundation |
31 |
GH_PROJECT= OpenShadingLanguage |
34 |
GH_PROJECT= OpenShadingLanguage |
32 |
|
35 |
|
33 |
CMAKE_ARGS+= -DCMAKE_CXX_STANDARD=14 -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} \ |
36 |
CMAKE_ARGS+= -DCMAKE_CXX_STANDARD:INTEGER=17 -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} \ |
34 |
-DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config${LLVM_VERSION}" |
37 |
-DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config${LLVM_VERSION}" |
35 |
CMAKE_ON= ENABLE_RTTI OSL_BUILD_TESTS USE_LIBCPLUSPLUS USE_LLVM_BITCODE |
38 |
CMAKE_ON= ENABLE_RTTI OSL_BUILD_TESTS USE_LIBCPLUSPLUS USE_LLVM_BITCODE |
36 |
|
39 |
|
Lines 51-56
OSLTOY_CMAKE_BOOL= USE_QT
Link Here
|
51 |
post-patch: |
54 |
post-patch: |
52 |
@${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \ |
55 |
@${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \ |
53 |
-e 's,%%PYCMD%%,${PYTHON_CMD},' \ |
56 |
-e 's,%%PYCMD%%,${PYTHON_CMD},' \ |
|
|
57 |
${WRKSRC}/CMakeLists.txt \ |
54 |
${WRKSRC}/src/shaders/CMakeLists.txt \ |
58 |
${WRKSRC}/src/shaders/CMakeLists.txt \ |
55 |
${WRKSRC}/src/doc/CMakeLists.txt \ |
59 |
${WRKSRC}/src/doc/CMakeLists.txt \ |
56 |
${WRKSRC}/src/liboslexec/CMakeLists.txt |
60 |
${WRKSRC}/src/liboslexec/CMakeLists.txt |
Lines 69-78
do-install:
Link Here
|
69 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
73 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
70 |
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/oslquery.so ${STAGEDIR}${PYTHON_SITELIBDIR} |
74 |
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/oslquery.so ${STAGEDIR}${PYTHON_SITELIBDIR} |
71 |
.else # SLAVE_PORT != yes |
75 |
.else # SLAVE_PORT != yes |
72 |
USES+= python:build |
76 |
# using python:env as this port doesn't need to use python |
|
|
77 |
# a python util script is installed for user consumption |
78 |
# it is not required for using the port, only to assist developers using the libs |
79 |
USES+= python:build shebangfix |
73 |
USE_LDCONFIG= yes |
80 |
USE_LDCONFIG= yes |
74 |
CMAKE_OFF+= USE_PYTHON |
81 |
CMAKE_OFF+= USE_PYTHON |
75 |
BINARY_ALIAS+= python=${PYTHON_CMD} |
82 |
BINARY_ALIAS+= python=${PYTHON_CMD} |
|
|
83 |
SHEBANG_FILES+= src/build-scripts/serialize-bc.py |
76 |
.endif # SLAVE_PORT |
84 |
.endif # SLAVE_PORT |
77 |
|
85 |
|
78 |
.include <bsd.port.mk> |
86 |
.include <bsd.port.mk> |