summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/xalan-c/README5
-rw-r--r--libraries/xalan-c/slack-desc19
-rw-r--r--libraries/xalan-c/xalan-c.SlackBuild66
-rw-r--r--libraries/xalan-c/xalan-c.info8
4 files changed, 98 insertions, 0 deletions
diff --git a/libraries/xalan-c/README b/libraries/xalan-c/README
new file mode 100644
index 0000000000..667ec0aef6
--- /dev/null
+++ b/libraries/xalan-c/README
@@ -0,0 +1,5 @@
+XSLT processor for transforming XML into HTML, text,
+or other XML types.
+
+You'll need xerces-c and icu4c to build this, both of which are
+also available at Slackbuilds.org
diff --git a/libraries/xalan-c/slack-desc b/libraries/xalan-c/slack-desc
new file mode 100644
index 0000000000..648c2edd06
--- /dev/null
+++ b/libraries/xalan-c/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+xalan-c: xalan-c (XSLT Processor)
+xalan-c:
+xalan-c: XSLT processor for transforming XML into HTML, text,
+xalan-c: or other XML types
+xalan-c:
+xalan-c: Homepage: http://xalan.apache.org
+xalan-c:
+xalan-c:
+xalan-c:
+xalan-c:
+xalan-c:
diff --git a/libraries/xalan-c/xalan-c.SlackBuild b/libraries/xalan-c/xalan-c.SlackBuild
new file mode 100644
index 0000000000..cf68424bb1
--- /dev/null
+++ b/libraries/xalan-c/xalan-c.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for xalan-c
+# Written by ppr:kut <hmwiesinger@gmx.at>
+
+set -e
+
+PRGNAM=xalan
+SRCNAM=Xalan
+VERSION=C_1_10_0-src
+PKGVER=c-1.10.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf xml-xalan
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd xml-xalan
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+cd c
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ XALANCROOT="$TMP/xml-xalan/c" \
+ XERCESCROOT="/usr" \
+ ICUROOT="/usr" \
+ ./runConfigure -p linux -c gcc -x g++ -t inmem -m icu -r pthread -P /usr
+
+ XALANCROOT="$TMP/xml-xalan/c" \
+ XERCESCROOT="/usr" \
+ ICUROOT="/usr" \
+ make
+
+ XALANCROOT="$TMP/xml-xalan/c" \
+ XERCESCROOT="/usr" \
+ ICUROOT=/usr \
+ make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$PKGVER
+cp -a KEYS LICENSE NOTICE readme.html README $PKG/usr/doc/$PRGNAM-$PKGVER
+cat $CWD/$PRGNAM-c.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKGVER/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/xalan-c/xalan-c.info b/libraries/xalan-c/xalan-c.info
new file mode 100644
index 0000000000..6e66d67215
--- /dev/null
+++ b/libraries/xalan-c/xalan-c.info
@@ -0,0 +1,8 @@
+PRGNAM="xalan-c"
+VERSION="1.10.0"
+HOMEPAGE="http://xalan.apache.org"
+DOWNLOAD="http://www.apache.org/dist/xml/xalan-c/Xalan-C_1_10_0-src.tar.gz"
+MD5SUM="0a3fbb535885531cc544b07a2060bfb1"
+MAINTAINER="ppr:kut"
+EMAIL="HMWiesinger@gmx.at"
+APPROVED="rworkman"