# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-libs/agg/agg-2.5-r2.ebuild,v 1.6 2012/05/05 03:52:29 jdhore Exp $ EAPI="2" inherit eutils autotools base DESCRIPTION="Anti-Grain Geometry - A High Quality Rendering Engine for C++" HOMEPAGE="http://antigrain.com/" SRC_URI="http://antigrain.com/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="+gpc +truetype +X" # preffer X with enabled xcb, really RDEPEND=" media-libs/libsdl[X?] X? ( || ( =x11-libs/libX11-1.3.99.901 ) ) truetype? ( media-libs/freetype:2 ) " DEPEND="${RDEPEND} virtual/pkgconfig " # taken from debian PATCHES=( "${FILESDIR}/${PV}/02_maintainer_mode.patch" "${FILESDIR}/${PV}/04_no_rpath.patch" ) src_prepare() { base_src_prepare sed -r -i \ -e 's:^(.*) -L@.*:\1:' \ src/platform/X11/Makefile.am || die "Failed to sed" eautoreconf } src_configure() { # examples are not (yet) installed, so do not compile them # sdl is harddep only sdl-tests are optional so we enable them anyway econf \ --enable-ctrl \ --enable-sdltest \ --disable-examples \ --disable-dependency-tracking \ $(use_enable gpc gpc) \ $(use_enable truetype freetype) \ $(use_with X x) } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc readme authors ChangeLog news }