# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools DESCRIPTION="High Dynamic Range Images and Video manipulation tools" HOMEPAGE="http://www.mpi-inf.mpg.de/resources/pfstools/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="octave matlab imagemagick netpbm tiff openexr qt3 opengl raw" IUSE_DEFAULTS="octave -matlab +imagemagick -netpbm +tiff +openexr +qt3 -opengl -raw" DEPEND="octave? ( sci-mathematics/octave ) imagemagick? ( media-gfx/imagemagick ) tiff? ( media-libs/tiff ) netpbm? ( media-libs/netpbm ) openexr? ( media-libs/openexr ) qt3? ( x11-libs/qt:3 ) opengl? ( virtual/opengl ) raw? ( media-gfx/dcraw )" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} if use netpbm && has_version ">=media-libs/netpbm-10.41.0" ; then epatch "${FILESDIR}"/${P}-new-netpbm_gentoo.patch eautoreconf fi } src_compile() { econf \ $(use_enable octave) \ $(use_enable matlab) \ $(use_enable imagemagick) \ $(use_enable tiff) \ $(use_enable openexr) \ $(use_enable opengl) \ $(use_enable raw) \ $(use_enable qt3 qt) \ $(use_enable netpbm ppm) \ || die "configure failed" emake -j1 || die "make failed" } src_install() { emake install DESTDIR="${D}" || die "install failed" dodoc AUTHORS README TODO }