# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Kludge3d is a simple 3d polygonal modeler" HOMEPAGE="http://kludge3d.sourceforge.net/index.html" SRC_URI="mirror://sourceforge/kludge3d/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="3ds python" DEPEND=">=x11-libs/gtk+-2.2.0 >=x11-libs/gtkglext-1.0.0 3ds? ( >=media-libs/lib3ds-1.2.0 ) python? ( >=dev-lang/python-2.2 )" src_compile() { # lib3ds is auto-detected econf \ `use_enable python` || die "./configure failed" emake || die "emake failed" } src_install() { make install DESTDIR=${D} dodoc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \ README* TODO echo "Installing sample objects..." insinto /usr/share/${PN}/samples doins src/samples/*.ac \ src/samples/*.rgb \ src/samples/*.sgi echo "Installing sample textures..." insinto /usr/share/${PN}/pixmaps doins src/pixmaps/*.xpm echo "Installing sample scripts..." insinto /usr/share/${PN}/scripts doins scripts/*.py insinto /usr/share/${PN}/scripts/RCS doins scripts/RCS/* }