diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-04-07 10:34:58 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-04-07 10:34:58 +0000 |
commit | bcfca7679395a915e7e7525676e59a83ea43301c (patch) | |
tree | 2b5557ca0d29a353086d455812df4ef0bea0c08c /x11-libs/agg/agg-2.5-r2.ebuild | |
parent | Correct Italian translation. (diff) | |
download | gentoo-2-bcfca7679395a915e7e7525676e59a83ea43301c.tar.gz gentoo-2-bcfca7679395a915e7e7525676e59a83ea43301c.tar.bz2 gentoo-2-bcfca7679395a915e7e7525676e59a83ea43301c.zip |
Fixed pkgconfig file using libagg instead of libagg_pic which was debian specific
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs/agg/agg-2.5-r2.ebuild')
-rw-r--r-- | x11-libs/agg/agg-2.5-r2.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/x11-libs/agg/agg-2.5-r2.ebuild b/x11-libs/agg/agg-2.5-r2.ebuild new file mode 100644 index 000000000000..9561d123480f --- /dev/null +++ b/x11-libs/agg/agg-2.5-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2009 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.1 2009/04/07 10:34:58 bicatali 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="X11" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="+gpc +truetype +X" + +# preffer X with enabled xcb, really +RDEPEND=" + media-libs/libsdl[X?] + X? ( x11-libs/libX11[xcb] ) + truetype? ( media-libs/freetype:2 ) +" +DEPEND="${RDEPEND} + dev-util/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 +} |