summaryrefslogtreecommitdiff
path: root/libraries/xalan-c/xalan-c.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/xalan-c/xalan-c.SlackBuild')
-rw-r--r--libraries/xalan-c/xalan-c.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/libraries/xalan-c/xalan-c.SlackBuild b/libraries/xalan-c/xalan-c.SlackBuild
index 5b918f8f7a..90f19afd0e 100644
--- a/libraries/xalan-c/xalan-c.SlackBuild
+++ b/libraries/xalan-c/xalan-c.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for xalan-c
-# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=Xalan-C
VERSION=1_10_0
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -38,10 +38,13 @@ PKGVER=$(echo $VERSION | tr _ .)
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
FLAGS=""
@@ -60,10 +63,20 @@ cd xml-xalan
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p1 -i $CWD/xalan-c-1.10.0+gcc-4.3.patch
+
cd c
XALANCROOT="$TMP/xml-xalan/c" \
XERCESCROOT="/usr" \
- ./runConfigure -p linux -c gcc -x g++ -m inmem -r pthreads -P /usr "$FLAGS"
+ ./runConfigure \
+ -p linux \
+ -c gcc \
+ -x g++ \
+ -m inmem \
+ -r pthreads \
+ -P /usr \
+ -C --libdir=/usr/lib$LIBDIRSUFFIX \
+ "$FLAGS"
# I could not get this to compile with more than 1 job, XGizzmo
XALANCROOT="$TMP/xml-xalan/c" \
@@ -85,4 +98,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$PKGVER-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$PKGVER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}