diff options
Diffstat (limited to 'dev-games/ogre/ogre-0.12.0.ebuild')
-rw-r--r-- | dev-games/ogre/ogre-0.12.0.ebuild | 53 |
1 files changed, 29 insertions, 24 deletions
diff --git a/dev-games/ogre/ogre-0.12.0.ebuild b/dev-games/ogre/ogre-0.12.0.ebuild index f3c21c9c12bf..d0e3916ba01a 100644 --- a/dev-games/ogre/ogre-0.12.0.ebuild +++ b/dev-games/ogre/ogre-0.12.0.ebuild @@ -1,51 +1,56 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-0.12.0.ebuild,v 1.1 2003/10/02 20:04:04 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-0.12.0.ebuild,v 1.2 2003/10/02 21:50:23 mr_bones_ Exp $ +S=${WORKDIR}/ogrenew DESCRIPTION="Object-oriented Graphics Rendering Engine" HOMEPAGE="http://ogre.sourceforge.net/" -SRC_URI="mirror://sourceforge/ogre/ogre-v${PV//./-}.tar.bz2" +SRC_URI="mirror://sourceforge/ogre/${PN}-v${PV//./-}.tar.bz2" LICENSE="LGPL-2.1" -SLOT="0" KEYWORDS="x86" +SLOT="0" + IUSE="doc gtk2" -DEPEND="media-libs/libsdl - || ( dev-libs/STLport >=sys-devel/gcc-3 ) - virtual/opengl +RDEPEND="virtual/opengl + media-libs/libsdl =media-libs/freetype-2* media-libs/devil - sys-libs/zlib gtk2? ( =dev-cpp/libglademm-2* =dev-cpp/gtkmm-2* - )" - -S=${WORKDIR}/ogrenew + ) + sys-libs/zlib" +DEPEND="${RDEPEND} + >=sys-apps/sed-4 + || ( dev-libs/STLport >=sys-devel/gcc-3.0 )" src_unpack() { unpack ${A} cd ${S} - sed -i 's:noinst_HEADERS:pkginclude_HEADERS:' \ - `find PlugIns/ -name 'Makefile.am'` \ - || die "installing plugin headers" + sed -i \ + -e 's:noinst_HEADERS:pkginclude_HEADERS:' \ + `find PlugIns/ -name 'Makefile.am'` || \ + die "sed Makefile.am failed" } src_compile() { - local mycfgtk - [ `use gtk2` ] \ - && mycfgtk=gtk \ - || mycfgtk=cli - econf --with-cfgtk=${mycfgtk} || die - emake || die + local myconf="cli" + + [ `use gtk2` ] && myconf="gtk" + + econf --with-cfgtk=${myconf} || die + emake || die "emake failed" } src_install() { - make install DESTDIR=${D} || die - [ `use doc` ] && dohtml -r Docs/Docs/* Docs/Tutorials/* + make DESTDIR=${D} install || die "make install failed" + if [ `use doc` ] ; then + dohtml -r Docs/* Docs/Tutorials/* || die "dohtml failed (doc)" + fi insinto /usr/share/OGRE/Media - doins Samples/Media/* - dodoc AUTHORS BUGS LINUX.DEV README Docs/README.linux - dohtml Docs/*.html + doins Samples/Media/* || die "doins failed" + dodoc AUTHORS BUGS LINUX.DEV README Docs/README.linux || die "dodoc failed" + dohtml Docs/*.html || die "dohtml failed" } |