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.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 68e8772bf2..b959c96aa4 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}