Lines 5-11
DISTVERSION= 1.12.14.0
Link Here
|
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?= 0 |
8 |
PORTREVISION?= 1 |
9 |
CATEGORIES?= graphics devel |
9 |
CATEGORIES?= graphics devel |
10 |
|
10 |
|
11 |
MAINTAINER= FreeBSD@Shaneware.biz |
11 |
MAINTAINER= FreeBSD@Shaneware.biz |
Lines 15-26
WWW= https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
Link Here
|
15 |
LICENSE= BSD3CLAUSE |
15 |
LICENSE= BSD3CLAUSE |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE.md |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE.md |
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 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
20 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
21 |
libImath.so:math/Imath \ |
21 |
libImath.so:math/Imath \ |
22 |
libOpenEXR.so:graphics/openexr \ |
22 |
libOpenEXR.so:graphics/openexr \ |
23 |
libOpenImageIO.so:graphics/openimageio \ |
23 |
libOpenImageIO.so:graphics/openimageio \ |
|
|
24 |
libpartio.so:graphics/partio \ |
24 |
libpugixml.so:textproc/pugixml |
25 |
libpugixml.so:textproc/pugixml |
25 |
|
26 |
|
26 |
USES= bison cmake compiler:c++14-lang llvm:max=15,lib localbase ncurses |
27 |
USES= bison cmake compiler:c++14-lang llvm:max=15,lib localbase ncurses |
Lines 29-49
USE_GITHUB= yes
Link Here
|
29 |
GH_ACCOUNT= AcademySoftwareFoundation |
30 |
GH_ACCOUNT= AcademySoftwareFoundation |
30 |
GH_PROJECT= OpenShadingLanguage |
31 |
GH_PROJECT= OpenShadingLanguage |
31 |
|
32 |
|
32 |
CMAKE_ON= ENABLERTTI OSL_BUILD_TESTS USE_LLVM_BITCODE USE_LIBCPLUSPLUS |
33 |
CMAKE_ARGS+= -DCMAKE_CXX_STANDARD=14 -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} \ |
33 |
CMAKE_ARGS+= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config${LLVM_VERSION}" \ |
34 |
-DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config${LLVM_VERSION}" |
34 |
-DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} -DCMAKE_CXX_STANDARD=14 |
35 |
CMAKE_ON= ENABLE_RTTI OSL_BUILD_TESTS USE_LIBCPLUSPLUS USE_LLVM_BITCODE |
|
|
36 |
|
37 |
# DISTVERSION has an extra digit which isn't in the lib name |
38 |
# for LIBVERS we want the first three digits |
39 |
PLIST_SUB= SHL2=${PORTVERSION:R:R} SHL3=${PORTVERSION:R} |
35 |
|
40 |
|
36 |
OPTIONS_DEFINE= OSLTOY |
41 |
OPTIONS_DEFINE= OSLTOY |
37 |
OPTIONS_SUB= yes |
42 |
OPTIONS_SUB= yes |
38 |
|
43 |
|
39 |
OSLTOY_DESC= Interactive shader edit and visualize tool |
44 |
OSLTOY_DESC= Interactive shader edit and visualize tool |
40 |
OSLTOY_CMAKE_BOOL= USE_QT |
|
|
41 |
OSLTOY_USES= qt:6 gl |
45 |
OSLTOY_USES= qt:6 gl |
42 |
OSLTOY_USE= GL=gl,opengl QT=base |
46 |
OSLTOY_USE= GL=gl,opengl QT=base |
43 |
|
47 |
OSLTOY_CMAKE_BOOL= USE_QT |
44 |
# DISTVERSION has an extra digit which isn't in the lib name |
|
|
45 |
# for LIBVERS we want the first three digits |
46 |
PLIST_SUB= SHL3=${PORTVERSION:R} SHL2=${PORTVERSION:R:R} |
47 |
|
48 |
|
48 |
.include <bsd.port.options.mk> |
49 |
.include <bsd.port.options.mk> |
49 |
|
50 |
|
Lines 58-77
post-patch:
Link Here
|
58 |
BUILD_DEPENDS+= ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 |
59 |
BUILD_DEPENDS+= ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 |
59 |
LIB_DEPENDS+= liboslquery.so:graphics/openshadinglanguage |
60 |
LIB_DEPENDS+= liboslquery.so:graphics/openshadinglanguage |
60 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openimageio>0:graphics/py-openimageio@${PY_FLAVOR} |
61 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openimageio>0:graphics/py-openimageio@${PY_FLAVOR} |
61 |
PLIST= ${PKGDIR}/pkg-plist-pybind |
|
|
62 |
USES+= python |
62 |
USES+= python |
63 |
USE_PYTHON= flavors |
63 |
USE_PYTHON= flavors |
64 |
CMAKE_ON+= USE_PYTHON |
|
|
65 |
CMAKE_ARGS+= -DPYTHON_VERSION=${PYTHON_VER} |
64 |
CMAKE_ARGS+= -DPYTHON_VERSION=${PYTHON_VER} |
|
|
65 |
CMAKE_ON+= USE_PYTHON |
66 |
PLIST= ${PKGDIR}/pkg-plist-pybind |
66 |
|
67 |
|
67 |
do-install: |
68 |
do-install: |
68 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
69 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
69 |
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/oslquery.so ${STAGEDIR}${PYTHON_SITELIBDIR} |
70 |
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/oslquery.so ${STAGEDIR}${PYTHON_SITELIBDIR} |
70 |
.else # SLAVE_PORT != yes |
71 |
.else # SLAVE_PORT != yes |
71 |
USES+= python:build |
72 |
USES+= python:build |
72 |
BINARY_ALIAS+= python=${PYTHON_CMD} |
|
|
73 |
CMAKE_OFF+= USE_PYTHON |
74 |
USE_LDCONFIG= yes |
73 |
USE_LDCONFIG= yes |
|
|
74 |
CMAKE_OFF+= USE_PYTHON |
75 |
BINARY_ALIAS+= python=${PYTHON_CMD} |
75 |
.endif # SLAVE_PORT |
76 |
.endif # SLAVE_PORT |
76 |
|
77 |
|
77 |
.include <bsd.port.mk> |
78 |
.include <bsd.port.mk> |