Lines 5-11
DISTVERSION= 2.5.8.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 multimedia |
9 |
CATEGORIES?= graphics multimedia |
10 |
|
10 |
|
11 |
MAINTAINER?= FreeBSD@Shaneware.biz |
11 |
MAINTAINER?= FreeBSD@Shaneware.biz |
Lines 14-32
WWW= https://www.openimageio.org/
Link Here
|
14 |
|
14 |
|
15 |
LICENSE= BSD3CLAUSE |
15 |
LICENSE= BSD3CLAUSE |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= ${LOCALBASE}/include/tsl/robin_map.h:devel/robin-map |
17 |
BUILD_DEPENDS= ${LOCALBASE}/include/tsl/robin_map.h:devel/robin-map \ |
|
|
18 |
libfmt>10.0.0:devel/libfmt \ |
19 |
libjpeg-turbo>3.0.0:graphics/libjpeg-turbo |
18 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
20 |
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ |
19 |
libfmt.so:devel/libfmt \ |
|
|
20 |
libhdf5.so:science/hdf5 \ |
21 |
libImath.so:math/Imath \ |
21 |
libImath.so:math/Imath \ |
22 |
libOpenColorIO.so:graphics/opencolorio \ |
22 |
libOpenColorIO.so:graphics/opencolorio \ |
23 |
libOpenEXR.so:graphics/openexr \ |
23 |
libOpenEXR.so:graphics/openexr \ |
24 |
libheif.so:graphics/libheif \ |
24 |
libheif.so:graphics/libheif \ |
25 |
libturbojpeg.so:graphics/libjpeg-turbo \ |
|
|
26 |
libpng.so:graphics/png \ |
25 |
libpng.so:graphics/png \ |
27 |
libsquish.so:graphics/squish \ |
26 |
libpugixml.so:textproc/pugixml \ |
28 |
libtiff.so:graphics/tiff \ |
27 |
libtiff.so:graphics/tiff \ |
29 |
libwebp.so:graphics/webp |
28 |
libwebp.so:graphics/webp |
|
|
29 |
RUN_DEPENDS= libfmt>10.0.0:devel/libfmt \ |
30 |
libjpeg-turbo>3.0.0:graphics/libjpeg-turbo |
30 |
|
31 |
|
31 |
USES= cmake jpeg compiler:c++17-lang iconv:wchar_t |
32 |
USES= cmake jpeg compiler:c++17-lang iconv:wchar_t |
32 |
|
33 |
|
Lines 37-106
GH_PROJECT= OpenImageIO
Link Here
|
37 |
CMAKE_ARGS= -DCMAKE_CXX_STANDARD:INTEGER=17 # OpenVDB uses the C++17 STL |
38 |
CMAKE_ARGS= -DCMAKE_CXX_STANDARD:INTEGER=17 # OpenVDB uses the C++17 STL |
38 |
# feature std::tuple_size_v; since the slave port py-openimageio excludes |
39 |
# feature std::tuple_size_v; since the slave port py-openimageio excludes |
39 |
# options - this is a global line here |
40 |
# options - this is a global line here |
40 |
CMAKE_OFF= BUILDSTATIC INSTALL_FONTS LINKSTATIC NOTHREADS \ |
41 |
CMAKE_ON= BUILD_SHARED_LIBS USE_EXTERNAL_PUGIXML |
41 |
STOP_ON_WARNING USE_OPENSSL OIIO_DOWNLOAD_MISSING_TESTDATA \ |
42 |
CMAKE_OFF= BUILD_FMT_FORCE BUILD_MISSING_FMT INSTALL_FONTS INTERNALIZE_FMT \ |
42 |
USE_Package |
43 |
LINKSTATIC OIIO_DOWNLOAD_MISSING_TESTDATA OIIO_USING_FMT_LOCAL \ |
|
|
44 |
STOP_ON_WARNING |
45 |
|
46 |
SHL1= ${PORTVERSION:R:R:R} |
47 |
SHL2= ${PORTVERSION:R:R} |
48 |
SHL3= ${PORTVERSION:R} |
49 |
PLIST_SUB= SHL1=${SHL1} SHL2=${SHL2} SHL3=${SHL3} |
43 |
|
50 |
|
44 |
OPTIONS_DEFINE= DICOM DOCS FFMPEG FREETYPE GIF IMAGEVIEWER \ |
51 |
OPTIONS_DEFINE= DICOM DOCS FFMPEG FREETYPE GIF IMAGEVIEWER \ |
45 |
OPENCV OPENJPEG PTEX RAW TBB TEST TOOLS VDB |
52 |
OPENCV OPENJPEG PTEX RAW TBB TEST TOOLS VDB |
46 |
OPTIONS_DEFAULT= DICOM FREETYPE GIF OPENJPEG PTEX TOOLS VDB |
53 |
OPTIONS_DEFAULT= DICOM FREETYPE GIF OPENJPEG PTEX TBB TOOLS VDB |
47 |
OPTIONS_SUB= yes |
54 |
OPTIONS_SUB= yes |
48 |
|
55 |
|
49 |
DOCS_CMAKE_BOOL= INSTALL_DOCS |
|
|
50 |
DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} |
51 |
|
52 |
DICOM_DESC= DICOM/MEDICOM support |
56 |
DICOM_DESC= DICOM/MEDICOM support |
53 |
DICOM_CMAKE_BOOL= USE_DICOM |
57 |
FFMPEG_DESC= Use FFmpeg to support extra file types |
|
|
58 |
IMAGEVIEWER_DESC= Build image viewer (requires Qt) |
59 |
PTEX_DESC= ptex support |
60 |
TBB_DESC= Intel tbb support |
61 |
TOOLS_DESC= Build CLI tools |
62 |
VDB_DESC= OpenVDB support |
63 |
|
54 |
DICOM_LIB_DEPENDS= libdcmimage.so:graphics/dcmtk |
64 |
DICOM_LIB_DEPENDS= libdcmimage.so:graphics/dcmtk |
|
|
65 |
DICOM_CMAKE_BOOL= USE_DICOM |
66 |
|
67 |
DOCS_CMAKE_BOOL= INSTALL_DOCS |
68 |
DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} |
55 |
|
69 |
|
56 |
FFMPEG_DESC= Use FFmpeg to support extra file types |
|
|
57 |
FFMPEG_CMAKE_BOOL= USE_FFMPEG |
58 |
FFMPEG_LIB_DEPENDS= libavutil.so:multimedia/ffmpeg |
70 |
FFMPEG_LIB_DEPENDS= libavutil.so:multimedia/ffmpeg |
|
|
71 |
FFMPEG_CMAKE_BOOL= USE_FFMPEG |
59 |
|
72 |
|
60 |
FREETYPE_CMAKE_BOOL= USE_FREETYPE |
|
|
61 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
73 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
62 |
FREETYPE_RUN_DEPENDS= ${LOCALBASE}/share/fonts/Droid/DroidSans.ttf:x11-fonts/droid-fonts-ttf |
74 |
FREETYPE_RUN_DEPENDS= ${LOCALBASE}/share/fonts/Droid/DroidSans.ttf:x11-fonts/droid-fonts-ttf |
|
|
75 |
FREETYPE_CMAKE_BOOL= USE_FREETYPE |
63 |
|
76 |
|
64 |
GIF_CMAKE_BOOL= USE_GIF |
|
|
65 |
GIF_LIB_DEPENDS= libgif.so:graphics/giflib |
77 |
GIF_LIB_DEPENDS= libgif.so:graphics/giflib |
|
|
78 |
GIF_CMAKE_BOOL= USE_GIF |
66 |
|
79 |
|
67 |
IMAGEVIEWER_DESC= Build image viewer (requires Qt) |
|
|
68 |
IMAGEVIEWER_USES= gl qt:6 |
69 |
IMAGEVIEWER_IMPLIES= TOOLS |
80 |
IMAGEVIEWER_IMPLIES= TOOLS |
70 |
IMAGEVIEWER_CMAKE_BOOL= USE_OPENGL USE_QT |
81 |
IMAGEVIEWER_USES= gl qt:6 |
71 |
IMAGEVIEWER_USE= GL=gl,glu,glew QT=base |
82 |
IMAGEVIEWER_USE= GL=gl,glu QT=base |
|
|
83 |
IMAGEVIEWER_CMAKE_BOOL= USE_QT |
72 |
|
84 |
|
73 |
OPENCV_CMAKE_BOOL= USE_OPENCV |
|
|
74 |
OPENCV_IMPLIES= OPENJPEG |
85 |
OPENCV_IMPLIES= OPENJPEG |
75 |
OPENCV_LIB_DEPENDS= libopencv_highgui.so:graphics/opencv \ |
86 |
OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv |
76 |
libopencv_core.so:graphics/opencv |
87 |
OPENCV_CMAKE_BOOL= USE_OPENCV |
77 |
|
88 |
|
78 |
OPENJPEG_CMAKE_BOOL= USE_OPENJPEG |
|
|
79 |
OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg |
89 |
OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg |
|
|
90 |
OPENJPEG_CMAKE_BOOL= USE_OPENJPEG |
80 |
|
91 |
|
81 |
PTEX_DESC= ptex support |
|
|
82 |
PTEX_LIB_DEPENDS= libPtex.so:graphics/ptex |
92 |
PTEX_LIB_DEPENDS= libPtex.so:graphics/ptex |
83 |
|
93 |
|
84 |
RAW_CMAKE_BOOL= USE_LIBRAW |
|
|
85 |
RAW_LIB_DEPENDS= libraw_r.so:graphics/libraw |
94 |
RAW_LIB_DEPENDS= libraw_r.so:graphics/libraw |
|
|
95 |
RAW_CMAKE_BOOL= USE_LIBRAW |
86 |
|
96 |
|
87 |
TBB_DESC= Intel tbb support |
|
|
88 |
TBB_CMAKE_BOOL= USE_TBB |
89 |
TBB_LIB_DEPENDS= libtbb.so:devel/onetbb |
97 |
TBB_LIB_DEPENDS= libtbb.so:devel/onetbb |
|
|
98 |
TBB_CMAKE_BOOL= USE_TBB |
90 |
|
99 |
|
91 |
TEST_CMAKE_BOOL= OIIO_BUILD_TESTS |
100 |
TEST_CMAKE_BOOL= OIIO_BUILD_TESTS |
92 |
|
101 |
|
93 |
TOOLS_DESC= Build CLI tools |
|
|
94 |
TOOLS_CMAKE_BOOL= OIIO_BUILD_TOOLS |
102 |
TOOLS_CMAKE_BOOL= OIIO_BUILD_TOOLS |
95 |
|
103 |
|
96 |
VDB_DESC= OpenVDB support |
104 |
VDB_IMPLIES= TBB |
97 |
VDB_CMAKE_BOOL= USE_OPENVDB |
|
|
98 |
VDB_LIB_DEPENDS= libopenvdb.so:misc/openvdb |
105 |
VDB_LIB_DEPENDS= libopenvdb.so:misc/openvdb |
99 |
|
106 |
VDB_CMAKE_BOOL= USE_OPENVDB |
100 |
PLIST_SUB= SHL3=${PORTVERSION:R} SHL2=${PORTVERSION:R:R} SHL1=${PORTVERSION:R:R:R} |
|
|
101 |
SHL3= ${PORTVERSION:R} |
102 |
SHL2= ${PORTVERSION:R:R} |
103 |
SHL1= ${PORTVERSION:R:R:R} |
104 |
|
107 |
|
105 |
post-patch: |
108 |
post-patch: |
106 |
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," \ |
109 |
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," \ |
Lines 111-124
post-patch:
Link Here
|
111 |
.if ${SLAVE_PORT} == yes |
114 |
.if ${SLAVE_PORT} == yes |
112 |
BUILD_DEPENDS+= ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 |
115 |
BUILD_DEPENDS+= ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 |
113 |
LIB_DEPENDS+= libOpenImageIO.so:graphics/openimageio |
116 |
LIB_DEPENDS+= libOpenImageIO.so:graphics/openimageio |
114 |
PLIST= ${PKGDIR}/pkg-plist-pybind |
|
|
115 |
USES+= python |
117 |
USES+= python |
116 |
USE_PYTHON= flavors |
118 |
USE_PYTHON= flavors |
|
|
119 |
CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} |
117 |
CMAKE_ON+= USE_PYTHON |
120 |
CMAKE_ON+= USE_PYTHON |
118 |
# we don't need the apps built - only libs. |
121 |
# we don't need the apps built - only libs. |
119 |
CMAKE_OFF+= USE_QT USE_OPENGL OIIO_BUILD_TOOLS OIIO_BUILD_TESTS \ |
122 |
CMAKE_OFF+= EMBED_PLUGINS OIIO_BUILD_TESTS OIIO_BUILD_TOOLS USE_DICOM USE_FFMPEG USE_FREETYPE USE_GIF USE_LIBRAW USE_OPENCV USE_OPENJPEG USE_OPENVDB USE_QT USE_TBB |
120 |
EMBED_PLUGINS |
123 |
PLIST= ${PKGDIR}/pkg-plist-pybind |
121 |
CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} |
|
|
122 |
|
124 |
|
123 |
do-install: |
125 |
do-install: |
124 |
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
126 |
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |