diff options
Diffstat (limited to 'system/gpsd/gpsd.SlackBuild')
-rw-r--r-- | system/gpsd/gpsd.SlackBuild | 29 |
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 |