diff options
author | Iskar Enev <iskar.enev@gmail.com> | 2010-05-11 22:54:15 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:54:15 +0200 |
commit | bcb4c59c95ed7586f595c616eca8619a0166ca9c (patch) | |
tree | 140c182273031801270f57f5ce472aa5ab4cfa27 /libraries/libxml++/libxml++.SlackBuild | |
parent | 10f1c5a73ba4981637ca4a0ecedad77b28d51a62 (diff) | |
download | slackbuilds-bcb4c59c95ed7586f595c616eca8619a0166ca9c.tar.gz |
libraries/libxml++: Added to 12.1 repository
Diffstat (limited to 'libraries/libxml++/libxml++.SlackBuild')
-rw-r--r-- | libraries/libxml++/libxml++.SlackBuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libraries/libxml++/libxml++.SlackBuild b/libraries/libxml++/libxml++.SlackBuild new file mode 100644 index 0000000000..5ec7c886a6 --- /dev/null +++ b/libraries/libxml++/libxml++.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +# Slackware build script for libxml++ +# Written by Iskar Enev <iskar.enev[@]gmail.com> +# Modified by Robby Workman <rworkman@slackbuilds.org> +# Modified by Michiel van Wessem <michiel@slackbuilds.org> + +PRGNAM=libxml++ +VERSION=2.20.0 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +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-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$PRGNAM-2.6/docs/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share +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/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |