# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils autotools DESCRIPTION="A dynamic, any to any, pixel format conversion library" HOMEPAGE="http://www.gegl.org/babl/" SRC_URI="ftp://ftp.gtk.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2" LICENSE="LGPL-3" SLOT="0" KEYWORDS="alpha amd64 hppa ia64 ppc ~ppc64 sparc x86" IUSE="sse mmx" DEPEND="virtual/libc" src_prepare() { epatch "${FILESDIR}/${P}-build-fixes.patch" eautoreconf } src_configure() { econf \ $(use_enable mmx) \ $(use_enable sse) } src_install() { emake install DESTDIR="${D}" || die "emake install failed" find "${D}" -name '*.la' -delete dodoc AUTHORS ChangeLog README NEWS || die "dodoc failed" }