diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-05 10:54:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-05 10:54:16 +0000 |
commit | dba348b3174ed2f8beba9115672ad222019fc002 (patch) | |
tree | bdcd69530ae39a47dbb8da5e93fd607e549f4a96 | |
parent | 37f7ac9d939c0258829feba9b1de0eca3416d2e8 (diff) | |
download | aports-dba348b3174ed2f8beba9115672ad222019fc002.tar.bz2 aports-dba348b3174ed2f8beba9115672ad222019fc002.tar.xz |
main/cegui06: add use-versioned-so patch from fedora
-rw-r--r-- | main/cegui06/APKBUILD | 8 | ||||
-rw-r--r-- | main/cegui06/cegui-0.6.0-userverso.patch | 21 |
2 files changed, 26 insertions, 3 deletions
diff --git a/main/cegui06/APKBUILD b/main/cegui06/APKBUILD index a833342a9..709b1b4b7 100644 --- a/main/cegui06/APKBUILD +++ b/main/cegui06/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=cegui06 pkgver=0.6.2b -pkgrel=0 +pkgrel=1 pkgdesc="CEGUI library 0.6 for apps which need this specific version" url="http://www.cegui.org.uk" arch="all" @@ -13,7 +13,8 @@ makedepends="freetype-dev pcre-dev expat-dev libice-dev libsm-dev glew-dev install="" subpackages="$pkgname-dev" source="http://downloads.sourceforge.net/crayzedsgui/CEGUI-$pkgver.tar.gz - cegui-0.6.2-gcc46.patch" + cegui-0.6.2-gcc46.patch + cegui-0.6.0-userverso.patch" _builddir="$srcdir"/CEGUI-0.6.2 prepare() { @@ -47,4 +48,5 @@ package() { } md5sums="4fbd95e5a2ac1c7acf2a8f5df3ac6b93 CEGUI-0.6.2b.tar.gz -c313bbb6fea733ff904f7f3b48f6a3d0 cegui-0.6.2-gcc46.patch" +c313bbb6fea733ff904f7f3b48f6a3d0 cegui-0.6.2-gcc46.patch +dd5a5d6be594960cd53934271514e351 cegui-0.6.0-userverso.patch" 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 000000000..ea5a99cbe --- /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"; |