diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-03 22:19:53 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-03 22:19:53 +0000 |
commit | cf10ddbd74163e16eaf6b0dc5f284532bc950aba (patch) | |
tree | 6cf267ca2addb7eeda0600a737c9a002020511e5 /dev-games | |
parent | Revision bump. Added support for the curl USE flag that allows network-based ... (diff) | |
download | gentoo-2-cf10ddbd74163e16eaf6b0dc5f284532bc950aba.tar.gz gentoo-2-cf10ddbd74163e16eaf6b0dc5f284532bc950aba.tar.bz2 gentoo-2-cf10ddbd74163e16eaf6b0dc5f284532bc950aba.zip |
Version bump #83306 by Matthew Gates / Mark Dillavou / Michael Kedzierski / etc...
(Portage version: 2.0.51.21)
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/ogre/ChangeLog | 11 | ||||
-rw-r--r-- | dev-games/ogre/files/digest-ogre-1.0.1 | 1 | ||||
-rw-r--r-- | dev-games/ogre/files/ogre-1.0.1-autotools.patch | 102 | ||||
-rw-r--r-- | dev-games/ogre/ogre-1.0.1.ebuild | 90 |
4 files changed, 202 insertions, 2 deletions
diff --git a/dev-games/ogre/ChangeLog b/dev-games/ogre/ChangeLog index b2a69ade610d..ad00a7a77f67 100644 --- a/dev-games/ogre/ChangeLog +++ b/dev-games/ogre/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-games/ogre -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ChangeLog,v 1.16 2005/01/01 18:02:38 eradicator Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ChangeLog,v 1.17 2005/05/03 22:19:53 vapier Exp $ + +*ogre-1.0.1 (03 May 2005) + + 03 May 2005; Mike Frysinger <vapier@gentoo.org> + +files/ogre-1.0.1-autotools.patch, +ogre-1.0.1.ebuild: + Version bump #83306 by Matthew Gates / Mark Dillavou / Michael Kedzierski / + etc... *ogre-0.15.1 (10 Dec 2004) diff --git a/dev-games/ogre/files/digest-ogre-1.0.1 b/dev-games/ogre/files/digest-ogre-1.0.1 new file mode 100644 index 000000000000..4b86a9e83ebd --- /dev/null +++ b/dev-games/ogre/files/digest-ogre-1.0.1 @@ -0,0 +1 @@ +MD5 99dbfbce1b7080ff9f9eb29ba9a0ff23 ogre-linux_osx-v1-0-1.tar.bz2 19755866 diff --git a/dev-games/ogre/files/ogre-1.0.1-autotools.patch b/dev-games/ogre/files/ogre-1.0.1-autotools.patch new file mode 100644 index 000000000000..9d759a5b9d86 --- /dev/null +++ b/dev-games/ogre/files/ogre-1.0.1-autotools.patch @@ -0,0 +1,102 @@ +Autotool code has a bunch of random mistakes, lets fix them. + +- crosscompiling should look at $host, not at $build or $target +- use AC_MSG_RESULT() instead of doing a 'raw' echo +- AC_ARG_WITH / AC_ARG_ENABLE handles 3rd param incorrectly +- threading support uses boost but never links it in !? + +--- acinclude.m4 ++++ acinclude.m4 +@@ -278,3 +278,3 @@ + AC_DEFUN([OGRE_SETUP_FOR_TARGET], +-[case $target in ++[case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32*) +@@ -324,9 +324,9 @@ + [Build the OpenEXR plugin]), +- [build_exr=true], +- [build_exr=false]) ++ [build_exr=$enableval], ++ [build_exr=no]) + +-if test "x$build_exr" = "xtrue" ; then +- PKG_CHECK_MODULES(OPENEXR, OpenEXR, [build_exr=true], [build_exr=false]) ++if test "x$build_exr" = "xyes" ; then ++ PKG_CHECK_MODULES(OPENEXR, OpenEXR, [build_exr=yes], [build_exr=no]) + +- if test "x$build_exr" = "xtrue" ; then ++ if test "x$build_exr" = "xyes" ; then + AC_CONFIG_FILES([ PlugIns/EXRCodec/Makefile \ +@@ -341,3 +341,3 @@ + +-AM_CONDITIONAL(BUILD_EXRPLUGIN, test x$build_exr = xtrue) ++AM_CONDITIONAL(BUILD_EXRPLUGIN, test x$build_exr = xyes) + +@@ -380,6 +380,6 @@ + [Build the DirectX 9 Render System]), +- [build_dx9=true], +- [build_dx9=false]) ++ [build_dx9=$enableval], ++ [build_dx9=no]) + +-AM_CONDITIONAL(BUILD_DX9RENDERSYSTEM, test x$build_dx9 = xtrue) ++AM_CONDITIONAL(BUILD_DX9RENDERSYSTEM, test x$build_dx9 = xyes) + +@@ -391,8 +391,8 @@ + [Don't use DevIL for image loading. This is not recommended unless you provide your own image loading codecs.]), +- [build_il=false], +- [build_il=true]) ++ [build_il=$enableval], ++ [build_il=yes]) + +-AM_CONDITIONAL(USE_DEVIL, test x$build_il = xtrue) ++AM_CONDITIONAL(USE_DEVIL, test x$build_il = xyes) + +-if [ test x$build_il = xtrue ]; then ++if test x$build_il = xyes ; then + AC_CHECK_LIB(IL, ilInit,,AC_MSG_ERROR([ +@@ -418,9 +418,9 @@ + AC_MSG_CHECKING([whether -fPIC is needed]) +- case $build in ++ case $host in + x86_64-*) + CXXFLAGS="$CXXFLAGS -fPIC" +- echo "yes" ++ AC_MSG_RESULT(yes) + ;; + *) +- echo "no" ++ AC_MSG_RESULT(no) + ;; +@@ -459,3 +459,3 @@ + AC_DEFINE([OGRE_DOUBLE_PRECISION], [1], [Build with double precision]) +- echo "yes" ++ AC_MSG_RESULT(yes) + ;; +@@ -463,3 +463,3 @@ + AC_DEFINE([OGRE_DOUBLE_PRECISION], [0], [Build with double precision]) +- echo "no" ++ AC_MSG_RESULT(no) + ;; +@@ -479,3 +479,4 @@ + AC_DEFINE([OGRE_THREAD_SUPPORT], [1], [Build with thread support]) +- echo "yes" ++ OGRE_THREAD_LIBS="-lboost_thread-mt" ++ AC_MSG_RESULT(yes) + ;; +@@ -483,5 +484,7 @@ + AC_DEFINE([OGRE_THREAD_SUPPORT], [0], [Build with thread support]) +- echo "no" ++ OGRE_THREAD_LIBS="" ++ AC_MSG_RESULT(no) + ;; + esac ++AC_SUBST(OGRE_THREAD_LIBS) + ]) +--- OgreMain/src/Makefile.am.orig 2005-05-03 13:33:08.000000000 -0400 ++++ OgreMain/src/Makefile.am 2005-05-03 13:37:12.000000000 -0400 +@@ -156,3 +156,3 @@ + +-libOgreMain_la_LIBADD= $(STLPORT_LIBS) $(FT2_LIBS) $(ZZIPLIB_LIBS) ++libOgreMain_la_LIBADD= $(STLPORT_LIBS) $(FT2_LIBS) $(ZZIPLIB_LIBS) $(OGRE_THREAD_LIBS) + libOgreMain_la_LDFLAGS = $(SHARED_FLAGS) -version-info @OGREMAIN_VERSION_INFO@ diff --git a/dev-games/ogre/ogre-1.0.1.ebuild b/dev-games/ogre/ogre-1.0.1.ebuild new file mode 100644 index 000000000000..5373f252d143 --- /dev/null +++ b/dev-games/ogre/ogre-1.0.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-1.0.1.ebuild,v 1.1 2005/05/03 22:19:53 vapier Exp $ + +inherit eutils libtool + +DESCRIPTION="Object-oriented Graphics Rendering Engine" +HOMEPAGE="http://www.ogre3d.org/" +SRC_URI="mirror://sourceforge/ogre/${PN}-linux_osx-v${PV//./-}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cegui cg devil double-precision doc gtk opengl openexr sdl threads" + +RDEPEND=">=dev-libs/zziplib-0.13.36 + =media-libs/freetype-2* + cegui? ( >=dev-games/cegui-0.2.0 ) + devil? ( >=media-libs/devil-1.5 ) + openexr? ( >=media-libs/openexr-1.2 ) + sdl? ( >=media-libs/libsdl-1.2.6 ) + !sdl? ( !opengl ( + =dev-cpp/gtkglextmm-1.0* + =dev-cpp/libglademm-2.2* + ) ) + gtk? ( + =dev-cpp/libglademm-2.2* + =dev-cpp/gtkmm-2.2* + ) + virtual/opengl + sys-libs/zlib" +DEPEND="${RDEPEND} + sys-devel/flex + cg? ( >=media-gfx/nvidia-cg-toolkit-1.2 )" + +S=${WORKDIR}/ogrenew + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-autotools.patch + ./bootstrap || die "bootstrap failed" +} + +src_compile() { + # For the config toolkit: + # USE="gtk" -> gtk + # USE="-gtk" -> cli + local mycfgtk="cli" + use gtk && mycfgtk="gtk" + + # For the renderer/platform manager: + # USE="sdl" -> SDL + # USE="-sdl opengl" -> GLX + # USE="-sdl -opengl" -> gtk + local myplat="" + if use sdl ; then + myplat="SDL" + elif use opengl ; then + myplat="GLX" + else + myplat="gtk" + fi + + econf \ + --with-cfgtk=${mycfgtk} \ + --with-platform=${myplat} \ + --with-gl-support=${myplat} \ + $(use_enable devil) \ + $(use_enable cg) \ + $(use_enable openexr) \ + $(use_enable threads threading) \ + $(use_enable double-precision double) \ + $(use_enable sdl sdltest) \ + || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + insinto /usr/share/OGRE/Media + doins Samples/Media/* + if use doc ; then + dohtml -r Docs/* Docs/Tutorials/* + insinto /usr/share/doc/${PF}/Samples + doins -r Samples/* + fi + dodoc AUTHORS BUGS LINUX.DEV README Docs/README.linux + dohtml Docs/*.html +} |