Author: pabs Date: 2014-10-16 03:50:21 +0000 (Thu, 16 Oct 2014) New Revision: 15297
Added: packages/trunk/funguloids/debian/patches/ogre-1.9.patch Modified: packages/trunk/funguloids/debian/changelog packages/trunk/funguloids/debian/control packages/trunk/funguloids/debian/patches/series Log: Add patch to use the OGRE 1.9 (Closes: #732722). Thanks to Hans de Goede <[email protected]> Modified: packages/trunk/funguloids/debian/changelog =================================================================== --- packages/trunk/funguloids/debian/changelog 2014-10-14 04:01:10 UTC (rev 15296) +++ packages/trunk/funguloids/debian/changelog 2014-10-16 03:50:21 UTC (rev 15297) @@ -1,9 +1,14 @@ funguloids (1.06-12) UNRELEASED; urgency=low + [ Fabian Greffrath ] * Team upload. * Add menu icon in xpm format (Closes: #726223). * Add keywords to desktop file. + [ Paul Wise ] + * Add patch to use the OGRE 1.9 (Closes: #732722). + Thanks to Hans de Goede <[email protected]> + -- Fabian Greffrath <[email protected]> Mon, 14 Oct 2013 14:05:05 +0200 funguloids (1.06-11) unstable; urgency=low Modified: packages/trunk/funguloids/debian/control =================================================================== --- packages/trunk/funguloids/debian/control 2014-10-14 04:01:10 UTC (rev 15296) +++ packages/trunk/funguloids/debian/control 2014-10-16 03:50:21 UTC (rev 15297) @@ -12,7 +12,7 @@ liblua5.1-0-dev, libmad0-dev, libogg-dev, - libogre-1.8-dev, + libogre-1.9-dev, libois-dev, libopenal-dev, libvorbis-dev, Added: packages/trunk/funguloids/debian/patches/ogre-1.9.patch =================================================================== --- packages/trunk/funguloids/debian/patches/ogre-1.9.patch (rev 0) +++ packages/trunk/funguloids/debian/patches/ogre-1.9.patch 2014-10-16 03:50:21 UTC (rev 15297) @@ -0,0 +1,174 @@ +From: Hans de Goede <[email protected]> +Subject: Port funguloids to OGRE 1.9 +Date: Sun, 8 Jun 2014 14:52:54 +0200 +--- a/configure.ac 2014-06-08 17:51:44.423179835 +0200 ++++ b/configure.ac 2014-06-08 14:52:54.384959442 +0200 +@@ -31,7 +31,7 @@ + AC_CHECK_HEADERS([stdlib.h string.h sys/param.h wchar.h]) + + # OGRE ---------------------------------------------------- +-PKG_CHECK_MODULES(OGRE, [OGRE >= 1.4]) ++PKG_CHECK_MODULES(OGRE, [OGRE >= 1.9 OGRE-Overlay >= 1.9]) + AC_SUBST(OGRE_CFLAGS) + AC_SUBST(OGRE_LIBS) + +--- a/include/game.h 2007-04-20 13:19:40.000000000 +0200 ++++ b/include/game.h 2014-06-08 14:52:54.385959417 +0200 +@@ -27,6 +27,9 @@ + #define GAME_H + + #include "ogreapp.h" ++#include <Overlay/OgreOverlay.h> ++#include <Overlay/OgreOverlayManager.h> ++ + #include "menu.h" + #include "SimpleIni.h" + +--- a/include/menu.h 2007-03-11 16:37:32.000000000 +0100 ++++ b/include/menu.h 2014-06-08 14:52:54.385959417 +0200 +@@ -27,7 +27,8 @@ + #define MENU_H + + #include "ogreapp.h" +-#include <OgreTextAreaOverlayElement.h> ++#include <Overlay/OgreOverlay.h> ++#include <Overlay/OgreTextAreaOverlayElement.h> + + class HiscoreList; + +--- a/include/mpakogre.h 2014-06-08 17:51:44.448178885 +0200 ++++ b/include/mpakogre.h 2014-06-08 14:52:54.385959417 +0200 +@@ -79,7 +79,7 @@ + virtual ~MPakArchiveFactory() {} + const String &getType(void) const; + +- Archive *createInstance(const String &name) { ++ Archive *createInstance(const String &name, bool readOnly) { + return new MPakArchive(name, "MPK"); + } + +--- a/include/ogreapp.h 2007-03-11 16:35:44.000000000 +0100 ++++ b/include/ogreapp.h 2014-06-08 17:48:54.510790299 +0200 +@@ -28,6 +28,9 @@ + + #include <Ogre.h> + #include <OgreConfigFile.h> ++#include <Overlay/OgreOverlay.h> ++#include <Overlay/OgreOverlaySystem.h> ++ + #include "ogrelistener.h" + + using namespace Ogre; +@@ -39,6 +42,7 @@ + OgreApplication() { + mFrameListener = 0; + mRoot = 0; ++ mOverlaySystem = 0; + } + virtual ~OgreApplication(); + +@@ -65,6 +69,7 @@ + + protected: + Root *mRoot; ++ OverlaySystem* mOverlaySystem; + Camera *mCamera; + SceneManager *mSceneMgr; + RenderWindow *mWindow; +--- a/include/ogrelistener.h 2007-03-11 16:29:00.000000000 +0100 ++++ b/include/ogrelistener.h 2014-06-08 14:52:54.386959392 +0200 +@@ -29,6 +29,7 @@ + #include <Ogre.h> + #include <OgreStringConverter.h> + #include <OgreException.h> ++#include <Overlay/OgreOverlay.h> + + #include "input.h" + +--- a/include/player.h 2007-04-16 01:31:39.000000000 +0200 ++++ b/include/player.h 2014-06-08 14:52:54.386959392 +0200 +@@ -27,7 +27,8 @@ + #define PLAYER_H + + #include <Ogre.h> +-#include <OgreTextAreaOverlayElement.h> ++#include <Overlay/OgreOverlay.h> ++#include <Overlay/OgreTextAreaOverlayElement.h> + #include "movingobject.h" + #include "mushroom.h" + #include "soundsystem.h" +--- a/include/soundsystem.h 2007-04-24 19:30:32.000000000 +0200 ++++ b/include/soundsystem.h 2014-06-08 14:52:54.386959392 +0200 +@@ -66,7 +66,7 @@ + if(!grp) + OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "Cannot locate a resource group called 'General'", "ResourceGroupManager::openResource"); + +- OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME) // lock group mutex ++ OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME); // lock group mutex + ResourceLocationIndex::iterator rit = grp->resourceIndexCaseSensitive.find(filename); + if(rit != grp->resourceIndexCaseSensitive.end()) { + // Found in the index +--- a/src/hiscore.cpp 2007-05-04 12:56:12.000000000 +0200 ++++ b/src/hiscore.cpp 2014-06-08 17:47:39.772663131 +0200 +@@ -28,7 +28,7 @@ + #include <stdio.h> + #include "game.h" + #include "hiscore.h" +-#include <OgreTextAreaOverlayElement.h> ++#include <Overlay/OgreTextAreaOverlayElement.h> + + // Global high score list + HiscoreList hiscoreList; +--- a/src/menu.cpp 2007-05-04 12:53:37.000000000 +0200 ++++ b/src/menu.cpp 2014-06-08 17:47:39.772663131 +0200 +@@ -28,7 +28,6 @@ + #include "objectsystem.h" + #include "soundsystem.h" + #include "hiscore.h" +-#include <OgreTextAreaOverlayElement.h> + + + // Version string +--- a/src/ogreapp.cpp 2014-06-08 17:51:44.431179531 +0200 ++++ b/src/ogreapp.cpp 2014-06-08 17:51:13.035451662 +0200 +@@ -72,6 +72,8 @@ + OGRE_CONFIG_AND_LOG_PATH + "Ogre.log" + ); + ++ mOverlaySystem = new OverlaySystem(); ++ + ConfigFile cfg; + cfg.load(String(OGRE_PLUGINS_AND_RESOURCES_PATH) + "plugins.cfg"); + String pluginDir = cfg.getSetting("PluginFolder"); +@@ -161,6 +163,9 @@ + if(mFrameListener) + delete mFrameListener; + ++ if (mOverlaySystem) ++ delete mOverlaySystem; ++ + if(mRoot) + delete mRoot; + +--- a/src/scriptsystem.cpp 2014-06-08 17:51:44.455178619 +0200 ++++ b/src/scriptsystem.cpp 2014-06-08 17:47:39.772663131 +0200 +@@ -67,7 +67,7 @@ + if(!grp) + OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "Cannot locate a resource group called 'General'", "ResourceGroupManager::openResource"); + +- OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME) // lock group mutex ++ OGRE_LOCK_MUTEX(grp->OGRE_AUTO_MUTEX_NAME); // lock group mutex + ResourceLocationIndex::iterator rit = grp->resourceIndexCaseSensitive.find(filename); + if(rit != grp->resourceIndexCaseSensitive.end()) { + // Found in the index +--- a/src/game.cpp~ 2007-05-04 12:56:29.000000000 +0200 ++++ a/src/game.cpp 2014-06-08 20:35:50.365150966 +0200 +@@ -206,6 +206,8 @@ void GameApplication::createScene() { + // Create the menus and go to the title screen + mMenu = new Menu(mSceneMgr); + mMenu->setMenu("TitleScreen"); ++ ++ mSceneMgr->addRenderQueueListener(mOverlaySystem); + } + + Modified: packages/trunk/funguloids/debian/patches/series =================================================================== --- packages/trunk/funguloids/debian/patches/series 2014-10-14 04:01:10 UTC (rev 15296) +++ packages/trunk/funguloids/debian/patches/series 2014-10-16 03:50:21 UTC (rev 15297) @@ -10,3 +10,4 @@ doc_path.patch libs_lua5.1.patch ogre-1.8.patch +ogre-1.9.patch _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

