Merge pull request #2152 from pullmoll/cegui

New package: cegui-0.8.4
This commit is contained in:
Jürgen Buchmüller 2015-08-06 20:35:04 +02:00
commit d4f0049c9e
6 changed files with 102 additions and 0 deletions

View File

@ -2120,3 +2120,8 @@ libSILLY.so.1 silly-0.1.0_1
libkeybinder-3.0.so.0 libkeybinder3-0.3.0_1
libbrlapi.so.0.6 brltty-5.2_1
liblouis.so.2 liblouis-2.6.3_1
libCEGUIBase-0.so.2 cegui-0.8.4_1
libCEGUIOpenGLRenderer-0.so.2 cegui-0.8.4_1
libCEGUIOgreRenderer-0.so.2 cegui-0.8.4_1
libCEGUIIrrlichtRenderer-0.so.2 cegui-0.8.4_1
libCEGUICommonDialogs-0.so.2 cegui-0.8.4_1

1
srcpkgs/cegui-data Symbolic link
View File

@ -0,0 +1 @@
cegui

1
srcpkgs/cegui-devel Symbolic link
View File

@ -0,0 +1 @@
cegui

1
srcpkgs/cegui-docs Symbolic link
View File

@ -0,0 +1 @@
cegui

View File

@ -0,0 +1,22 @@
In musl libc there is no execinfo.h and no backtrace()
--- cegui/src/Exceptions.cpp 2014-07-07 09:06:18.000000000 +0200
+++ cegui/src/Exceptions.cpp 2015-08-02 17:29:59.057854926 +0200
@@ -37,7 +37,7 @@
#if defined(_MSC_VER)
#include <dbghelp.h>
-#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
+#elif (defined(__linux__) && defined(__GLIBC__)) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
#include <execinfo.h>
#include <dlfcn.h>
#include <cxxabi.h>
@@ -129,7 +129,7 @@
logger.logEvent("========== End of Backtrace ==========", Errors);
SymCleanup(GetCurrentProcess());
-#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
+#elif (defined(__linux__) && defined(__GLIBC__)) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
void* buffer[frames];
const int received = backtrace(&buffer[0], frames);

72
srcpkgs/cegui/template Normal file
View File

@ -0,0 +1,72 @@
# Template file for 'cegui'
pkgname=cegui
version=0.8.4
revision=1
build_style=cmake
hostmakedepends="cmake graphviz doxygen dejavu-fonts-ttf gd glm perl pkg-config"
makedepends="libxml2-devel boost-devel glu-devel glew-devel glfw-devel
devil-devel ois-devel silly-devel fribidi-devel lua51-devel minizip-devel
$(vopt_if irrlicht irrlicht-devel)
$(vopt_if ogre libogre-devel)
$(vopt_if python 'python-devel boost-python')
$(vopt_if gtk gtk+-devel)"
depends="${pkgname}-data"
make_build_args="all html"
short_desc="Crazy Eddie's Graphical User Interface"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="http://cegui.org.uk/"
distfiles="${SOURCEFORGE_SITE}/crayzedsgui/${pkgname}-${version}.tar.bz2"
checksum=b5fcbd548b83045e92c4da413928113be77ebee0117368925e1904b3b957a388
build_options="gtk irrlicht ogre python"
desc_option_gtk="Enable support for GTK2"
desc_option_irrlicht="Enable support for Irrlicht"
desc_option_ogre="Enable support for Ogre"
build_options_default="gtk irrlicht"
if [ -z "$CROSS_BUILD" ]; then
# XXX: boost-python is not available when cross building
build_options_default+=" python"
fi
case "$XBPS_TARGET_MACHINE" in
arm*) # No ogre support for arm* (libogre for armv6l is broken)
;;
*) build_options_default+=" ogre"
;;
esac
pre_configure() {
# Use /usr/lib instead of /usr/lib64 or /usr/lib32
sed -i ${wrksrc}/CMakeLists.txt \
-e "s;lib64;lib;g" \
-e "s;lib32;lib;g"
}
post_install() {
vlicense COPYING
}
cegui-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/cegui-${version%%.*}
}
}
cegui-docs_package() {
short_desc+=" - documentation"
noarch=yes
pkg_install() {
vmkdir usr/share/doc/${sourcepkg}
vcopy ${wrksrc}/build/doc/doxygen/html usr/share/doc/${sourcepkg}
}
}
cegui-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/cegui-${version%.*}/*.so"
}
}