summaryrefslogtreecommitdiffstats
path: root/gis/tangogps
diff options
context:
space:
mode:
Diffstat (limited to 'gis/tangogps')
-rw-r--r--gis/tangogps/README18
-rw-r--r--gis/tangogps/tangogps.SlackBuild20
2 files changed, 24 insertions, 14 deletions
diff --git a/gis/tangogps/README b/gis/tangogps/README
index a2feaaad64..b44fdedcf8 100644
--- a/gis/tangogps/README
+++ b/gis/tangogps/README
@@ -1,10 +1,10 @@
-tangogps is an easy to use, fast, and lightweight mapping application
-for use with or without GPS. By default, tangoGPS uses map data from
-the Openstreetmap project. Additionally, a variety of other repositories
-can be easily added. The maps are downloaded and cached for offline use
-while you drag or zoom the map. Furthermore, you can conveniently pre-cache
-areas with tangoGPS.
+tangogps is an easy to use, fast, and lightweight mapping application
+for use with or without GPS. By default, tangoGPS uses map data
+from the Openstreetmap project. Additionally, a variety of other
+repositories can be easily added. The maps are downloaded and cached
+for offline use while you drag or zoom the map. Furthermore, you can
+conveniently pre-cache areas with tangoGPS.
-If connected to a GPS, your current position and track are shown on the map,
-and you can log positional data for further processing, e.g. for geocoding
-photos or uploading streets to Openstreetmap.
+If connected to a GPS, your current position and track are shown
+on the map, and you can log positional data for further processing,
+e.g. for geocoding photos or uploading streets to Openstreetmap.
diff --git a/gis/tangogps/tangogps.SlackBuild b/gis/tangogps/tangogps.SlackBuild
index d310c96556..c63df60df3 100644
--- a/gis/tangogps/tangogps.SlackBuild
+++ b/gis/tangogps/tangogps.SlackBuild
@@ -1,12 +1,15 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for tangogps
# Written by <pedro@gepasi.org>
# This script is hereby put in the public domain
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=tangogps
VERSION=${VERSION:-0.99.4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -16,7 +19,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -57,7 +67,7 @@ sed -i "s|^#include\ <glib/.*||" src/map_management.c
sed -i "s|^#include\ <curl/types\.h>||" \
src/tile_management.c src/util.h src/friends.c
-LDFLAGS="-lm" \
+LDFLAGS="-Wl,--allow-multiple-definition,-lm" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -76,4 +86,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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE