aboutsummaryrefslogtreecommitdiff
path: root/network/nss-mdns/nss-mdns.SlackBuild
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 00:37:39 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:37:39 +0200
commit608dafae2e215562a1b7c20353535d07834f44f7 (patch)
tree0c88d7101d417f02b55913ff88d52d216a7289d5 /network/nss-mdns/nss-mdns.SlackBuild
parent5787c730062d2ae4c25c1ca7797d1e7f6fa33484 (diff)
network/nss-mdns: Updated for version 0.10
Diffstat (limited to 'network/nss-mdns/nss-mdns.SlackBuild')
-rw-r--r--network/nss-mdns/nss-mdns.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/network/nss-mdns/nss-mdns.SlackBuild b/network/nss-mdns/nss-mdns.SlackBuild
index 29c5ba207b20e..bf8ef12c44610 100644
--- a/network/nss-mdns/nss-mdns.SlackBuild
+++ b/network/nss-mdns/nss-mdns.SlackBuild
@@ -8,6 +8,7 @@ VERSION=0.10
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -15,8 +16,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 # Exit on most errors
@@ -48,6 +54,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/ \
+ --libdir=/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-legacy
@@ -56,12 +63,8 @@ make
make install DESTDIR=$PKG
( cd $PKG
- find . \
- | xargs file \
- | grep "shared object" \
- | 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
@@ -79,4 +82,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}