Permalink
Browse files

ENH: add openexr/openexr-1.7.0-r1.ebuild with support for prefix

  • Loading branch information...
1 parent dcffd79 commit ba5271f1079d887e1cd7df7ba34fd290f35c9e5f @npinto committed Jul 8, 2012
@@ -0,0 +1,3 @@
+AUX openexr-1.7.0-gcc43.patch 235 RMD160 2fcab554424533dbd31dc1ee09dcd168a6919fbc SHA1 1e4b79aab18a963cb4b162945109c3f9d6ee0f7d SHA256 0a6399c2a78396847eefc718a08cc6cc34f3b0db1531b1e424b5f6627562de07
+DIST openexr-1.7.0.tar.gz 13542910 RMD160 410ae4490988067cc80324e776b52ae6a261f157 SHA1 91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b SHA256 b68a2164d01bd028d15bd96af2704634a344e291dc7cc2019a662045d8c52ca4
+EBUILD openexr-1.7.0-r1.ebuild 1273 RMD160 c73a25e4a3da35950bf1691bee6fb02355c18664 SHA1 3f8bdddbb6d847052d665326112c6bbda1747968 SHA256 ffd2d3ef69553a5306f49738e8bea29835f432c50eb700f676c650401f3d4938
@@ -0,0 +1,11 @@
+--- exrenvmap/blurImage.cpp
++++ exrenvmap/blurImage.cpp
+@@ -39,6 +39,8 @@
+ //
+ //-----------------------------------------------------------------------------
+
++#include <cstring>
++
+ #include <blurImage.h>
+
+ #include <resizeImage.h>
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils libtool
+
+DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
+HOMEPAGE="http://openexr.com/"
+SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 -arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="examples static-libs"
+
+RDEPEND="sys-libs/zlib
+ >=media-libs/ilmbase-1.0.2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e "s:/var/tmp/:${T}:" \
+ IlmImfTest/tmpDir.h || die # Fix path for testsuite
+
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_enable examples imfexamples)
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="${EPREFIX}/usr/share/doc/${PF}/pdf" \
+ examplesdir="${EPREFIX}/usr/share/doc/${PF}/examples" \
+ install || die
+
+ dodoc AUTHORS ChangeLog NEWS README
+
+ if use examples; then
+ dobin IlmImfExamples/imfexamples || die
+ else
+ rm -rf "${ED}"/usr/share/doc/${PF}/examples
+ fi
+
+ find "${ED}" -name '*.la' -delete
+}

0 comments on commit ba5271f

Please sign in to comment.