diff options
-rw-r--r-- | media-libs/openimageio/Manifest | 1 | ||||
-rw-r--r-- | media-libs/openimageio/openimageio-1.6.13.ebuild | 100 |
2 files changed, 101 insertions, 0 deletions
diff --git a/media-libs/openimageio/Manifest b/media-libs/openimageio/Manifest index 7ef8747dac8e..cf8aaada2bc1 100644 --- a/media-libs/openimageio/Manifest +++ b/media-libs/openimageio/Manifest @@ -1,3 +1,4 @@ DIST openimageio-1.1.1.tar.gz 8217144 SHA256 a1cf6251edb597d31ccec3a74f516c3c9ce6e116dfb5edb3e4bd87d528d4700d SHA512 cf3e1371c6f0333f40506b08dc3fa6c0acecfb149e2e99159e893825e0d838db8ac1150e316e3568024568ed19bbcb473b4f38a61779a03fe9706ee476ec5943 WHIRLPOOL 78420497e1b65140f439e67c295102de5def4ed92eac1bf7b3b417d79d4634a0b149d08eafb8127aa1c5f1eb770334a14b244bee1f7af61ef31dc2abb2309aae DIST openimageio-1.1.7.tar.gz 8300700 SHA256 81ad2ab957b93155d092700d2356b2f3bb6ae010dff3077bf1403905790cc13d SHA512 5596bbd57e569e5e9437e65e7d8e45e634c20eee62cc3115f72ec57664e5cc222137c248c3302d89df58ac1efabd198adfdc867a59945cc2324bff5be18ee2c8 WHIRLPOOL cab7c2d604d890b314cdfbd912754790e5d54c9ae2094ab3caff09313bc89e09b6b9795d6ea12903fed2550c5a00dca2cf5579ec6f80a8271775b84db3bd0cfa 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 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..c6fb21973392 --- /dev/null +++ b/media-libs/openimageio/openimageio-1.6.13.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_4 ) + +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" + +RESTRICT="test" #431412 + +RDEPEND="dev-libs/boost:=[python?] + 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 ) + 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} ) + 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 +} |