summaryrefslogtreecommitdiff
blob: fff96502295d4b227b8042fc56ad2d2ba1ef07b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2011 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-r2.ebuild,v 1.2 2011/01/05 10:39:40 xarthisius Exp $

EAPI=3

inherit autotools autotools-utils multilib

DESCRIPTION="GL extrusion library"
HOMEPAGE="http://www.linas.org/gle"
SRC_URI="http://www.linas.org/${PN}/pub/${P}.tar.gz"

LICENSE="Artistic GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="static-libs"

RDEPEND="virtual/opengl
	media-libs/freeglut
	app-admin/eselect-opengl"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

PATCHES=( "${FILESDIR}/${P}-autotools-r1.patch" )
DOCS=( AUTHORS README )
HTML_DOCS=( doc/html/ )

src_prepare() {
	sed -i -e 's:malloc.h:stdlib.h:g' src/* || die #130340
	autotools-utils_src_prepare
	eautoreconf
}

src_configure() {
	myeconfargs=(
		--with-x
		--x-libraries=/usr/$(get_libdir)/opengl/xorg-x11
	)
	autotools-utils_src_configure
}

src_install() {
	autotools-utils_src_install
	(cd man; for i in *.man; do newman ${i} ${i/.man/.3}; done)
}