summaryrefslogtreecommitdiffstats
path: root/gis/gpsbabel
diff options
context:
space:
mode:
Diffstat (limited to 'gis/gpsbabel')
-rw-r--r--gis/gpsbabel/README25
-rw-r--r--gis/gpsbabel/gpsbabel.SlackBuild57
-rw-r--r--gis/gpsbabel/gpsbabel.info8
3 files changed, 41 insertions, 49 deletions
diff --git a/gis/gpsbabel/README b/gis/gpsbabel/README
index fe1adcae48..690a7e6bf1 100644
--- a/gis/gpsbabel/README
+++ b/gis/gpsbabel/README
@@ -1,13 +1,16 @@
-GPSBabel converts waypoints, tracks, and routes from one format to another,
-whether that format is a common mapping format like Delorme, Streets and
-Trips, or even a serial or USB upload or download to a GPS receiver such as
-those from Garmin and Magellan. By flattening the Tower of Babel that the
-authors of various programs for manipulating GPS data have imposed upon us, it
-returns to us the ability to freely move our own waypoint data between the
-programs and hardware we choose to use.
+GPSBabel converts waypoints, tracks, and routes from one format to
+another, whether that format is a common mapping format like Delorme,
+Streets and Trips, or even a serial or USB upload or download to a GPS
+receiver such as those from Garmin and Magellan. By flattening the
+Tower of Babel that the authors of various programs for manipulating
+GPS data have imposed upon us, it returns to us the ability to freely
+move our own waypoint data between the programs and hardware we choose
+to use.
-It contains extensive data manipulation abilities making it a convenient for
-server-side processing or as the backend for other tools.
+It contains extensive data manipulation abilities making it a
+convenient for server-side processing or as the backend for other
+tools.
-It does not convert, transfer, send, or manipulate maps. We process data that
-may (or may not be) placed on a map, such as waypoints, tracks, and routes.
+It does not convert, transfer, send, or manipulate maps. We process
+data that may (or may not be) placed on a map, such as waypoints,
+tracks, and routes.
diff --git a/gis/gpsbabel/gpsbabel.SlackBuild b/gis/gpsbabel/gpsbabel.SlackBuild
index 7069748f58..1a31df9ad0 100644
--- a/gis/gpsbabel/gpsbabel.SlackBuild
+++ b/gis/gpsbabel/gpsbabel.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for gpsbabel
-# Copyright 2017-2021 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2017-2024 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=gpsbabel
-VERSION=${VERSION:-1.7.0}
+VERSION=${VERSION:-1.9.0}
SRCVER=${PRGNAM}_$(echo ${VERSION} | tr . _)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
@@ -36,17 +39,18 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM-$VERSION
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING README*"
+DOCS="AUTHORS COPYING README* SECURITY.md"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i586" ]; then
+if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
@@ -80,37 +84,22 @@ sed -i \
-e '/ignoreVersionMismatch_/s/false/true/' \
gui/babeldata.h
-# Make it more FHS-compliant by moving gmapbase.html and the translations
-# to /usr/share. Tell the GUI where to find them. Thanks to Arch.
-sed -i 's|langPath_ = QApplication::applicationDirPath();|langPath_ = "/usr/share/gpsbabel";|' gui/mainwindow.cc
-sed -i 's|baseFile = QApplication::applicationDirPath() + "/gmapbase.html";|baseFile = "/usr/share/gpsbabel/gmapbase.html";|' gui/map.cc
-
# Resize the icon from 500x476 to 512x512. Thanks to Arch.
convert gui/images/appicon.png +set date:create +set date:modify -background none -gravity center -extent 512x512 gui/images/appicon.png
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-zlib=system \
- --build=$ARCH-slackware-linux \
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS" \
-
+cmake \
+ -DGPSBABEL_WITH_LIBUSB=pkgconfig \
+ -DGPSBABEL_WITH_ZLIB=pkgconfig \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ .
make
-make gui
install -D -m0755 -s gpsbabel $PKG/usr/bin/gpsbabel
-install -D -m0755 -s gui/objects/gpsbabelfe $PKG/usr/bin/gpsbabelfe
+install -D -m0755 -s gui/GPSBabelFE/gpsbabelfe $PKG/usr/bin/gpsbabelfe
install -D -m0644 gui/gpsbabel.desktop $PKG/usr/share/applications/gpsbabel.desktop
install -D -m0644 gui/images/appicon.png $PKG/usr/share/icons/hicolor/512x512/apps/gpsbabel.png
-install -D -m0644 gui/gmapbase.html $PKG/usr/share/gpsbabel/gmapbase.html
-install -d -m0755 $PKG/usr/share/gpsbabel/translations/
-install -D -m0644 gui/*.qm $PKG/usr/share/gpsbabel/translations/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
@@ -121,4 +110,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
diff --git a/gis/gpsbabel/gpsbabel.info b/gis/gpsbabel/gpsbabel.info
index 4e5ebfcbe3..dc5540f636 100644
--- a/gis/gpsbabel/gpsbabel.info
+++ b/gis/gpsbabel/gpsbabel.info
@@ -1,10 +1,10 @@
PRGNAM="gpsbabel"
-VERSION="1.7.0"
+VERSION="1.9.0"
HOMEPAGE="https://www.gpsbabel.org/"
-DOWNLOAD="https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_7_0/gpsbabel-gpsbabel_1_7_0.tar.gz"
-MD5SUM="80a7d3455c741e1298b2fbce93bb6072"
+DOWNLOAD="https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_9_0/gpsbabel-gpsbabel_1_9_0.tar.gz"
+MD5SUM="8555b7b4c89fbae832451ed0679e04f0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="libminizip qt5"
+REQUIRES=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"