blob: 3af1bc0faa2b8bb32bb7c5cfe03fe400c5dcde75 (
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
46
|
# 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.ebuild,v 1.2 2006/07/26 13:23:50 chutzpah Exp $
inherit eutils
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
|| ( ( x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXmu
x11-libs/libXt
)
<virtual/x11-7 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-amd64-skip-example.patch
}
src_compile() {
# Replace inclusion of malloc.h with stdlib.h as needed by Mac OS X and
# FreeBSD.
sed -i -e 's:malloc.h:stdlib.h:g' src/*
econf --with-x || 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
}
|