diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-13 00:37:25 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:37:25 +0200 |
commit | f36565bc7e7ffb6df4fb4fa1e3ca6991de24ac99 (patch) | |
tree | 6e5b2053789a79219fd6f804c40b483e9e5ec614 /network/mz/mz.SlackBuild | |
parent | 2b0c3a2f95294ac1ce9a27a97c6eb421089f9dd5 (diff) | |
download | slackbuilds-f36565bc7e7ffb6df4fb4fa1e3ca6991de24ac99.tar.gz |
network/mz: Updated for version 0.34.9
Diffstat (limited to 'network/mz/mz.SlackBuild')
-rw-r--r-- | network/mz/mz.SlackBuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/network/mz/mz.SlackBuild b/network/mz/mz.SlackBuild index 910d47ad81..8e1b96362a 100644 --- a/network/mz/mz.SlackBuild +++ b/network/mz/mz.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mz -# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at> +# Copyright 2008-2009 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mz -VERSION=0.34.6 +VERSION=0.34.9 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,10 +35,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 set -e @@ -56,10 +59,15 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# we need to link to libssp to not fail because of -fstack-protector +sed -i "s/pcap rt/pcap rt ssp/" src/CMakeLists.txt + cmake \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX="$LIBDIRSUFFIX" \ + . make make install DESTDIR=$PKG @@ -84,4 +92,4 @@ 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 +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |