# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_PV=${PV//./-} MY_PV=${MY_PV/-/.} MY_PV=${MY_PV/-/.} DESCRIPTION="OpenRM is a scene graph toolkit" HOMEPAGE="http://www.openrm.org" SRC_URI="mirror://sourceforge/openrm/${PN}-devel-${MY_PV}.tar.gz" LICENSE="LGPL" SLOT="0" KEYWORDS="~x86" IUSE="debug" DEPEND="" RDEPEND="" MY_P=rm${PV/./} MY_P=${MY_P/./} MY_P=${MY_P/.*/} S=${WORKDIR}/${MY_P} src_unpack () { unpack ${A} cd ${S} pwd mv Makefile Makefile.old sed -e "s:/usr/local/${MY_P}:installdir:" Makefile.old > Makefile rm Makefile.old } src_compile () { use debug && make linux-debug ! use debug && make linux } src_install () { make install dohtml -r installdir/docs/* dodir /usr/lib cp -d installdir/lib/* ${D}usr/lib/ insinto /usr/include/rm doins installdir/include/rm/* }