# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="ALE is an image-processing program used for tasks such as image mosaicking, super-resolution, deblurring, noise reduction, anti-aliasing, and scene reconstruction." HOMEPAGE="http://auricle.dyndns.org/ALE/" SRC_URI="http://auricle.dyndns.org/ALE/download/${P}.tar.gz mirror://gentoo/${P}-docs.tar.bz2" LICENSE="GPL-2" SLOT=0 KEYWORDS="~x86 ~ppc" IUSE="fftw imagemagick doc" DEPEND="fftw? (sci-libs/fftw) imagemagick? (media-gfx/imagemagick)" src_unpack() { unpack ${A} cd "${S}" if use fftw; then sed -e "s/FFTW=0/FFTW=1/g" -i Makefile fi if use imagemagick; then sed -e "s/IMAGEMAGICK=0/IMAGEMAGICK=1/g" -i Makefile fi } src_compile() { make ale-phony } src_install() { if use doc; then cd "${WORKDIR}" dohtml -r "${P}"-docs fi cd "${S}" mkdir -p "${D}"/usr/bin/ dobin ale }