aboutsummaryrefslogtreecommitdiff
path: root/libraries/xalan-c/xalan-c.SlackBuild
diff options
context:
space:
mode:
authorRobert Allen <slacker@slaphappygeeks.com>2012-08-09 15:17:45 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-08-09 15:47:25 -0500
commit8d40d5ce2ac655f94a13c1f4e213b375a409e043 (patch)
tree11955c5cac173ad48efcaa0afb60d3fd2c9d225c /libraries/xalan-c/xalan-c.SlackBuild
parent1fb2c9b531a9eaf56e7e1834b91349c15f708b23 (diff)
libraries/xalan-c: Updated for version 1.11_1335373.
This is an svn snapshot for compatibility with newer xerces-c. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/xalan-c/xalan-c.SlackBuild')
-rw-r--r--libraries/xalan-c/xalan-c.SlackBuild49
1 files changed, 26 insertions, 23 deletions
diff --git a/libraries/xalan-c/xalan-c.SlackBuild b/libraries/xalan-c/xalan-c.SlackBuild
index 68e8772bf262..b959c96aa446 100644
--- a/libraries/xalan-c/xalan-c.SlackBuild
+++ b/libraries/xalan-c/xalan-c.SlackBuild
@@ -22,17 +22,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=Xalan-C
-VERSION=1_10_0
-BUILD=${BUILD:-3}
+# Currently maintained by Robert Allen <slacker@slaphappygeeks.com>
+
+# Note: This SVN snapshot of xalan-c is selected to build with xerces-c-3.x
+# series without patching, so the source archive filename is hard-coded into
+# the script. If you want to build with a different snapshot then you will
+# need to create your own archive an update the filename in the script.
+#
+# To capture the current SVN trunk to a local directory:
+# mkdir svn ; cd svn ; svn co http://svn.apache.org/repos/asf/xalan/c/trunk .
+
+
+PRGNAM=xalan-c
+VERSION=1.11_1335373
+BUILD=${BUILD:-1}
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
@@ -42,9 +51,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-PKGNAM=$(echo $PRGNAM | tr [:upper:] [:lower:])
-PKGVER=$(echo $VERSION | tr _ .)
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -69,45 +75,42 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf xml-xalan
-tar xvf $CWD/${PRGNAM}_${VERSION}-src.tar.gz
-cd xml-xalan
+rm -rf $PRGNAM-$VERSION
+# We are building from a specific SVN snapshot with fixed filename
+# so we hardwire it into this script
+tar xvf $CWD/xalan-c-1.11_1335373.tar.gz
+cd $PRGNAM-$VERSION
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" \
+ XALANCROOT=$(pwd) \
XERCESCROOT="/usr" \
./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" \
+ XALANCROOT=$(pwd) \
XERCESCROOT="/usr" \
make -j1
- XALANCROOT="$TMP/xml-xalan/c" \
+ XALANCROOT=$(pwd) \
XERCESCROOT="/usr" \
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PKGNAM-$PKGVER
-cp -a KEYS LICENSE NOTICE readme.html README $PKG/usr/doc/$PKGNAM-$PKGVER
-cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$PKGVER/$PKGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a KEYS LICENSE NOTICE readme.html README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}