# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/vigra/vigra-1.5.0.ebuild,v 1.1 2007/01/13 14:00:08 masterdriverz Exp $ DESCRIPTION="C++ computer vision library with emphasize on customizable algorithms and data structures" HOMEPAGE="http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/" SRC_URI="http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/${P/-}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="doc fftw jpeg png tiff zlib" RDEPEND="png? ( media-libs/libpng ) tiff? ( media-libs/tiff ) jpeg? ( media-libs/jpeg ) fftw? ( >=sci-libs/fftw-3 )" DEPEND="${RDEPEND} dev-util/pkgconfig" S="${WORKDIR}/${P/-}" MY_DOCDIR="${MY_PREFIX}/share/doc/${PF}" src_compile() { ./configure \ --prefix="/usr/" \ --docdir="${D}/${MY_DOCDIR}" \ $(use_with png) \ $(use_with tiff) \ $(use_with jpeg) \ $(use_with zlib) \ $(use_with fftw) \ || die "configure failed" emake || die "emake failed" } src_install() { emake prefix="${D}/usr" install || die "emake install failed" use doc || rm -Rf "${D}/${MY_DOCDIR}" dodoc README.txt }