diff options
Diffstat (limited to 'media-libs/openimageio')
-rw-r--r-- | media-libs/openimageio/Manifest | 8 | ||||
-rw-r--r-- | media-libs/openimageio/files/openimageio-1.3.5-openexr-2.x.patch | 36 | ||||
-rw-r--r-- | media-libs/openimageio/metadata.xml | 16 | ||||
-rw-r--r-- | media-libs/openimageio/openimageio-1.3.5.ebuild | 111 | ||||
-rw-r--r-- | media-libs/openimageio/openimageio-1.6.13.ebuild | 104 |
5 files changed, 275 insertions, 0 deletions
diff --git a/media-libs/openimageio/Manifest b/media-libs/openimageio/Manifest new file mode 100644 index 000000000000..e66697f1eeb9 --- /dev/null +++ b/media-libs/openimageio/Manifest @@ -0,0 +1,8 @@ +AUX openimageio-1.3.5-openexr-2.x.patch 1655 SHA256 56c7301f6028b3b43f8c6e293c1176c85e4745b834a3b3a46e97f3079b384f87 SHA512 3e7819aa866129b20d66ee371d653e80b34fd86a173a70ee280453f38d2b6815ca8fa403ddb85b2ae26a8f20dfbb6d319646b486b664933e665c48ea9ac54a87 WHIRLPOOL 21f43d7e425058672ffa308edd50ce6598f41ec60c35967ee68a80f555412d8f88121458bff713bd130ead4f7586df7ee60e7cdf95b99753c495d7ca569e857c +DIST openimageio-1.3.5.tar.gz 13472488 SHA256 18c9297e0d8b582191619a66ae6b7d9db2780f4874464ea462b22321c568a1af SHA512 15c4a53ab4d139839da9e9b4bbbf8ad6e00da98e73e0373cec136ce8f54b0ceae0daa2b1680c8ddab49e1680825a08be7778a9f1b7a13dd30e020b8a8c517b95 WHIRLPOOL d994fa07626667fa1c00ec221f7cdc5bb482fb321deb84e23fd87bc323d09372db955a338b0a6e030b7af4fcc22ecdb22b270dc2bbce532be39ed9ca2cbb3df6 +DIST openimageio-1.6.13.tar.gz 24846132 SHA256 b2989df4133d84c9b24e2b67ae8780528a49b6c088ce945e15ecefc31235a39b SHA512 8cd490b6d6a3c0b542c4bcab709897c5f35ce6844ce7465e0158ac52a1b108603ccc76439f7f2e46af2ec08be4293bda6a76ec68a959026af70a444cbbdc21d6 WHIRLPOOL 021a49be5878000c92f44132d586ee6a355c6465f2f55ee54f34dccd8459cfd945ac8bf369a1ec6f75e459a88b0035daca90dd2b7d328298ae62865f36875ddd +EBUILD openimageio-1.3.5.ebuild 2722 SHA256 fea6770f84ba14e7e5533a07701b2797a42b5b70555f71f72693990eda25aa51 SHA512 6a4bee99abe945800d5a243978429b2006743edf5868ec131518aef00515f1e1b7366d80c5540f0d768d6404e8a84c9702454f955b187ebb724403662ab34940 WHIRLPOOL 347e794e270f0551d978760e90a7ce74fff47af36ca8b29da061bf488a896144be58179bd33b6d78fb83f5e1d019fb7bba6c0cb05ac28fb672639c7c9e5de989 +EBUILD openimageio-1.6.13.ebuild 2450 SHA256 03b707a9c456108804dae68285a7d502cf2143464f5c9f60aa40f4426f78e2cc SHA512 013f8bb0e9a28ff45b4d163729b061b80b54f17d6d350e1cd2f5a84d0126b80dd8b058c3a5f4e7940b522158624e8bfe637d5259d39e2c848635b7c30f1b1707 WHIRLPOOL 80ed833ec3725488ba09d8517cfd7ef14f4224411f52f065be13b4846492e57377d49b6bd4b55522a485668dbbfc59821dfa94c2dc1aaf06b388c260e62c3ba5 +MISC ChangeLog 4195 SHA256 4991f7ef6899a86dea81954718e56738b3735c78b6dc562d2db92b3e0883d8fa SHA512 ad42184ed2dd141545f6eedba15e3b39f1886831883fa894da8dfcd5cfa6eda6fea90b5ce01e7d997e18726bd7b260ef8467d50610a793d2350e5a9b7d9ce61b WHIRLPOOL 8f4a9dbcb4d9138717fde0799466a81b10d7aa26f831031e1c61abcfad3b20c1b0941c08cdbcf70b4ca4594a51ca4481a9e6897419c2908b4bfa959e6f2e765d +MISC ChangeLog-2015 5069 SHA256 2b072dab1d0a7a738560176fe1d62e5aba013c17d2cf652fcf7b97845ec76cc5 SHA512 71566e59c893eebfe93b94740397aaa4618e3385e55ec8b19192c451a5db50a80265b07a13fef2d3ab22f1dae73bd7db3666eb95b53c6d42c8908a4119b3f4a7 WHIRLPOOL 8e6461d6c1d60117e775db19ef4be7ac5ab50598efa0f83370edc8dc5233be0d9e65e6eaf82b70bf436d1add08f06caa3323093536370dc765212d9418583b0b +MISC metadata.xml 538 SHA256 c782a873216b379c2967a1424fc9c89abf6e2ff00ce0bc8beedb1aff55672a99 SHA512 ffc7d1fc069a542539fb68033f24a0f2f2daf69269fd33af58a2cb90a38223c0ca292dd742eec88af1648db1f4fdee2e1ef0fc4e171f5b7c30298d982ccc73b7 WHIRLPOOL 6cdd3742a682d85f44f0ed956e8f27b2b22278b8402aca1139cc5cf20260336f8121b6ba27c26d4e35013dfce818426601f77ee478162a93636b75bde6b43d6f diff --git a/media-libs/openimageio/files/openimageio-1.3.5-openexr-2.x.patch b/media-libs/openimageio/files/openimageio-1.3.5-openexr-2.x.patch new file mode 100644 index 000000000000..0668f0466a9a --- /dev/null +++ b/media-libs/openimageio/files/openimageio-1.3.5-openexr-2.x.patch @@ -0,0 +1,36 @@ +There is no IlmBaseConfig.h in OpenEXR 2.x + +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_mutexattr_init' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_mutexattr_settype' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_mutexattr_destroy' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_spin_lock' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_spin_unlock' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_spin_destroy' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_spin_init' +../libOpenImageIO/libOpenImageIO.so.1.3.5: error: undefined reference to 'pthread_detach' + +--- src/cmake/modules/FindIlmBase.cmake ++++ src/cmake/modules/FindIlmBase.cmake +@@ -176,17 +176,11 @@ + set (ILMBASE_CACHED_STATE ${ILMBASE_CURRENT_STATE} + CACHE INTERNAL "State last seen by FindIlmBase.cmake" FORCE) + +-# Link with pthreads if required +-if (NOT WIN32 AND EXISTS ${ILMBASE_INCLUDE_DIR}/OpenEXR/IlmBaseConfig.h) +- file (STRINGS ${ILMBASE_INCLUDE_DIR}/OpenEXR/IlmBaseConfig.h +- ILMBASE_HAVE_PTHREAD +- REGEX "^[ \\t]*#define[ \\t]+HAVE_PTHREAD[ \\t]1[ \\t]*\$" +- ) +- if (ILMBASE_HAVE_PTHREAD) +- find_package (Threads) +- if (CMAKE_USE_PTHREADS_INIT) +- set (ILMBASE_PTHREADS ${CMAKE_THREAD_LIBS_INIT}) +- endif () ++# Always link to pthreads for OpenEXR 2.x ++if (NOT WIN32) ++ find_package (Threads) ++ if (CMAKE_USE_PTHREADS_INIT) ++ set (ILMBASE_PTHREADS ${CMAKE_THREAD_LIBS_INIT}) + endif () + endif () + diff --git a/media-libs/openimageio/metadata.xml b/media-libs/openimageio/metadata.xml new file mode 100644 index 000000000000..f8f22f8b6fd2 --- /dev/null +++ b/media-libs/openimageio/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>graphics@gentoo.org</email> + <name>Gentoo Graphics Project</name> + </maintainer> + <use> + <flag name="colorio">Use <pkg>media-libs/opencolorio</pkg></flag> + <flag name="opencv">Use <pkg>media-libs/opencv</pkg></flag> + <flag name="tbb">Use <pkg>dev-cpp/tbb</pkg></flag> + </use> + <upstream> + <remote-id type="github">OpenImageIO/oiio</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/openimageio/openimageio-1.3.5.ebuild b/media-libs/openimageio/openimageio-1.3.5.ebuild new file mode 100644 index 000000000000..3345e91ee5bf --- /dev/null +++ b/media-libs/openimageio/openimageio-1.3.5.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils multilib python-single-r1 vcs-snapshot + +DESCRIPTION="A library for reading and writing images" +HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" +SRC_URI="https://github.com/OpenImageIO/oiio/archive/Release-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86" +IUSE="gif jpeg2k colorio opencv opengl python qt4 ssl tbb +truetype" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RESTRICT="test" #431412 + +RDEPEND=" + dev-libs/boost:= + dev-libs/pugixml:= + media-libs/glew:= + media-libs/ilmbase:= + media-libs/libpng:0= + >=media-libs/libwebp-0.2.1:= + media-libs/openexr:= + media-libs/tiff:0= + sci-libs/hdf5 + sys-libs/zlib:= + virtual/jpeg:0 + gif? ( media-libs/giflib ) + jpeg2k? ( >=media-libs/openjpeg-1.5:0= ) + colorio? ( >=media-libs/opencolorio-1.0.7:= ) + opencv? ( + >=media-libs/opencv-2.3:= + python? ( >=media-libs/opencv-2.4.8[python,${PYTHON_USEDEP}] ) + ) + opengl? ( + virtual/glu + virtual/opengl + ) + python? ( + ${PYTHON_DEPS} + dev-libs/boost:=[python,${PYTHON_USEDEP}] + ) + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + ) + ssl? ( dev-libs/openssl:0 ) + tbb? ( dev-cpp/tbb ) + truetype? ( media-libs/freetype:2= )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}/src + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-openexr-2.x.patch + + # remove bundled code to make it build + # https://github.com/OpenImageIO/oiio/issues/403 + rm */pugixml* || die + + # fix man page building + # https://github.com/OpenImageIO/oiio/issues/404 + use qt4 || sed -i -e '/list.*APPEND.*cli_tools.*iv/d' doc/CMakeLists.txt + + use python && python_fix_shebang . +} + +src_configure() { + local mycmakeargs=( + -DLIB_INSTALL_DIR="/usr/$(get_libdir)" + -DBUILDSTATIC=OFF + -DLINKSTATIC=OFF + $(use python && echo -DPYLIB_INSTALL_DIR="$(python_get_sitedir)") + -DUSE_EXTERNAL_PUGIXML=ON + -DUSE_FIELD3D=OFF # missing in Portage + -DOIIO_BUILD_TESTS=OFF # as they are RESTRICTed + -DSTOP_ON_WARNING=OFF + $(cmake-utils_use_use truetype freetype) + $(cmake-utils_use_use colorio OCIO) + $(cmake-utils_use_use opencv) + $(cmake-utils_use_use opengl) + $(cmake-utils_use_use jpeg2k OPENJPEG) + $(cmake-utils_use_use python) + $(cmake-utils_use_use qt4 QT) + $(cmake-utils_use_use tbb) + $(cmake-utils_use_use ssl OPENSSL) + $(cmake-utils_use_use gif) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + rm -rf "${ED}"/usr/share/doc + dodoc ../{CHANGES,CREDITS,README*} # doc/CLA-{CORPORATE,INDIVIDUAL} + docinto pdf + dodoc doc/*.pdf +} diff --git a/media-libs/openimageio/openimageio-1.6.13.ebuild b/media-libs/openimageio/openimageio-1.6.13.ebuild new file mode 100644 index 000000000000..79e741306159 --- /dev/null +++ b/media-libs/openimageio/openimageio-1.6.13.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit cmake-utils python-single-r1 vcs-snapshot + +DESCRIPTION="A library for reading and writing images" +HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" +SRC_URI="https://github.com/OpenImageIO/oiio/archive/Release-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86" +IUSE="colorio ffmpeg gif jpeg2k opencv opengl python qt4 raw ssl +truetype" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RESTRICT="test" #431412 + +RDEPEND=" + dev-libs/boost:= + dev-libs/pugixml:= + media-libs/ilmbase:= + media-libs/libpng:0= + >=media-libs/libwebp-0.2.1:= + media-libs/openexr:= + media-libs/tiff:0= + sys-libs/zlib:= + virtual/jpeg:0 + colorio? ( >=media-libs/opencolorio-1.0.7:= ) + ffmpeg? ( media-video/ffmpeg:= ) + gif? ( media-libs/giflib:0= ) + jpeg2k? ( >=media-libs/openjpeg-1.5:0= ) + opencv? ( + >=media-libs/opencv-2.3:= + python? ( >=media-libs/opencv-2.4.8[python,${PYTHON_USEDEP}] ) + ) + opengl? ( + virtual/glu + virtual/opengl + ) + python? ( + ${PYTHON_DEPS} + dev-libs/boost:=[python,${PYTHON_USEDEP}] + ) + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + media-libs/glew:= + ) + raw? ( media-libs/libraw:= ) + ssl? ( dev-libs/openssl:0 ) + truetype? ( media-libs/freetype:2= )" +DEPEND="${RDEPEND}" + +#S=${WORKDIR}/${P}/src + +DOCS=( CHANGES CREDITS README.rst src/doc/${PN}.pdf ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + use python && python_fix_shebang . +} + +src_configure() { + local mycmakeargs=( + -DLIB_INSTALL_DIR="/usr/$(get_libdir)" + -DBUILDSTATIC=OFF + -DLINKSTATIC=OFF + -DINSTALL_DOCS=OFF + -DOIIO_BUILD_TESTS=OFF # as they are RESTRICTed + $(use python && echo -DPYLIB_INSTALL_DIR="$(python_get_sitedir)") + -DSTOP_ON_WARNING=OFF + -DUSE_EXTERNAL_PUGIXML=ON + -DUSE_FIELD3D=OFF # missing in Portage + -DUSE_FREETYPE=$(usex truetype) + -DUSE_FFMPEG=$(usex ffmpeg) + -DUSE_GIF=$(usex gif) + -DUSE_OCIO=$(usex colorio) + -DUSE_OPENCV=$(usex opencv) + -DUSE_OPENGL=$(usex opengl) + -DUSE_OPENJPEG=$(usex jpeg2k) + -DUSE_OPENSSL=$(usex ssl) + -DUSE_PYTHON=$(usex python) + -DUSE_LIBRAW=$(usex raw) + -DUSE_QT=$(usex qt4) + ) + + if [[ ${EPYTHON} == python3* ]]; then + mycmakeargs+=( -DUSE_PYTHON3=ON ) + else + mycmakeargs+=( -DUSE_PYTHON3=OFF ) + fi + + cmake-utils_src_configure +} |