# Copyright 1999-2004 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.9 2004/06/24 23:17:32 agriffis Exp $ inherit libtool autotools 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_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/nurbs++-3.0.11-gcc34.dpatch elibtoolize } 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 verbose-exception` \ ${myconf} \ || die make || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS COPYING ChangeLog NEWS README }