summaryrefslogtreecommitdiff
path: root/system/gpsd/gpsd.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <nobbutl@yahoo.co.uk>2010-05-12 17:45:19 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:45:19 +0200
commit027619cb6e799b12ce526ab716c9aa504a49f8e8 (patch)
tree454a5ca26f02cbdf4a24c464a74baf219ccf8023 /system/gpsd/gpsd.SlackBuild
parent4198a2085216457345e809158eb7c3b0c3312df3 (diff)
downloadslackbuilds-027619cb6e799b12ce526ab716c9aa504a49f8e8.tar.gz
system/gpsd: Updated for version 2.39
Diffstat (limited to 'system/gpsd/gpsd.SlackBuild')
-rw-r--r--system/gpsd/gpsd.SlackBuild29
1 files changed, 25 insertions, 4 deletions
diff --git a/system/gpsd/gpsd.SlackBuild b/system/gpsd/gpsd.SlackBuild
index b1e692e046..a534478e73 100644
--- a/system/gpsd/gpsd.SlackBuild
+++ b/system/gpsd/gpsd.SlackBuild
@@ -6,7 +6,7 @@
set -e
PRGNAM=gpsd
-VERSION=2.34
+VERSION=2.39
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,10 +17,30 @@ 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
+ENABLELIST=""
+set -- $ENABLE
+while [[ "$1" != "" ]]
+do
+ ENABLELIST+=" --enable-$1"
+ shift
+done
+DISABLELIST=""
+set -- $DISABLE
+while [[ "$1" != "" ]]
+do
+ DISABLELIST+=" --disable-$1"
+ shift
+done
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -34,12 +54,13 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --enable-itrax \
- --enable-tnt \
- --enable-dbus
+ --enable-dbus \
+ $ENABLELIST \
+ $DISABLELIST || exit 1
make
make install-strip DESTDIR=$PKG