diff options
author | Vincent Batts <vbatts@batts.mine.nu> | 2010-05-13 00:33:55 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:33:55 +0200 |
commit | 700c804ccb631cab9b5ed06d8aa4b93e8aa60312 (patch) | |
tree | 0bea7894983e0077ac78f9d8b19f606b369a15d2 /libraries/xlt/xlt.SlackBuild | |
parent | 69d794fb03ac0003b3f3a96dac31d1e2305d27ca (diff) | |
download | slackbuilds-700c804ccb631cab9b5ed06d8aa4b93e8aa60312.tar.gz |
libraries/xlt: Updated for version 11.1.11
Diffstat (limited to 'libraries/xlt/xlt.SlackBuild')
-rw-r--r-- | libraries/xlt/xlt.SlackBuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libraries/xlt/xlt.SlackBuild b/libraries/xlt/xlt.SlackBuild index 4359e81de5..0cadf3a8a1 100644 --- a/libraries/xlt/xlt.SlackBuild +++ b/libraries/xlt/xlt.SlackBuild @@ -12,6 +12,7 @@ BIG_PRGNAM=Xlt VERSION=11.1.11 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} + TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -20,8 +21,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi rm -rf $PKG @@ -41,6 +47,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man || exit 1 @@ -49,8 +56,10 @@ make || exit 1 make install DESTDIR=$PKG || exit 1 ( 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 + 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 ) ( cd $PKG/usr/man @@ -69,4 +78,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |