# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="cal3d to OpenSceneGraph adapter development files osgCal is an adapter to use the cal3d character animation library (http://cal3d.sourceforge.net) inside the OpenSceneGraph OpenGL based 3D scene graph (http://www.openscenegraph.org)." HOMEPAGE="http://pok3d.net/" MY_P="${PN}_${PV}.orig.tar.gz" SRC_URI="http://pok3d.net/unstable/${MY_P}" SLOT="0" LICENSE="GPL-2.1" KEYWORDS="~x86 ~amd64" IUSE="debug" DEPEND=">=dev-libs/glib-2.0.0 dev-util/pkgconfig sys-devel/libtool >=media-libs/cal3d-0.11.0 media-gfx/openscenegraph dev-libs/libxml2" src_unpack() { unpack ${MY_P} if ls ${FILESDIR}/${PVR}*.patch 2>/dev/null then for i in ${FILESDIR}/${PVR}*.patch do epatch $i done fi } src_compile() { if use debug; then CXXFLAGS="-g" fi econf || die "configure failed" emake || die "emake failed" } src_install() { einstall INST_LOCATION="${D}/usr" || die "einstall failed" }