Package: funguloids
Version: 1.06-8+b1
Severity: wishlist
Tags: patch

Hi,

README.Debian mentions that Funguloids can be run without
ogre-plugins-cgprogrammanager, but since this is a depends and not a
recommends it's not really an option.

A better idea would be to add the patch funguloids-optional_cg.patch [1]
(attached) which makes Cg really optional and make
ogre-plugins-cgprogrammanager a suggests. TTBOMK this would also make
funguloids suitable for main.

1. http://funguloids.sourceforge.net/files/funguloids-patches.tar.bz2

Thanks in advance,

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.34-rc4 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages funguloids depends on:
ii  libalut0                   1.1.0-2       OpenAL Utility Toolkit
ii  libc6                      2.10.2-6      Embedded GNU C Library: Shared lib
ii  libgcc1                    1:4.4.3-7     GCC support library
ii  liblua5.1-0                5.1.4-5       Simple, extensible, embeddable pro
ii  libmad0                    0.15.1b-5     MPEG audio decoder library
ii  libogg0                    1.2.0~dfsg-1  Ogg bitstream library
ii  libogremain-1.6.4          1.6.4.dfsg1-1 Object-oriented Graphics Rendering
ii  libois-1.2.0               1.2.0-1       Object Oriented Input System libra
ii  libopenal1                 1:1.11.753-1  Software implementation of the Ope
ii  libstdc++6                 4.4.3-7       The GNU Standard C++ Library v3
ii  libvorbis0a                1.3.1-1       The Vorbis General Audio Compressi
ii  libvorbisenc2              1.3.1-1       The Vorbis General Audio Compressi
ii  libvorbisfile3             1.3.1-1       The Vorbis General Audio Compressi
ii  ogre-plugins-cgprogrammana 1.6.4-1.1     Ogre plugin: CgProgramManager

funguloids recommends no packages.

funguloids suggests no packages.

-- no debconf information
--- bin/plugins.cfg.in
+++ bin/plugins.cfg.in
@@ -7,6 +7,6 @@
 Plugin=RenderSystem_GL
 Plugin=Plugin_ParticleFX
 Plugin=Plugin_OctreeSceneManager
-Plugin=Plugin_CgProgramManager
+#Plugin=Plugin_CgProgramManager
 
 
--- src/ogreapp.cpp
+++ src/ogreapp.cpp
@@ -23,6 +23,7 @@
 //
 //***************************************************************************/
 
+#include <sys/stat.h>
 #include "ogreapp.h"
 #include "objectsystem.h"
 #include "effects.h"
@@ -71,6 +72,13 @@
 			OGRE_CONFIG_AND_LOG_PATH + "Ogre.log"
 			);
 
+	ConfigFile cfg;
+	cfg.load(String(OGRE_PLUGINS_AND_RESOURCES_PATH) + "plugins.cfg");
+	String pluginDir = cfg.getSetting("PluginFolder");
+	struct stat sb;
+	if (stat((pluginDir + "Plugin_CgProgramManager.so").c_str(), &sb) == 0)
+		mRoot->loadPlugin(pluginDir + "Plugin_CgProgramManager");
+
 	// Random seed
 	srand(time(NULL));
 

Reply via email to