1 |
commit: ab9b7bc19964be0d1f02c13f473cf696b77772f8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 2 21:52:51 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 2 21:54:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab9b7bc1 |
7 |
|
8 |
media-libs/openimageio: bump to 2.2.9.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-libs/openimageio/Manifest | 1 + |
14 |
media-libs/openimageio/openimageio-2.2.9.0.ebuild | 138 ++++++++++++++++++++++ |
15 |
2 files changed, 139 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/openimageio/Manifest b/media-libs/openimageio/Manifest |
18 |
index f3b206c5603..8a898c0f3c5 100644 |
19 |
--- a/media-libs/openimageio/Manifest |
20 |
+++ b/media-libs/openimageio/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST openimageio-2.2.8.0.tar.gz 29201949 BLAKE2B b77e42dddfaa6a8dff174b89e43c7de158efcae0e851037a97f1f46127f5cda458bdc7b64172c1fe64236d5ace351c9a432c2e857467c7f83b59dc9f6670fbeb SHA512 7bb94832734b4354d961003ec7f85fa30e4a69d7f825c5668a0230d857f8c137dd522730ec5089db012f0d843fc67368c731458a3d6de9ae41dabfb4cc30592e |
23 |
+DIST openimageio-2.2.9.0.tar.gz 29216767 BLAKE2B 92c17de4687d3d7390602a02dedc5afc1258018cef98e671977fb706c3fe1e80c30416fff89ff1b9936f0f1426eab0136e130efb4a41d7378d3f1eb77eab193a SHA512 d03500c5a9f4f1417c5629098254d1bbf032a17228898e5f087e4a5d0988f806537d3ab538366e64c51172568c3688389ab29b641fdaaf7208bf939cb859e06d |
24 |
|
25 |
diff --git a/media-libs/openimageio/openimageio-2.2.9.0.ebuild b/media-libs/openimageio/openimageio-2.2.9.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2ddc9e37ad5 |
28 |
--- /dev/null |
29 |
+++ b/media-libs/openimageio/openimageio-2.2.9.0.ebuild |
30 |
@@ -0,0 +1,138 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6..9} ) |
37 |
+inherit cmake python-single-r1 |
38 |
+ |
39 |
+DESCRIPTION="A library for reading and writing images" |
40 |
+HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" |
41 |
+SRC_URI="https://github.com/OpenImageIO/oiio/archive/Release-${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+S="${WORKDIR}/oiio-Release-${PV}" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0/2.2" |
46 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
47 |
+ |
48 |
+X86_CPU_FEATURES=( |
49 |
+ aes:aes sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2 |
50 |
+ avx:avx avx2:avx2 avx512f:avx512f f16c:f16c |
51 |
+) |
52 |
+CPU_FEATURES=( ${X86_CPU_FEATURES[@]/#/cpu_flags_x86_} ) |
53 |
+ |
54 |
+IUSE="dicom doc ffmpeg field3d gif jpeg2k opencv opengl openvdb ptex python qt5 raw +truetype ${CPU_FEATURES[@]%:*}" |
55 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
56 |
+ |
57 |
+# test data in separate repo |
58 |
+# second repo has no structure whatsoever |
59 |
+RESTRICT="test" |
60 |
+ |
61 |
+BDEPEND=" |
62 |
+ doc? ( |
63 |
+ app-doc/doxygen |
64 |
+ dev-texlive/texlive-bibtexextra |
65 |
+ dev-texlive/texlive-fontsextra |
66 |
+ dev-texlive/texlive-fontutils |
67 |
+ dev-texlive/texlive-latex |
68 |
+ dev-texlive/texlive-latexextra |
69 |
+ ) |
70 |
+" |
71 |
+RDEPEND=" |
72 |
+ >=dev-libs/boost-1.62:= |
73 |
+ dev-cpp/robin-map |
74 |
+ dev-libs/libfmt:= |
75 |
+ dev-libs/pugixml:= |
76 |
+ >=media-libs/ilmbase-2.2.0-r1:= |
77 |
+ >=media-libs/libheif-1.7.0:= |
78 |
+ media-libs/libpng:0= |
79 |
+ >=media-libs/libwebp-0.2.1:= |
80 |
+ media-libs/opencolorio:= |
81 |
+ >=media-libs/openexr-2.2.0-r2:= |
82 |
+ media-libs/tiff:0= |
83 |
+ sys-libs/zlib:= |
84 |
+ virtual/jpeg:0 |
85 |
+ dicom? ( sci-libs/dcmtk ) |
86 |
+ ffmpeg? ( media-video/ffmpeg:= ) |
87 |
+ field3d? ( media-libs/Field3D:= ) |
88 |
+ gif? ( media-libs/giflib:0= ) |
89 |
+ jpeg2k? ( >=media-libs/openjpeg-2.0:2= ) |
90 |
+ opencv? ( media-libs/opencv:= ) |
91 |
+ opengl? ( |
92 |
+ media-libs/glew:= |
93 |
+ virtual/glu |
94 |
+ virtual/opengl |
95 |
+ ) |
96 |
+ openvdb? ( |
97 |
+ dev-cpp/tbb:= |
98 |
+ media-gfx/openvdb:= |
99 |
+ ) |
100 |
+ ptex? ( media-libs/ptex:= ) |
101 |
+ python? ( |
102 |
+ ${PYTHON_DEPS} |
103 |
+ $(python_gen_cond_dep ' |
104 |
+ dev-libs/boost:=[python,${PYTHON_USEDEP}] |
105 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
106 |
+ dev-python/pybind11[${PYTHON_USEDEP}] |
107 |
+ ') |
108 |
+ ) |
109 |
+ qt5? ( |
110 |
+ dev-qt/qtcore:5 |
111 |
+ dev-qt/qtgui:5 |
112 |
+ dev-qt/qtwidgets:5 |
113 |
+ opengl? ( dev-qt/qtopengl:5 ) |
114 |
+ ) |
115 |
+ raw? ( media-libs/libraw:= ) |
116 |
+ truetype? ( media-libs/freetype:2= ) |
117 |
+" |
118 |
+DEPEND="${RDEPEND}" |
119 |
+ |
120 |
+DOCS=( CHANGES.md CREDITS.md README.md ) |
121 |
+ |
122 |
+pkg_setup() { |
123 |
+ use python && python-single-r1_pkg_setup |
124 |
+} |
125 |
+ |
126 |
+src_prepare() { |
127 |
+ cmake_src_prepare |
128 |
+ cmake_comment_add_subdirectory src/fonts |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ # Build with SIMD support |
133 |
+ local cpufeature |
134 |
+ local mysimd=() |
135 |
+ for cpufeature in "${CPU_FEATURES[@]}"; do |
136 |
+ use "${cpufeature%:*}" && mysimd+=("${cpufeature#*:}") |
137 |
+ done |
138 |
+ |
139 |
+ # If no CPU SIMDs were used, completely disable them |
140 |
+ [[ -z ${mysimd} ]] && mysimd=("0") |
141 |
+ |
142 |
+ local mycmakeargs=( |
143 |
+ -DVERBOSE=ON |
144 |
+ -DOIIO_BUILD_TESTS=OFF |
145 |
+ -DBUILD_DOCS=$(usex doc) |
146 |
+ -DINSTALL_DOCS=$(usex doc) |
147 |
+ -DSTOP_ON_WARNING=OFF |
148 |
+ -DUSE_DCMTK=$(usex dicom) |
149 |
+ -DUSE_EXTERNAL_PUGIXML=ON |
150 |
+ -DUSE_JPEGTURBO=ON |
151 |
+ -DUSE_NUKE=OFF # not in Gentoo |
152 |
+ -DUSE_FFMPEG=$(usex ffmpeg) |
153 |
+ -DUSE_FIELD3D=$(usex field3d) |
154 |
+ -DUSE_GIF=$(usex gif) |
155 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
156 |
+ -DUSE_OPENCV=$(usex opencv) |
157 |
+ -DUSE_OPENGL=$(usex opengl) |
158 |
+ -DUSE_OPENVDB=$(usex openvdb) |
159 |
+ -DUSE_PTEX=$(usex ptex) |
160 |
+ -DUSE_PYTHON=$(usex python) |
161 |
+ -DUSE_QT=$(usex qt5) |
162 |
+ -DUSE_LIBRAW=$(usex raw) |
163 |
+ -DUSE_FREETYPE=$(usex truetype) |
164 |
+ -DUSE_SIMD=$(local IFS=','; echo "${mysimd[*]}") |
165 |
+ ) |
166 |
+ |
167 |
+ cmake_src_configure |
168 |
+} |