From ea95dfc58f40231c56d7715d5c9a56dbb9fbd7e8 Mon Sep 17 00:00:00 2001 From: jbu Date: Sun, 2 Aug 2015 18:34:30 +0200 Subject: [PATCH] New package: cegui-0.8.4 --- common/shlibs | 5 ++ srcpkgs/cegui-data | 1 + srcpkgs/cegui-devel | 1 + srcpkgs/cegui-docs | 1 + srcpkgs/cegui/patches/musl_execinfo.patch | 22 +++++++ srcpkgs/cegui/template | 72 +++++++++++++++++++++++ 6 files changed, 102 insertions(+) create mode 120000 srcpkgs/cegui-data create mode 120000 srcpkgs/cegui-devel create mode 120000 srcpkgs/cegui-docs create mode 100644 srcpkgs/cegui/patches/musl_execinfo.patch create mode 100644 srcpkgs/cegui/template diff --git a/common/shlibs b/common/shlibs index 093e8c1220..f434b4f39e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/cegui-data b/srcpkgs/cegui-data new file mode 120000 index 0000000000..db9a547274 --- /dev/null +++ b/srcpkgs/cegui-data @@ -0,0 +1 @@ +cegui \ No newline at end of file diff --git a/srcpkgs/cegui-devel b/srcpkgs/cegui-devel new file mode 120000 index 0000000000..db9a547274 --- /dev/null +++ b/srcpkgs/cegui-devel @@ -0,0 +1 @@ +cegui \ No newline at end of file diff --git a/srcpkgs/cegui-docs b/srcpkgs/cegui-docs new file mode 120000 index 0000000000..db9a547274 --- /dev/null +++ b/srcpkgs/cegui-docs @@ -0,0 +1 @@ +cegui \ No newline at end of file diff --git a/srcpkgs/cegui/patches/musl_execinfo.patch b/srcpkgs/cegui/patches/musl_execinfo.patch new file mode 100644 index 0000000000..97535886e0 --- /dev/null +++ b/srcpkgs/cegui/patches/musl_execinfo.patch @@ -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 +-#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 + #include + #include +@@ -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); + diff --git a/srcpkgs/cegui/template b/srcpkgs/cegui/template new file mode 100644 index 0000000000..736deca867 --- /dev/null +++ b/srcpkgs/cegui/template @@ -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 " +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" + } +}