summaryrefslogtreecommitdiff
path: root/libraries/tinyxml/tinyxml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/tinyxml/tinyxml.SlackBuild')
-rw-r--r--libraries/tinyxml/tinyxml.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/libraries/tinyxml/tinyxml.SlackBuild b/libraries/tinyxml/tinyxml.SlackBuild
index e17b8a74ba..60da6ecd60 100644
--- a/libraries/tinyxml/tinyxml.SlackBuild
+++ b/libraries/tinyxml/tinyxml.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=tinyxml
VERSION=${VERSION:-2.5.3}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -43,6 +43,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Always have TIXML_USE_STL defined.
+patch -p0 < $CWD/tinyxml-2.5.3-stl.patch
+
for i in tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp; do
g++ -v $SLKCFLAGS -fPIC -Wall -Wno-unknown-pragmas -Wno-format -o $i.o -c $i
done
@@ -76,4 +79,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}