libraries/xerces-c: Updated for version 2.8.0
This commit is contained in:
parent
68bb4aa497
commit
85feed8418
|
@ -25,7 +25,7 @@
|
|||
PRGNAM=xerces-c
|
||||
VERSION=2.8.0
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -37,10 +37,16 @@ SRCVER=$(echo $VERSION | tr . _)
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
BITS=32
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
BITS=32
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
BITS=64
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -58,7 +64,17 @@ cd src/xercesc/
|
|||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
XERCESCROOT="$TMP/$PRGNAM-src_$SRCVER" \
|
||||
./runConfigure -p linux -c gcc -x g++ -m inmem -n socket -t native -r pthreads -P /usr
|
||||
./runConfigure \
|
||||
-p linux \
|
||||
-c gcc \
|
||||
-x g++ \
|
||||
-m inmem \
|
||||
-n socket \
|
||||
-t native \
|
||||
-r pthreads \
|
||||
-b $BITS \
|
||||
-P /usr \
|
||||
-C libdir=/usr/lib${LIBDIRSUFFIX}
|
||||
|
||||
# I could not get this to compile with more than 1 job, XGizzmo
|
||||
XERCESCROOT="$TMP/$PRGNAM-src_$SRCVER" \
|
||||
|
@ -69,6 +85,11 @@ cd src/xercesc/
|
|||
make install DESTDIR=$PKG
|
||||
cd -
|
||||
|
||||
# For now, it seems that the libdir flag is ignored, so...
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
mv $PKG/usr/lib $PKG/usr/lib64
|
||||
fi
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ DOWNLOAD="http://apache.mirrors.tds.net/xerces/c/2/sources/xerces-c-src_2_8_0.ta
|
|||
MD5SUM="5daf514b73f3e0de9e3fce704387c0d2"
|
||||
MAINTAINER="ppr:kut"
|
||||
EMAIL="HMWiesinger@gmx.at"
|
||||
APPROVED="David Somero"
|
||||
APPROVED="dsomero,rworkman"
|
||||
|
|
Loading…
Reference in New Issue