summaryrefslogtreecommitdiff
blob: e18dcbc519835f7315b83990b9f9cbdd93c4221c (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/nurbs++/nurbs++-3.0.11.ebuild,v 1.10 2006/05/12 22:56:55 tcort Exp $

DESCRIPTION="NURBS surfaces manipulation library"
HOMEPAGE="http://libnurbs.sourceforge.net/"
SRC_URI="mirror://sourceforge/libnurbs/${P}.tar.bz2"

LICENSE="LGPL-2"
SLOT="3"
KEYWORDS="x86 sparc"
IUSE="debug" #opengl

DEPEND="virtual/x11
	dev-lang/perl"
	#media-gfx/imagemagick # doesn't work yet either
	# opengl? ( virtual/opengl ) # doesn't work yet

src_compile() {
	local myconf=""
	#use opengl \
	#	&& myconf="${myconf} --with-opengl=/usr" \
	#	|| myconf="${myconf} --without-opengl"

	./configure \
		--with-x \
		--prefix=/usr \
		`use_enable debug` \
		`use_enable debug exception` \
		`use_enable debug verbose-exception` \
		${myconf} \
		|| die # --with-magick
	make || die
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc AUTHORS ChangeLog NEWS README
}