summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-10-15 22:18:46 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-10-15 22:18:46 +0000
commitd862e01113594d89de81d81e3b3dc280c64df4a6 (patch)
tree1a846cb6037591aefb8f37e3e58115b03790ae95
parentarm stable, bug #386369 (diff)
downloadhistorical-d862e01113594d89de81d81e3b3dc280c64df4a6.tar.gz
historical-d862e01113594d89de81d81e3b3dc280c64df4a6.tar.bz2
historical-d862e01113594d89de81d81e3b3dc280c64df4a6.zip
Initial commit wrt #377853 by "Shannon"
Package-Manager: portage-2.2.0_alpha67/cvs/Linux x86_64
-rw-r--r--media-libs/openimageio/ChangeLog11
-rw-r--r--media-libs/openimageio/Manifest20
-rw-r--r--media-libs/openimageio/files/openimageio-0.10.2-libpng15.patch11
-rw-r--r--media-libs/openimageio/files/openimageio-0.10.2-multilib.patch16
-rw-r--r--media-libs/openimageio/metadata.xml5
-rw-r--r--media-libs/openimageio/openimageio-0.10.2.ebuild67
6 files changed, 130 insertions, 0 deletions
diff --git a/media-libs/openimageio/ChangeLog b/media-libs/openimageio/ChangeLog
new file mode 100644
index 000000000000..2559d6a77261
--- /dev/null
+++ b/media-libs/openimageio/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-libs/openimageio
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/openimageio/ChangeLog,v 1.1 2011/10/15 22:18:46 ssuominen Exp $
+
+*openimageio-0.10.2 (15 Oct 2011)
+
+ 15 Oct 2011; Samuli Suominen <ssuominen@gentoo.org>
+ +openimageio-0.10.2.ebuild, +files/openimageio-0.10.2-libpng15.patch,
+ +files/openimageio-0.10.2-multilib.patch:
+ Initial commit wrt #377853 by "Shannon"
+
diff --git a/media-libs/openimageio/Manifest b/media-libs/openimageio/Manifest
new file mode 100644
index 000000000000..d5e475ed8347
--- /dev/null
+++ b/media-libs/openimageio/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX openimageio-0.10.2-libpng15.patch 221 RMD160 9c360aa5826ec8e9cc199b371864b2bf5d964dd2 SHA1 1024eaca857133a969a01b64595b11917cca1176 SHA256 b0ee405f8ec5e1654b3c7441f0e4e3555491d23fb139769a30ed555a84be9b1b
+AUX openimageio-0.10.2-multilib.patch 536 RMD160 2a4a4bfae236f7df9247ca5c6bb1a70f47cb444a SHA1 16ab642c922a7a46e255b5d962444cdbe51871f7 SHA256 eb0318a5eb7c8dade6f5982b60de09a1153d52cc8bb28415d8d6dd0973fb6a0e
+DIST openimageio-0.10.2.tar.gz 3534111 RMD160 0b4c6bad1c9c7ba6cb7b9647f7c446f7337a4d1e SHA1 fce46f0b536caf1e67d503a6277b2a6420856d69 SHA256 ce2ab5de557dc4bb3f1991a3bf39791d985468db561d600bd26db5b6d3711517
+EBUILD openimageio-0.10.2.ebuild 1444 RMD160 cd7eda6e75ff063dd262538f59dce86d6f1d0ea2 SHA1 90d23499175b2486d034465254fab4018ae3fe5c SHA256 524bfdf2622e9182bae52aded4e0249de18d1db31a11918d710a4461797d81db
+MISC ChangeLog 468 RMD160 61076eb9e8ec199c33c10f19a4f188ba7c529bda SHA1 959d8717581185b0524fc9da2b60e1266ae1c008 SHA256 b4b85aa40360191cd7b45ae3fd87bf2c18e45b643954d3fd91af9395a194e81e
+MISC metadata.xml 161 RMD160 60f70b15d67f0e6aafc59833b2f0a30e30b51765 SHA1 1c35398222ef7ed670c31965e42cca77fe4b1da6 SHA256 e8daadc5e27e3ef1148993b5b48d96e93bc36d798a1f416693f7f8c84be427e1
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQEcBAEBAgAGBQJOmgbAAAoJEEdUh39IaPFNvNwIAIFLX8PdzDjGq7pzfYMw4T/F
+NiBDZZkI9JEFWCBf0Dcse2bnitQTLOH7lECZIlhadK2xkyFZ1PXGFddL0H/59fk9
+ASk4OXQgtATzREGrW8Z0uKXvLzDViHdTOIxzzjiajh8bSWfxlLAWbzDo4HJC9UHV
+Z3ZoVyKZfUxgK+ZjyOKB4EJuXETTU9muyUFCIbYRBaUA8myvPVS8qJhIq+3z5MyY
+c0N0+uLjYMrVvYtmQSktXaQzTImI37d6GU4ER1UHjBrlQyYzjzTDv2q9qfLIms2t
+ItDXIV5z1BtfNfS/PuGk8TWyaJC+xfpfCXhHGL+badxkn3KggTfhOrxV2kVzvFY=
+=6IC4
+-----END PGP SIGNATURE-----
diff --git a/media-libs/openimageio/files/openimageio-0.10.2-libpng15.patch b/media-libs/openimageio/files/openimageio-0.10.2-libpng15.patch
new file mode 100644
index 000000000000..97375d5fbb7b
--- /dev/null
+++ b/media-libs/openimageio/files/openimageio-0.10.2-libpng15.patch
@@ -0,0 +1,11 @@
+--- ico.imageio/icooutput.cpp
++++ ico.imageio/icooutput.cpp
+@@ -32,6 +32,8 @@
+ #include <cstdlib>
+ #include <cmath>
+
++#include <zlib.h> /* Z_BEST_COMPRESSION */
++
+ #include "ico.h"
+ #include "../png.imageio/png_pvt.h"
+
diff --git a/media-libs/openimageio/files/openimageio-0.10.2-multilib.patch b/media-libs/openimageio/files/openimageio-0.10.2-multilib.patch
new file mode 100644
index 000000000000..3ca4faa6829e
--- /dev/null
+++ b/media-libs/openimageio/files/openimageio-0.10.2-multilib.patch
@@ -0,0 +1,16 @@
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -91,11 +91,11 @@
+
+ # Exec Install Locations
+ set (BINDIR "${CMAKE_INSTALL_PREFIX}/bin")
+-set (LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")
++set (LIBDIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
+ set (PYLIBDIR "${CMAKE_INSTALL_PREFIX}/python")
+ if (EXEC_INSTALL_PREFIX)
+ set (BINDIR "${EXEC_INSTALL_PREFIX}/bin")
+- set (LIBDIR "${EXEC_INSTALL_PREFIX}/lib")
++ set (LIBDIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
+ set (PYLIBDIR "${EXEC_INSTALL_PREFIX}/python")
+ endif ()
+
diff --git a/media-libs/openimageio/metadata.xml b/media-libs/openimageio/metadata.xml
new file mode 100644
index 000000000000..e770d1bc9a96
--- /dev/null
+++ b/media-libs/openimageio/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>graphics</herd>
+</pkgmetadata>
diff --git a/media-libs/openimageio/openimageio-0.10.2.ebuild b/media-libs/openimageio/openimageio-0.10.2.ebuild
new file mode 100644
index 000000000000..8450c449b34d
--- /dev/null
+++ b/media-libs/openimageio/openimageio-0.10.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/openimageio/openimageio-0.10.2.ebuild,v 1.1 2011/10/15 22:18:46 ssuominen Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.7"
+
+inherit cmake-utils eutils python
+
+DESCRIPTION="A library for reading and writing images"
+HOMEPAGE="http://sites.google.com/site/openimageio/ http://github.com/OpenImageIO"
+SRC_URI="http://github.com/OpenImageIO/oiio/tarball/Release-${PV} -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/boost
+ media-libs/glew
+ media-libs/ilmbase
+ media-libs/jasper
+ media-libs/libpng
+ media-libs/openexr
+ media-libs/tiff
+ sci-libs/hdf5
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg
+ virtual/opengl
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}/src
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ mv OpenImageIO-* "${WORKDIR}"/${P}
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-libpng15.patch \
+ "${FILESDIR}"/${P}-multilib.patch
+
+ sed -i \
+ -e '/^add_subdirectory (doc)/d' \
+ -e "/PYLIBDIR/s:\${CMAKE_INSTALL_PREFIX}/python:$(python_get_sitedir):" \
+ CMakeLists.txt || die
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dodoc ../{CHANGES,CREDITS,README} doc/CLA-{CORPORATE,INDIVIDUAL}
+
+ insinto /usr/share/doc/${PF}/pdf
+ doins doc/openimageio.pdf
+}