aboutsummaryrefslogtreecommitdiffstats
path: root/main/cegui06/cegui-0.6.0-userverso.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-05 10:54:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-05 10:54:16 +0000
commitdba348b3174ed2f8beba9115672ad222019fc002 (patch)
treebdcd69530ae39a47dbb8da5e93fd607e549f4a96 /main/cegui06/cegui-0.6.0-userverso.patch
parent37f7ac9d939c0258829feba9b1de0eca3416d2e8 (diff)
downloadaports-dba348b3174ed2f8beba9115672ad222019fc002.tar.bz2
aports-dba348b3174ed2f8beba9115672ad222019fc002.tar.xz
main/cegui06: add use-versioned-so patch from fedora
Diffstat (limited to 'main/cegui06/cegui-0.6.0-userverso.patch')
-rw-r--r--main/cegui06/cegui-0.6.0-userverso.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/cegui06/cegui-0.6.0-userverso.patch b/main/cegui06/cegui-0.6.0-userverso.patch
new file mode 100644
index 0000000000..ea5a99cbed
--- /dev/null
+++ b/main/cegui06/cegui-0.6.0-userverso.patch
@@ -0,0 +1,21 @@
+--- CEGUI-0.6.0/src/CEGUIDynamicModule.cpp~ 2008-05-21 22:11:55.000000000 +0200
++++ CEGUI-0.6.0/src/CEGUIDynamicModule.cpp 2008-05-21 22:11:55.000000000 +0200
+@@ -65,6 +65,18 @@ DynamicModule::DynamicModule(const Strin
+ } // if(name.empty())
+
+ #if defined(__linux__)
++ // check if we are being asked to open a CEGUI .so, if so postfix the name
++ // with our package version
++ if (d_moduleName.substr(0, 5) == "CEGUI" ||
++ d_moduleName.substr(0, 8) == "libCEGUI")
++ {
++ // strip .so extension before postfixing, will get added again below
++ if (d_moduleName.substr(d_moduleName.length() - 3, 3) == ".so")
++ d_moduleName = d_moduleName.substr(0, d_moduleName.length() - 3);
++ d_moduleName += "-";
++ d_moduleName += PACKAGE_VERSION;
++ }
++
+ // dlopen() does not add .so to the filename, like windows does for .dll
+ if (d_moduleName.substr(d_moduleName.length() - 3, 3) != ".so")
+ d_moduleName += ".so";