# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A fast, modern and generic image processing library" HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/" SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="agg expat jasper jpeg lcms lua openexr php perl python ruby swig tiff" DEPEND="media-libs/freetype agg? ( x11-libs/agg ) expat? ( dev-libs/expat ) jasper? ( media-libs/jasper ) jpeg? ( media-libs/jpeg ) lcms? ( media-libs/lcms ) lua? ( dev-lang/lua ) openexr? ( media-libs/openexr ) php? ( dev-lang/php ) perl? ( sys-devel/libperl ) python? ( dev-lang/python ) ruby? ( dev-lang/ruby ) swig? ( dev-lang/swig ) tiff? ( media-libs/tiff ) " RDEPEND="${DEPEND}" src_compile() { # libungif is not supported by Gentoo pkg_conf="--without-libungif --with-freetype --without-x11 --without-evas \ --without-bardecode --prefix=/usr" use_conf="$(use_with jpeg libjpeg) $(use_with lua) $(use_with php) \ $(use_with ruby) $(use_with python) $(use_with swig) \ $(use_with X x11) $(use_with agg libagg) $(use_with lcms) \ $(use_with tiff libtiff) $(use_with expat) $(use_with openexr) \ $(use_with jasper)" # cannot use econf, as configure script is no autotools configure ./configure ${pkg_conf} ${use_conf} || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }