# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v3 # $Header: $ DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" HOMEPAGE="http://openexr.com/" SRC_URI="download.savannah.nongnu.org/releases/openexr/${P}.tar.gz" LICENSE="ILM" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" IUSE="doc examples noviewers" RDEPEND="media-libs/ilmbase" DEPEND="${RDEPEND} dev-util/pkgconfig" PDEPEND="!noviewers? ( media-libs/openexr_viewers )" src_unpack() { unpack ${A} cd "${S}" # Replace the temporary directory used for tests. sed -i -e 's:"/var/tmp/":"'${T}'":' "IlmImfTest/tmpDir.h" } src_compile() { econf $(use_enable examples imfexamples) emake || die "emake failed" } src_install () { emake DESTDIR="${D}" examplesdir="/usr/share/doc/${PF}/examples" install || \ die "install failed" dodoc AUTHORS ChangeLog LICENSE NEWS README use doc && dodoc doc/*.pdf } pkg_postinst() { ewarn "OpenEXR may have had ABI changes." ewarn "Please run revdep-rebuild" ewarn "to rebuild programs using it" ewarn "(like KDELibs, KRita, ImageMagick, etc.)." }