diff options
Diffstat (limited to 'media-libs/gle/gle-3.1.0-r1.ebuild')
-rw-r--r-- | media-libs/gle/gle-3.1.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-libs/gle/gle-3.1.0-r1.ebuild b/media-libs/gle/gle-3.1.0-r1.ebuild new file mode 100644 index 000000000000..b79f76c41242 --- /dev/null +++ b/media-libs/gle/gle-3.1.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/gle-3.1.0-r1.ebuild,v 1.1 2006/07/27 16:18:39 chutzpah Exp $ + +inherit autotools multilib + +# Using method from media-libs/mesa. + +DESCRIPTION="GL extrusion library" +HOMEPAGE="http://www.linas.org/gle" +SRC_URI="http://www.linas.org/gle/pub/${P}.tar.gz" + +LICENSE="Artistic GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND="virtual/opengl + virtual/glu + virtual/glut + app-admin/eselect-opengl" + +src_compile() { + # Replace inclusion of malloc.h with stdlib.h as needed by Mac OS X and + # FreeBSD. See bug #130340. + sed -i -e 's:malloc.h:stdlib.h:g' src/* + + # Don't build binary examples as they never get installed. See bug 141859. + sed -i -e 's:examples::' Makefile.am + eautoreconf + + econf --with-x \ + --x-libraries=/usr/$(get_libdir)/opengl/xorg-x11 \ + || die "econf failed." + + emake || die "emake failed." +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed." + dodoc AUTHORS ChangeLog NEWS README + use doc || rm -rf "${D}"/usr/share/doc/gle +} |