mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/CEGUI: Fixed build with tinyxml
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
37d7a4860a
commit
d5ecd5c9c1
2 changed files with 19 additions and 4 deletions
15
libraries/CEGUI/CEGUI-tinyxml.patch
Normal file
15
libraries/CEGUI/CEGUI-tinyxml.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- CEGUITinyXMLParser.cpp.orig 2009-10-16 11:56:28.000000000 +0100
|
||||
+++ CEGUITinyXMLParser.cpp 2009-10-16 11:56:35.000000000 +0100
|
||||
@@ -131,10 +131,10 @@
|
||||
{
|
||||
switch(childNode->Type())
|
||||
{
|
||||
- case CEGUI_TINYXML_NAMESPACE::TiXmlNode::ELEMENT:
|
||||
+ case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TINYXML_ELEMENT:
|
||||
processElement(childNode->ToElement());
|
||||
break;
|
||||
- case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TEXT:
|
||||
+ case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TINYXML_TEXT:
|
||||
if (childNode->ToText()->Value() != '\0')
|
||||
d_handler->text((utf8*)childNode->ToText()->Value());
|
||||
break;
|
|
@ -6,15 +6,13 @@
|
|||
|
||||
PRGNAM=CEGUI
|
||||
VERSION=${VERSION:-0.6.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -40,7 +38,7 @@ fi
|
|||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
|
@ -53,6 +51,8 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
patch -p0 -d XMLParserModules/TinyXMLParser -i $CWD/CEGUI-tinyxml.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
Loading…
Reference in a new issue