aboutsummaryrefslogtreecommitdiff
path: root/libraries/CEGUI/CEGUI.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-07 21:01:08 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-09 09:35:18 +0700
commit4706b2b5dc88a08414a0f7670b46dfd3d40a3b06 (patch)
tree0075d9b5a05b6170bba29b2ba4da94c12ec77333 /libraries/CEGUI/CEGUI.SlackBuild
parent9051188f378022f72860b5d61b781ecbc1db1677 (diff)
libraries/CEGUI: Updated for version 0.8.7.
Added a note about the incompatibility with ogre Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/CEGUI/CEGUI.SlackBuild')
-rw-r--r--libraries/CEGUI/CEGUI.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/libraries/CEGUI/CEGUI.SlackBuild b/libraries/CEGUI/CEGUI.SlackBuild
index ac1e1c5e7ccc..605546ce5cf8 100644
--- a/libraries/CEGUI/CEGUI.SlackBuild
+++ b/libraries/CEGUI/CEGUI.SlackBuild
@@ -9,14 +9,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=CEGUI
SRCNAM=cegui
-VERSION=${VERSION:-0.8.4}
+VERSION=${VERSION:-0.8.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -34,8 +34,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,6 +63,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+sed -i '1iadd_definitions(-std=c++11)' \
+ cegui/src/RendererModules/OpenGL/CMakeLists.txt \
+ cegui/src/RendererModules/Ogre/CMakeLists.txt \
+ application_templates/CMakeLists.txt \
+ samples_framework/CMakeLists.txt
+
mkdir build
cd build
cmake \
@@ -72,6 +78,11 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
+ -DCEGUI_BUILD_XMLPARSER_LIBXML2=OFF \
+ -DCEGUI_BUILD_LUA_MODULE=OFF \
+ -DCEGUI_BUILD_LUA_GENERATOR=OFF \
+ -DCEGUI_BUILD_LUA_GENERATOR=OFF \
+ -DCEGUI_BUILD_XMLPARSER_XERCES=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG