Lines 2-10
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= openimageio |
4 |
PORTNAME= openimageio |
5 |
PORTVERSION= 1.8.17 |
|
|
6 |
DISTVERSIONPREFIX= Release- |
5 |
DISTVERSIONPREFIX= Release- |
7 |
PORTREVISION= 6 |
6 |
DISTVERSION= 2.0.9 |
8 |
CATEGORIES?= graphics multimedia |
7 |
CATEGORIES?= graphics multimedia |
9 |
|
8 |
|
10 |
MAINTAINER?= FreeBSD@Shaneware.biz |
9 |
MAINTAINER?= FreeBSD@Shaneware.biz |
Lines 12-17
Link Here
|
12 |
|
11 |
|
13 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE= BSD3CLAUSE |
14 |
|
13 |
|
|
|
14 |
BUILD_DEPENDS= ${LOCALBASE}/include/tsl/robin_map.h:devel/robin-map |
15 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
15 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
16 |
libImath.so:graphics/ilmbase \ |
16 |
libImath.so:graphics/ilmbase \ |
17 |
libIlmImf.so:graphics/openexr \ |
17 |
libIlmImf.so:graphics/openexr \ |
Lines 20-26
Link Here
|
20 |
libwebp.so:graphics/webp \ |
20 |
libwebp.so:graphics/webp \ |
21 |
libhdf5.so:science/hdf5 |
21 |
libhdf5.so:science/hdf5 |
22 |
|
22 |
|
23 |
USES= cmake jpeg compiler:c++11-lib |
23 |
USES= cmake jpeg compiler:c++11-lib iconv:wchar_t |
24 |
USE_GITHUB= yes |
24 |
USE_GITHUB= yes |
25 |
GH_ACCOUNT= OpenImageIO |
25 |
GH_ACCOUNT= OpenImageIO |
26 |
GH_PROJECT= oiio |
26 |
GH_PROJECT= oiio |
Lines 31-44
Link Here
|
31 |
CMAKE_ARGS= USE_CPP:STRING=11 |
31 |
CMAKE_ARGS= USE_CPP:STRING=11 |
32 |
CMAKE_OFF= BUILDSTATIC LINKSTATIC NOTHREADS STOP_ON_WARNING USE_OPENSSL |
32 |
CMAKE_OFF= BUILDSTATIC LINKSTATIC NOTHREADS STOP_ON_WARNING USE_OPENSSL |
33 |
|
33 |
|
34 |
OPTIONS_DEFINE= DOCS FFMPEG FREETYPE GIF IMAGEVIEWER OCIO OPENCV \ |
34 |
OPTIONS_DEFINE= DICOM DOCS FFMPEG FREETYPE GIF IMAGEVIEWER OCIO \ |
35 |
OPENJPEG RAW TEST |
35 |
OPENCV OPENJPEG RAW TBB TEST TOOLS VDB |
36 |
OPTIONS_DEFAULT= FREETYPE GIF OCIO OPENJPEG |
36 |
OPTIONS_DEFAULT= DICOM FREETYPE GIF OCIO OPENJPEG |
37 |
OPTIONS_SUB= yes |
37 |
OPTIONS_SUB= yes |
38 |
|
38 |
|
39 |
DOCS_CMAKE_BOOL= INSTALL_DOCS |
39 |
DOCS_CMAKE_BOOL= INSTALL_DOCS |
40 |
DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} |
40 |
DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} |
41 |
|
41 |
|
|
|
42 |
DICOM_DESC= DICOM/MEDICOM support |
43 |
DICOM_CMAKE_BOOL= USE_DICOM |
44 |
DICOM_LIB_DEPENDS= libdcmimage.so:graphics/dcmtk |
45 |
|
42 |
FFMPEG_DESC= Use FFmpeg to support extra file types |
46 |
FFMPEG_DESC= Use FFmpeg to support extra file types |
43 |
FFMPEG_CMAKE_BOOL= USE_FFMPEG |
47 |
FFMPEG_CMAKE_BOOL= USE_FFMPEG |
44 |
FFMPEG_LIB_DEPENDS= libavutil.so:multimedia/ffmpeg |
48 |
FFMPEG_LIB_DEPENDS= libavutil.so:multimedia/ffmpeg |
Lines 52-57
Link Here
|
52 |
|
56 |
|
53 |
IMAGEVIEWER_DESC= Build image viewer (requires Qt) |
57 |
IMAGEVIEWER_DESC= Build image viewer (requires Qt) |
54 |
IMAGEVIEWER_USES= qt:5 |
58 |
IMAGEVIEWER_USES= qt:5 |
|
|
59 |
IMAGEVIEWER_IMPLIES= TOOLS |
55 |
IMAGEVIEWER_CMAKE_BOOL= USE_QT USE_OPENGL |
60 |
IMAGEVIEWER_CMAKE_BOOL= USE_QT USE_OPENGL |
56 |
IMAGEVIEWER_USE= GL=gl,glu,glew \ |
61 |
IMAGEVIEWER_USE= GL=gl,glu,glew \ |
57 |
QT=buildtools,core,gui,opengl,qmake_build,widgets |
62 |
QT=buildtools,core,gui,opengl,qmake_build,widgets |
Lines 71-91
Link Here
|
71 |
RAW_CMAKE_BOOL= USE_LIBRAW |
76 |
RAW_CMAKE_BOOL= USE_LIBRAW |
72 |
RAW_LIB_DEPENDS= libraw_r.so:graphics/libraw |
77 |
RAW_LIB_DEPENDS= libraw_r.so:graphics/libraw |
73 |
|
78 |
|
|
|
79 |
TBB_DESC= Intel tbb support |
80 |
TBB_CMAKE_BOOL= USE_TBB |
81 |
TBB_LIB_DEPENDS= libtbb.so:devel/tbb |
82 |
|
74 |
TEST_CMAKE_BOOL= OIIO_BUILD_TESTS |
83 |
TEST_CMAKE_BOOL= OIIO_BUILD_TESTS |
75 |
|
84 |
|
|
|
85 |
TOOLS_DESC= Build CLI tools |
86 |
TOOLS_CMAKE_BOOL= OIIO_BUILD_TOOLS |
87 |
|
88 |
VDB_DESC= OpenVDB support |
89 |
VDB_CMAKE_BOOL= USE_OPENVDB |
90 |
VDB_LIB_DEPENDS= libopenvdb.so:misc/openvdb |
91 |
|
76 |
PLIST_SUB+= LIBVERS=${PORTVERSION} |
92 |
PLIST_SUB+= LIBVERS=${PORTVERSION} |
77 |
|
93 |
|
78 |
.include <bsd.port.options.mk> |
94 |
.include <bsd.port.options.mk> |
79 |
|
95 |
|
80 |
.if ${SLAVE_PORT} == yes |
96 |
.if ${SLAVE_PORT} == yes |
81 |
LIB_DEPENDS+= libOpenImageIO.so:graphics/openimageio \ |
97 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} |
82 |
${PY_BOOST} |
98 |
LIB_DEPENDS+= libOpenImageIO.so:graphics/openimageio |
83 |
PLIST= ${PKGDIR}/pkg-plist-pybind |
99 |
PLIST= ${PKGDIR}/pkg-plist-pybind |
84 |
USES+= python |
100 |
USES+= python |
85 |
USE_PYTHON= flavors |
101 |
USE_PYTHON= flavors |
86 |
CMAKE_ON+= USE_PYTHON |
102 |
CMAKE_ON+= USE_PYTHON |
87 |
CMAKE_OFF+= OIIO_BUILD_TOOLS USE_FFMPEG |
103 |
CMAKE_OFF+= OIIO_BUILD_TOOLS USE_FFMPEG |
88 |
CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} |
104 |
CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} \ |
|
|
105 |
-DPYBIND11_HOME:STRING="${PYTHONPREFIX_INCLUDEDIR}" |
89 |
|
106 |
|
90 |
do-install: |
107 |
do-install: |
91 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
108 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
Lines 96-105
Link Here
|
96 |
CMAKE_OFF+= USE_PYTHON |
113 |
CMAKE_OFF+= USE_PYTHON |
97 |
|
114 |
|
98 |
post-install: |
115 |
post-install: |
99 |
${LN} -sf libOpenImageIO.so.1.8 \ |
116 |
${LN} -sf libOpenImageIO.so.2.0 \ |
100 |
${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.1 |
117 |
${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.2 |
101 |
${LN} -sf libOpenImageIO_Util.so.1.8 \ |
118 |
${LN} -sf libOpenImageIO_Util.so.2.0 \ |
102 |
${STAGEDIR}${PREFIX}/lib/libOpenImageIO_Util.so.1 |
119 |
${STAGEDIR}${PREFIX}/lib/libOpenImageIO_Util.so.2 |
103 |
|
120 |
|
104 |
do-test-TEST-on: |
121 |
do-test-TEST-on: |
105 |
@cd ${BUILD_WRKSRC} && ${MAKE_CMD} ARGS=-V test |
122 |
@cd ${BUILD_WRKSRC} && ${MAKE_CMD} ARGS=-V test |