1 |
commit: 8e0ff6b62675f28528bcd8882fd4c44ad317c655 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 25 18:02:21 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 25 18:02:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e0ff6b6 |
7 |
|
8 |
media-gfx/openvdb: add missing dependencies |
9 |
|
10 |
Add in missing dependencies: |
11 |
* media-libs/glu (subject of the bug) |
12 |
* media-libs/ilmbase (though it is a transient dep via OpenEXR) |
13 |
|
14 |
We also include dev-cpp/tbb in ${RDEPEND} rather than only |
15 |
${DEPEND}, given we link against it. |
16 |
|
17 |
Closes: https://bugs.gentoo.org/673798 |
18 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
19 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
20 |
|
21 |
media-gfx/openvdb/openvdb-4.0.2-r4.ebuild | 110 ++++++++++++++++++++++++++ |
22 |
media-gfx/openvdb/openvdb-5.2.0-r2.ebuild | 105 +++++++++++++++++++++++++ |
23 |
media-gfx/openvdb/openvdb-6.2.1-r1.ebuild | 102 +++++++++++++++++++++++++ |
24 |
media-gfx/openvdb/openvdb-7.0.0-r1.ebuild | 123 ++++++++++++++++++++++++++++++ |
25 |
media-gfx/openvdb/openvdb-7.1.0-r1.ebuild | 121 +++++++++++++++++++++++++++++ |
26 |
5 files changed, 561 insertions(+) |
27 |
|
28 |
diff --git a/media-gfx/openvdb/openvdb-4.0.2-r4.ebuild b/media-gfx/openvdb/openvdb-4.0.2-r4.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..ab2d24826d9 |
31 |
--- /dev/null |
32 |
+++ b/media-gfx/openvdb/openvdb-4.0.2-r4.ebuild |
33 |
@@ -0,0 +1,110 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
40 |
+ |
41 |
+inherit cmake flag-o-matic python-single-r1 |
42 |
+ |
43 |
+DESCRIPTION="Library for the efficient manipulation of volumetric data" |
44 |
+HOMEPAGE="https://www.openvdb.org" |
45 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
46 |
+ https://dev.gentoo.org/~dracwyrm/patches/${P}-patchset-02.tar.xz" |
47 |
+ |
48 |
+LICENSE="MPL-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="amd64 ~x86" |
51 |
+IUSE="abi3-compat +abi4-compat doc python test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+REQUIRED_USE=" |
55 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
56 |
+ ^^ ( abi3-compat abi4-compat ) |
57 |
+" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ dev-cpp/tbb |
61 |
+ dev-libs/boost:= |
62 |
+ dev-libs/c-blosc:= |
63 |
+ dev-libs/jemalloc:= |
64 |
+ dev-libs/log4cplus:= |
65 |
+ media-libs/glfw |
66 |
+ media-libs/glu |
67 |
+ media-libs/ilmbase:= |
68 |
+ media-libs/openexr:= |
69 |
+ sys-libs/zlib:= |
70 |
+ x11-libs/libXcursor |
71 |
+ x11-libs/libXi |
72 |
+ x11-libs/libXinerama |
73 |
+ x11-libs/libXrandr |
74 |
+ python? ( |
75 |
+ ${PYTHON_DEPS} |
76 |
+ $(python_gen_cond_dep ' |
77 |
+ dev-libs/boost:=[python?,${PYTHON_USEDEP}] |
78 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
79 |
+ ') |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+DEPEND="${RDEPEND}" |
84 |
+ |
85 |
+BDEPEND=" |
86 |
+ virtual/pkgconfig |
87 |
+ doc? ( |
88 |
+ app-doc/doxygen |
89 |
+ dev-texlive/texlive-bibtexextra |
90 |
+ dev-texlive/texlive-fontsextra |
91 |
+ dev-texlive/texlive-fontutils |
92 |
+ dev-texlive/texlive-latex |
93 |
+ dev-texlive/texlive-latexextra |
94 |
+ ) |
95 |
+ test? ( dev-util/cppunit ) |
96 |
+" |
97 |
+ |
98 |
+PATCHES=( |
99 |
+ "${WORKDIR}/${P}-patchset-02/0001-use-gnuinstalldirs.patch" |
100 |
+ "${WORKDIR}/${P}-patchset-02/0002-use-pkgconfig-for-ilmbase-and-openexr.patch" |
101 |
+ "${WORKDIR}/${P}-patchset-02/0003-boost-1.65-numpy-support.patch" |
102 |
+ "${FILESDIR}/${P}-findboost-fix.patch" |
103 |
+ "${FILESDIR}/${P}-fix-const-correctness-for-unittest.patch" |
104 |
+ "${FILESDIR}/${P}-fix-build-docs.patch" |
105 |
+) |
106 |
+ |
107 |
+pkg_setup() { |
108 |
+ use python && python-single-r1_pkg_setup |
109 |
+} |
110 |
+ |
111 |
+src_configure() { |
112 |
+ local myprefix="${EPREFIX}/usr/" |
113 |
+ |
114 |
+ # To stay in sync with Boost |
115 |
+ append-cxxflags -std=c++14 |
116 |
+ |
117 |
+ local version |
118 |
+ if use abi3-compat; then |
119 |
+ version=3 |
120 |
+ elif use abi4-compat; then |
121 |
+ version=4 |
122 |
+ else |
123 |
+ die "Openvdb abi version is not compatible" |
124 |
+ fi |
125 |
+ |
126 |
+ local mycmakeargs=( |
127 |
+ -DBLOSC_LOCATION="${myprefix}" |
128 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" |
129 |
+ -DGLFW3_LOCATION="${myprefix}" |
130 |
+ -DOPENVDB_BUILD_DOCS=$(usex doc) |
131 |
+ -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python) |
132 |
+ -DOPENVDB_BUILD_UNITTESTS=$(usex test) |
133 |
+ -DOPENVDB_ENABLE_3_ABI_COMPATIBLE=$(usex abi3-compat) |
134 |
+ -DOPENVDB_ENABLE_RPATH=OFF |
135 |
+ -DTBB_LOCATION="${myprefix}" |
136 |
+ -DUSE_GLFW3=ON |
137 |
+ ) |
138 |
+ |
139 |
+ use python && mycmakeargs+=( -DPYOPENVDB_INSTALL_DIRECTORY="$(python_get_sitedir)" ) |
140 |
+ use test && mycmakeargs+=( -DCPPUNIT_LOCATION="${myprefix}" ) |
141 |
+ |
142 |
+ cmake_src_configure |
143 |
+} |
144 |
|
145 |
diff --git a/media-gfx/openvdb/openvdb-5.2.0-r2.ebuild b/media-gfx/openvdb/openvdb-5.2.0-r2.ebuild |
146 |
new file mode 100644 |
147 |
index 00000000000..e7e00d1db24 |
148 |
--- /dev/null |
149 |
+++ b/media-gfx/openvdb/openvdb-5.2.0-r2.ebuild |
150 |
@@ -0,0 +1,105 @@ |
151 |
+# Copyright 1999-2020 Gentoo Authors |
152 |
+# Distributed under the terms of the GNU General Public License v2 |
153 |
+ |
154 |
+EAPI=7 |
155 |
+ |
156 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
157 |
+ |
158 |
+inherit cmake flag-o-matic python-single-r1 |
159 |
+ |
160 |
+DESCRIPTION="Library for the efficient manipulation of volumetric data" |
161 |
+HOMEPAGE="https://www.openvdb.org" |
162 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
163 |
+ |
164 |
+LICENSE="MPL-2.0" |
165 |
+SLOT="0" |
166 |
+KEYWORDS="~amd64 ~x86" |
167 |
+IUSE="abi3-compat abi4-compat +abi5-compat doc python test" |
168 |
+RESTRICT="!test? ( test )" |
169 |
+REQUIRED_USE=" |
170 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
171 |
+ ^^ ( abi3-compat abi4-compat abi5-compat ) |
172 |
+" |
173 |
+ |
174 |
+RDEPEND=" |
175 |
+ dev-cpp/tbb |
176 |
+ dev-libs/boost:= |
177 |
+ dev-libs/c-blosc:= |
178 |
+ dev-libs/jemalloc:= |
179 |
+ dev-libs/log4cplus:= |
180 |
+ media-libs/glfw |
181 |
+ media-libs/glu |
182 |
+ media-libs/ilmbase:= |
183 |
+ media-libs/openexr:= |
184 |
+ sys-libs/zlib:= |
185 |
+ x11-libs/libXcursor |
186 |
+ x11-libs/libXi |
187 |
+ x11-libs/libXinerama |
188 |
+ x11-libs/libXrandr |
189 |
+ python? ( |
190 |
+ ${PYTHON_DEPS} |
191 |
+ $(python_gen_cond_dep ' |
192 |
+ dev-libs/boost:=[python?,${PYTHON_USEDEP}] |
193 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
194 |
+ ') |
195 |
+ ) |
196 |
+" |
197 |
+ |
198 |
+DEPEND="${RDEPEND}" |
199 |
+ |
200 |
+BDEPEND=" |
201 |
+ virtual/pkgconfig |
202 |
+ doc? ( |
203 |
+ app-doc/doxygen |
204 |
+ dev-texlive/texlive-bibtexextra |
205 |
+ dev-texlive/texlive-fontsextra |
206 |
+ dev-texlive/texlive-fontutils |
207 |
+ dev-texlive/texlive-latex |
208 |
+ dev-texlive/texlive-latexextra |
209 |
+ ) |
210 |
+ test? ( dev-util/cppunit ) |
211 |
+" |
212 |
+ |
213 |
+PATCHES=( |
214 |
+ "${FILESDIR}/${P}-use-gnuinstalldirs.patch" |
215 |
+ "${FILESDIR}/${P}-use-pkgconfig-for-ilmbase-and-openexr.patch" |
216 |
+ "${FILESDIR}/${PN}-4.0.2-fix-const-correctness-for-unittest.patch" |
217 |
+ "${FILESDIR}/${PN}-4.0.2-fix-build-docs.patch" |
218 |
+) |
219 |
+ |
220 |
+pkg_setup() { |
221 |
+ use python && python-single-r1_pkg_setup |
222 |
+} |
223 |
+ |
224 |
+src_configure() { |
225 |
+ local myprefix="${EPREFIX}/usr/" |
226 |
+ |
227 |
+ local version |
228 |
+ if use abi3-compat; then |
229 |
+ version=3 |
230 |
+ elif use abi4-compat; then |
231 |
+ version=4 |
232 |
+ elif use abi5-compat; then |
233 |
+ version=5 |
234 |
+ else |
235 |
+ die "Openvdb ABI version not specified" |
236 |
+ fi |
237 |
+ |
238 |
+ local mycmakeargs=( |
239 |
+ -DBLOSC_LOCATION="${myprefix}" |
240 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" |
241 |
+ -DGLFW3_LOCATION="${myprefix}" |
242 |
+ -DOPENVDB_ABI_VERSION_NUMBER="${version}" |
243 |
+ -DOPENVDB_BUILD_DOCS=$(usex doc) |
244 |
+ -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python) |
245 |
+ -DOPENVDB_BUILD_UNITTESTS=$(usex test) |
246 |
+ -DOPENVDB_ENABLE_RPATH=OFF |
247 |
+ -DTBB_LOCATION="${myprefix}" |
248 |
+ -DUSE_GLFW3=ON |
249 |
+ ) |
250 |
+ |
251 |
+ use python && mycmakeargs+=( -DPYOPENVDB_INSTALL_DIRECTORY="$(python_get_sitedir)" ) |
252 |
+ use test && mycmakeargs+=( -DCPPUNIT_LOCATION="${myprefix}" ) |
253 |
+ |
254 |
+ cmake_src_configure |
255 |
+} |
256 |
|
257 |
diff --git a/media-gfx/openvdb/openvdb-6.2.1-r1.ebuild b/media-gfx/openvdb/openvdb-6.2.1-r1.ebuild |
258 |
new file mode 100644 |
259 |
index 00000000000..43345499ba5 |
260 |
--- /dev/null |
261 |
+++ b/media-gfx/openvdb/openvdb-6.2.1-r1.ebuild |
262 |
@@ -0,0 +1,102 @@ |
263 |
+# Copyright 1999-2020 Gentoo Authors |
264 |
+# Distributed under the terms of the GNU General Public License v2 |
265 |
+ |
266 |
+EAPI=7 |
267 |
+ |
268 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
269 |
+ |
270 |
+inherit cmake flag-o-matic python-single-r1 |
271 |
+ |
272 |
+DESCRIPTION="Library for the efficient manipulation of volumetric data" |
273 |
+HOMEPAGE="https://www.openvdb.org" |
274 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
275 |
+ |
276 |
+LICENSE="MPL-2.0" |
277 |
+SLOT="0" |
278 |
+KEYWORDS="~amd64 ~x86" |
279 |
+IUSE="abi4-compat abi5-compat +abi6-compat doc python test" |
280 |
+RESTRICT="!test? ( test )" |
281 |
+ |
282 |
+REQUIRED_USE=" |
283 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
284 |
+ ^^ ( abi4-compat abi5-compat abi6-compat ) |
285 |
+" |
286 |
+ |
287 |
+RDEPEND=" |
288 |
+ dev-cpp/tbb |
289 |
+ dev-libs/boost:= |
290 |
+ dev-libs/c-blosc:= |
291 |
+ dev-libs/jemalloc:= |
292 |
+ dev-libs/log4cplus:= |
293 |
+ media-libs/glfw |
294 |
+ media-libs/glu |
295 |
+ media-libs/ilmbase:= |
296 |
+ media-libs/openexr:= |
297 |
+ sys-libs/zlib:= |
298 |
+ x11-libs/libXcursor |
299 |
+ x11-libs/libXi |
300 |
+ x11-libs/libXinerama |
301 |
+ x11-libs/libXrandr |
302 |
+ python? ( |
303 |
+ ${PYTHON_DEPS} |
304 |
+ $(python_gen_cond_dep ' |
305 |
+ dev-libs/boost:=[python?,${PYTHON_USEDEP}] |
306 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
307 |
+ ') |
308 |
+ )" |
309 |
+ |
310 |
+DEPEND="${RDEPEND}" |
311 |
+ |
312 |
+BDEPEND=" |
313 |
+ >=dev-util/cmake-3.16.2-r1 |
314 |
+ virtual/pkgconfig |
315 |
+ doc? ( |
316 |
+ app-doc/doxygen |
317 |
+ dev-texlive/texlive-bibtexextra |
318 |
+ dev-texlive/texlive-fontsextra |
319 |
+ dev-texlive/texlive-fontutils |
320 |
+ dev-texlive/texlive-latex |
321 |
+ dev-texlive/texlive-latexextra |
322 |
+ ) |
323 |
+ test? ( dev-util/cppunit ) |
324 |
+" |
325 |
+ |
326 |
+PATCHES=( |
327 |
+ "${FILESDIR}/${P}-fix-multilib-header-source.patch" |
328 |
+ "${FILESDIR}/${PN}-4.0.2-fix-const-correctness-for-unittest.patch" |
329 |
+ "${FILESDIR}/${P}-use-gnuinstalldirs.patch" |
330 |
+) |
331 |
+ |
332 |
+pkg_setup() { |
333 |
+ use python && python-single-r1_pkg_setup |
334 |
+} |
335 |
+ |
336 |
+src_configure() { |
337 |
+ local myprefix="${EPREFIX}/usr/" |
338 |
+ |
339 |
+ local version |
340 |
+ if use abi4-compat; then |
341 |
+ version=4 |
342 |
+ elif use abi5-compat; then |
343 |
+ version=5 |
344 |
+ elif use abi6-compat; then |
345 |
+ version=6 |
346 |
+ else |
347 |
+ die "Openvdb ABI version not specified" |
348 |
+ fi |
349 |
+ |
350 |
+ local mycmakeargs=( |
351 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" |
352 |
+ -DOPENVDB_ABI_VERSION_NUMBER="${version}" |
353 |
+ -DOPENVDB_BUILD_DOCS=$(usex doc) |
354 |
+ -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python) |
355 |
+ -DOPENVDB_BUILD_UNITTESTS=$(usex test) |
356 |
+ -DOPENVDB_ENABLE_RPATH=OFF |
357 |
+ -DCHOST="${CHOST}" |
358 |
+ ) |
359 |
+ |
360 |
+ use python && mycmakeargs+=( -DPYOPENVDB_INSTALL_DIRECTORY="$(python_get_sitedir)" ) |
361 |
+ use test && mycmakeargs+=( -DCPPUNIT_LOCATION="${myprefix}" ) |
362 |
+ |
363 |
+ cmake_src_configure |
364 |
+} |
365 |
|
366 |
diff --git a/media-gfx/openvdb/openvdb-7.0.0-r1.ebuild b/media-gfx/openvdb/openvdb-7.0.0-r1.ebuild |
367 |
new file mode 100644 |
368 |
index 00000000000..2e79cc7f27c |
369 |
--- /dev/null |
370 |
+++ b/media-gfx/openvdb/openvdb-7.0.0-r1.ebuild |
371 |
@@ -0,0 +1,123 @@ |
372 |
+# Copyright 1999-2020 Gentoo Authors |
373 |
+# Distributed under the terms of the GNU General Public License v2 |
374 |
+ |
375 |
+EAPI=7 |
376 |
+ |
377 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
378 |
+ |
379 |
+inherit cmake flag-o-matic python-single-r1 |
380 |
+ |
381 |
+DESCRIPTION="Library for the efficient manipulation of volumetric data" |
382 |
+HOMEPAGE="https://www.openvdb.org" |
383 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
384 |
+ |
385 |
+LICENSE="MPL-2.0" |
386 |
+SLOT="0" |
387 |
+KEYWORDS="~amd64 ~x86" |
388 |
+IUSE="cpu_flags_x86_avx cpu_flags_x86_sse4_2 doc numpy python static-libs test utils abi5-compat abi6-compat +abi7-compat" |
389 |
+RESTRICT="!test? ( test )" |
390 |
+ |
391 |
+REQUIRED_USE=" |
392 |
+ numpy? ( python ) |
393 |
+ ^^ ( abi5-compat abi6-compat abi7-compat ) |
394 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
395 |
+" |
396 |
+ |
397 |
+RDEPEND=" |
398 |
+ dev-cpp/tbb |
399 |
+ dev-libs/boost:= |
400 |
+ dev-libs/c-blosc:= |
401 |
+ dev-libs/jemalloc:= |
402 |
+ dev-libs/log4cplus:= |
403 |
+ media-libs/glfw |
404 |
+ media-libs/glu |
405 |
+ media-libs/ilmbase:= |
406 |
+ media-libs/openexr:= |
407 |
+ sys-libs/zlib:= |
408 |
+ x11-libs/libXcursor |
409 |
+ x11-libs/libXi |
410 |
+ x11-libs/libXinerama |
411 |
+ x11-libs/libXrandr |
412 |
+ python? ( |
413 |
+ ${PYTHON_DEPS} |
414 |
+ $(python_gen_cond_dep ' |
415 |
+ dev-libs/boost:=[numpy?,python?,${PYTHON_USEDEP}] |
416 |
+ numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) |
417 |
+ ') |
418 |
+ ) |
419 |
+" |
420 |
+ |
421 |
+DEPEND="${RDEPEND}" |
422 |
+ |
423 |
+BDEPEND=" |
424 |
+ >=dev-util/cmake-3.16.2-r1 |
425 |
+ virtual/pkgconfig |
426 |
+ doc? ( |
427 |
+ app-doc/doxygen |
428 |
+ dev-texlive/texlive-bibtexextra |
429 |
+ dev-texlive/texlive-fontsextra |
430 |
+ dev-texlive/texlive-fontutils |
431 |
+ dev-texlive/texlive-latex |
432 |
+ dev-texlive/texlive-latexextra |
433 |
+ ) |
434 |
+ test? ( dev-util/cppunit ) |
435 |
+" |
436 |
+ |
437 |
+PATCHES=( |
438 |
+ "${FILESDIR}/${PN}-7.1.0-0001-Fix-multilib-header-source.patch" |
439 |
+ "${FILESDIR}/${PN}-7.1.0-0002-Fix-doc-install-dir.patch" |
440 |
+) |
441 |
+ |
442 |
+pkg_setup() { |
443 |
+ use python && python-single-r1_pkg_setup |
444 |
+} |
445 |
+ |
446 |
+src_configure() { |
447 |
+ local myprefix="${EPREFIX}/usr/" |
448 |
+ |
449 |
+ local version |
450 |
+ if use abi5-compat; then |
451 |
+ version=5 |
452 |
+ elif use abi6-compat; then |
453 |
+ version=6 |
454 |
+ elif use abi7-compat; then |
455 |
+ version=7 |
456 |
+ else |
457 |
+ die "Openvdb abi version is not compatible" |
458 |
+ fi |
459 |
+ |
460 |
+ local mycmakeargs=( |
461 |
+ -DCHOST="${CHOST}" |
462 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/" |
463 |
+ -DOPENVDB_ABI_VERSION_NUMBER="${version}" |
464 |
+ -DOPENVDB_BUILD_DOCS=$(usex doc) |
465 |
+ -DOPENVDB_BUILD_UNITTESTS=$(usex test) |
466 |
+ -DOPENVDB_BUILD_VDB_LOD=$(usex !utils) |
467 |
+ -DOPENVDB_BUILD_VDB_RENDER=$(usex !utils) |
468 |
+ -DOPENVDB_BUILD_VDB_VIEW=$(usex !utils) |
469 |
+ -DOPENVDB_CORE_SHARED=ON |
470 |
+ -DOPENVDB_CORE_STATIC=$(usex static-libs) |
471 |
+ -DOPENVDB_ENABLE_RPATH=OFF |
472 |
+ -DUSE_CCACHE=OFF |
473 |
+ -DUSE_COLORED_OUTPUT=ON |
474 |
+ -DUSE_EXR=ON |
475 |
+ -DUSE_LOG4CPLUS=ON |
476 |
+ ) |
477 |
+ |
478 |
+ if use python; then |
479 |
+ mycmakeargs+=( |
480 |
+ -DOPENVDB_BUILD_PYTHON_MODULE=ON |
481 |
+ -DUSE_NUMPY=$(usex numpy) |
482 |
+ -DPYOPENVDB_INSTALL_DIRECTORY="$(python_get_sitedir)" |
483 |
+ -DPython_EXECUTABLE="${EPYTHON}" |
484 |
+ ) |
485 |
+ fi |
486 |
+ |
487 |
+ if use cpu_flags_x86_avx; then |
488 |
+ mycmakeargs+=( -DOPENVDB_SIMD=AVX ) |
489 |
+ elif use cpu_flags_x86_sse4_2; then |
490 |
+ mycmakeargs+=( -DOPENVDB_SIMD=SSE42 ) |
491 |
+ fi |
492 |
+ |
493 |
+ cmake_src_configure |
494 |
+} |
495 |
|
496 |
diff --git a/media-gfx/openvdb/openvdb-7.1.0-r1.ebuild b/media-gfx/openvdb/openvdb-7.1.0-r1.ebuild |
497 |
new file mode 100644 |
498 |
index 00000000000..4ad1b89c2ce |
499 |
--- /dev/null |
500 |
+++ b/media-gfx/openvdb/openvdb-7.1.0-r1.ebuild |
501 |
@@ -0,0 +1,121 @@ |
502 |
+# Copyright 1999-2020 Gentoo Authors |
503 |
+# Distributed under the terms of the GNU General Public License v2 |
504 |
+ |
505 |
+EAPI=7 |
506 |
+ |
507 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
508 |
+ |
509 |
+inherit cmake flag-o-matic python-single-r1 |
510 |
+ |
511 |
+DESCRIPTION="Library for the efficient manipulation of volumetric data" |
512 |
+HOMEPAGE="https://www.openvdb.org" |
513 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
514 |
+ |
515 |
+LICENSE="MPL-2.0" |
516 |
+SLOT="0" |
517 |
+KEYWORDS="~amd64 ~x86" |
518 |
+IUSE="cpu_flags_x86_avx cpu_flags_x86_sse4_2 doc numpy python static-libs test utils abi6-compat +abi7-compat" |
519 |
+RESTRICT="!test? ( test )" |
520 |
+ |
521 |
+REQUIRED_USE=" |
522 |
+ numpy? ( python ) |
523 |
+ ^^ ( abi6-compat abi7-compat ) |
524 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
525 |
+" |
526 |
+ |
527 |
+RDEPEND=" |
528 |
+ dev-cpp/tbb |
529 |
+ dev-libs/boost:= |
530 |
+ dev-libs/c-blosc:= |
531 |
+ dev-libs/jemalloc:= |
532 |
+ dev-libs/log4cplus:= |
533 |
+ media-libs/glfw |
534 |
+ media-libs/glu |
535 |
+ media-libs/ilmbase:= |
536 |
+ media-libs/openexr:= |
537 |
+ sys-libs/zlib:= |
538 |
+ x11-libs/libXcursor |
539 |
+ x11-libs/libXi |
540 |
+ x11-libs/libXinerama |
541 |
+ x11-libs/libXrandr |
542 |
+ python? ( |
543 |
+ ${PYTHON_DEPS} |
544 |
+ $(python_gen_cond_dep ' |
545 |
+ dev-libs/boost:=[numpy?,python?,${PYTHON_USEDEP}] |
546 |
+ numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) |
547 |
+ ') |
548 |
+ ) |
549 |
+" |
550 |
+ |
551 |
+DEPEND="${RDEPEND}" |
552 |
+ |
553 |
+BDEPEND=" |
554 |
+ >=dev-util/cmake-3.16.2-r1 |
555 |
+ virtual/pkgconfig |
556 |
+ doc? ( |
557 |
+ app-doc/doxygen |
558 |
+ dev-texlive/texlive-bibtexextra |
559 |
+ dev-texlive/texlive-fontsextra |
560 |
+ dev-texlive/texlive-fontutils |
561 |
+ dev-texlive/texlive-latex |
562 |
+ dev-texlive/texlive-latexextra |
563 |
+ ) |
564 |
+ test? ( dev-util/cppunit ) |
565 |
+" |
566 |
+ |
567 |
+PATCHES=( |
568 |
+ "${FILESDIR}/${P}-0001-Fix-multilib-header-source.patch" |
569 |
+ "${FILESDIR}/${P}-0002-Fix-doc-install-dir.patch" |
570 |
+) |
571 |
+ |
572 |
+pkg_setup() { |
573 |
+ use python && python-single-r1_pkg_setup |
574 |
+} |
575 |
+ |
576 |
+src_configure() { |
577 |
+ local myprefix="${EPREFIX}/usr/" |
578 |
+ |
579 |
+ local version |
580 |
+ if use abi6-compat; then |
581 |
+ version=6 |
582 |
+ elif use abi7-compat; then |
583 |
+ version=7 |
584 |
+ else |
585 |
+ die "Openvdb abi version is not compatible" |
586 |
+ fi |
587 |
+ |
588 |
+ local mycmakeargs=( |
589 |
+ -DCHOST="${CHOST}" |
590 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/" |
591 |
+ -DOPENVDB_ABI_VERSION_NUMBER="${version}" |
592 |
+ -DOPENVDB_BUILD_DOCS=$(usex doc) |
593 |
+ -DOPENVDB_BUILD_UNITTESTS=$(usex test) |
594 |
+ -DOPENVDB_BUILD_VDB_LOD=$(usex !utils) |
595 |
+ -DOPENVDB_BUILD_VDB_RENDER=$(usex !utils) |
596 |
+ -DOPENVDB_BUILD_VDB_VIEW=$(usex !utils) |
597 |
+ -DOPENVDB_CORE_SHARED=ON |
598 |
+ -DOPENVDB_CORE_STATIC=$(usex static-libs) |
599 |
+ -DOPENVDB_ENABLE_RPATH=OFF |
600 |
+ -DUSE_CCACHE=OFF |
601 |
+ -DUSE_COLORED_OUTPUT=ON |
602 |
+ -DUSE_EXR=ON |
603 |
+ -DUSE_LOG4CPLUS=ON |
604 |
+ ) |
605 |
+ |
606 |
+ if use python; then |
607 |
+ mycmakeargs+=( |
608 |
+ -DOPENVDB_BUILD_PYTHON_MODULE=ON |
609 |
+ -DUSE_NUMPY=$(usex numpy) |
610 |
+ -DPYOPENVDB_INSTALL_DIRECTORY="$(python_get_sitedir)" |
611 |
+ -DPython_EXECUTABLE="${EPYTHON}" |
612 |
+ ) |
613 |
+ fi |
614 |
+ |
615 |
+ if use cpu_flags_x86_avx; then |
616 |
+ mycmakeargs+=( -DOPENVDB_SIMD=AVX ) |
617 |
+ elif use cpu_flags_x86_sse4_2; then |
618 |
+ mycmakeargs+=( -DOPENVDB_SIMD=SSE42 ) |
619 |
+ fi |
620 |
+ |
621 |
+ cmake_src_configure |
622 |
+} |