summaryrefslogtreecommitdiffstats
path: root/libraries/gsnmp/gsnmp.SlackBuild
diff options
context:
space:
mode:
author Menno Duursma <druiloor@zonnet.nl>2010-05-13 00:29:41 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-13 00:29:41 +0200
commit606bf0b2af1c24e922fcbbed04b4d4ee5052bda4 (patch)
treea7c668253c3e3fe3814e5cae8814dd3ea2af3093 /libraries/gsnmp/gsnmp.SlackBuild
parenta70728e7462f84a6398fe95a0a7769e3bede6d14 (diff)
downloadslackbuilds-606bf0b2af1c24e922fcbbed04b4d4ee5052bda4.tar.gz
slackbuilds-606bf0b2af1c24e922fcbbed04b4d4ee5052bda4.tar.xz
libraries/gsnmp: Updated for version 0.2.0
Diffstat (limited to 'libraries/gsnmp/gsnmp.SlackBuild')
-rw-r--r--libraries/gsnmp/gsnmp.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/libraries/gsnmp/gsnmp.SlackBuild b/libraries/gsnmp/gsnmp.SlackBuild
index e1d213b6d4..95db918a44 100644
--- a/libraries/gsnmp/gsnmp.SlackBuild
+++ b/libraries/gsnmp/gsnmp.SlackBuild
@@ -17,8 +17,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
@@ -37,6 +42,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--disable-static
@@ -44,8 +50,10 @@ 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
+ 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
@@ -61,4 +69,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}