summaryrefslogtreecommitdiff
path: root/system/gpsd/gpsd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/gpsd/gpsd.SlackBuild')
-rw-r--r--system/gpsd/gpsd.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/system/gpsd/gpsd.SlackBuild b/system/gpsd/gpsd.SlackBuild
index 4ebde3fcb3..12687976c4 100644
--- a/system/gpsd/gpsd.SlackBuild
+++ b/system/gpsd/gpsd.SlackBuild
@@ -4,7 +4,7 @@
# This script is dedicated to the public domain
PRGNAM=gpsd
-VERSION=2.94
+VERSION=${VERSION:-2.95}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,14 +39,14 @@ set -e
ENABLELIST=""
set -- $(echo $ENABLE | sed 's/,/ /g')
-while [[ "$1" != "" ]]
+while [ "$1" != "" ]
do
ENABLELIST+=" --enable-$1"
shift
done
DISABLELIST=""
set -- $(echo $DISABLE | sed 's/,/ /g')
-while [[ "$1" != "" ]]
+while [ "$1" != "" ]
do
DISABLELIST+=" --disable-$1"
shift
@@ -65,9 +65,6 @@ chmod -R u+w,go+r-w,a-s .
# (force "pkg-config --libs libgps[d]" to return -L/usr/lib64 on x86_64)
patch -p1 < $CWD/gpsd-pkgconfig_templates.patch
-# Fix libusb detection (thanks Niels Horn!)
-sed "s|/usr/lib/libusb|/usr/lib$LIBDIRSUFFIX/libusb|" -i configure
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -76,6 +73,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --disable-static \
--enable-dbus \
--build=$ARCH-slackware-linux \
$ENABLELIST \