summaryrefslogtreecommitdiffstats
path: root/libraries/xerces-c/xerces-c.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/xerces-c/xerces-c.SlackBuild')
-rw-r--r--libraries/xerces-c/xerces-c.SlackBuild30
1 files changed, 21 insertions, 9 deletions
diff --git a/libraries/xerces-c/xerces-c.SlackBuild b/libraries/xerces-c/xerces-c.SlackBuild
index 6410b82b15..4ef7fdb80a 100644
--- a/libraries/xerces-c/xerces-c.SlackBuild
+++ b/libraries/xerces-c/xerces-c.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for xerces-c
@@ -48,20 +48,30 @@
#
################################################################
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=xerces-c
-VERSION=${VERSION:-3.2.0}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-3.2.3}
+BUILD=${BUILD:-2}
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
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -73,8 +83,8 @@ WITHSAMPLES=${WITHSAMPLES:-0}
WITHDOCS=${WITHDOCS:-0}
##############################################################################
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
BITS=32
elif [ "$ARCH" = "i686" ]; then
@@ -113,7 +123,7 @@ CXXFLAGS="$SLKCFLAGS" \
--disable-static \
--build=$ARCH-slackware-linux
-make -j1
+make
make install DESTDIR=$PKG
if [ "$WITHSAMPLES" = "1" ]; then
@@ -141,8 +151,10 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CREDITS README KEYS LICENSE NOTICE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE