summaryrefslogtreecommitdiff
path: root/geography/gpsbabel/patches
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2022-08-30 23:47:05 +0000
committergdt <gdt@pkgsrc.org>2022-08-30 23:47:05 +0000
commitece42ca69ac0816e24d9d4ce1f02742760e15263 (patch)
treecef03bb1e66383ed1267f87da02422068ff87d93 /geography/gpsbabel/patches
parent175c99301ebe85ab26f11fe3e06e48b53143f2dc (diff)
downloadpkgsrc-ece42ca69ac0816e24d9d4ce1f02742760e15263.tar.gz
geography/gpsbabel: Update to 1.8.0
packaging changes: - switch to github for distfile - switch from configure to qmake - depend on libusb1 and zlib (and add pkg-config as a tool) - drop patches to configure - add patches to fix portability issues in qmake support upstream changes (No NEWS provided, but skimming git log): - drop autoconf - retire some formats - Update standards to c++17, Qt >= 5.12, MSVC >= 2017 - lots of bugfixes and minor improvements
Diffstat (limited to 'geography/gpsbabel/patches')
-rw-r--r--geography/gpsbabel/patches/patch-GPSBabel.pro26
-rw-r--r--geography/gpsbabel/patches/patch-ad10
-rw-r--r--geography/gpsbabel/patches/patch-configure27
-rw-r--r--geography/gpsbabel/patches/patch-configure.ac29
-rw-r--r--geography/gpsbabel/patches/patch-libusb.pri14
5 files changed, 40 insertions, 66 deletions
diff --git a/geography/gpsbabel/patches/patch-GPSBabel.pro b/geography/gpsbabel/patches/patch-GPSBabel.pro
new file mode 100644
index 00000000000..98829e7d2a3
--- /dev/null
+++ b/geography/gpsbabel/patches/patch-GPSBabel.pro
@@ -0,0 +1,26 @@
+$NetBSD: patch-GPSBabel.pro,v 1.1 2022/08/30 23:47:05 gdt Exp $
+
+Add netbsd as a unix-like system.
+
+Not yet sent upstream.
+
+--- GPSBabel.pro.orig 2022-01-19 21:08:42.000000000 +0000
++++ GPSBabel.pro
+@@ -281,7 +281,7 @@ HEADERS += $$FILTER_HEADERS
+
+ CONFIG(release, debug|release): DEFINES *= NDEBUG
+
+-macx|linux|openbsd {
++macx|linux|netbsd|openbsd {
+ if (equals(MAKEFILE_GENERATOR, XCODE)) {
+ # "Configure tests are not supported with the XCODE Makefile generator"
+ # assume we have the following headers
+@@ -354,7 +354,7 @@ QMAKE_EXTRA_TARGETS += check-vtesto
+ QMAKE_CLEAN += $${OUT_PWD}/testo.d/*.vglog
+
+ # build the compilation data base used by clang tools including clang-tidy.
+-macx|linux|openbsd{
++macx|linux|netbsd|openbsd{
+ compile_command_database.target = compile_commands.json
+ compile_command_database.commands = $(MAKE) clean; bear $(MAKE)
+ QMAKE_EXTRA_TARGETS += compile_command_database
diff --git a/geography/gpsbabel/patches/patch-ad b/geography/gpsbabel/patches/patch-ad
deleted file mode 100644
index 4b289f8310c..00000000000
--- a/geography/gpsbabel/patches/patch-ad
+++ /dev/null
@@ -1,10 +0,0 @@
-$NetBSD: patch-ad,v 1.6 2019/05/02 19:01:17 gdt Exp $
-
-This patch was rejected by upstream. There is a comment in upstream
-Makefile.in that explains why there is no space, and output flag is
-set to "-o ", so that the output flag can be set to "-Fo" for MSVC.
-
-On NetBSD, the upstream version works, but there is some mysterious
-failure on Mac OS X. This patch therefore needs investigation and
-resolution to be filed with upstream. (It almost certainly breaks
-native compilation on Windows, but that's not a pkgsrc platform.)
diff --git a/geography/gpsbabel/patches/patch-configure b/geography/gpsbabel/patches/patch-configure
deleted file mode 100644
index 8f22ace09fb..00000000000
--- a/geography/gpsbabel/patches/patch-configure
+++ /dev/null
@@ -1,27 +0,0 @@
-$NetBSD: patch-configure,v 1.2 2019/05/02 19:01:17 gdt Exp $
-
---- configure.orig 2019-04-14 02:32:25.000000000 +0000
-+++ configure
-@@ -6310,21 +6310,7 @@ fi
- $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
-
-
-- # On Mac, use frameworks for includes and library files.
-- # Macports uses a non-standard build of Qt with an added
-- # QT_INSTALL_FRAMEWORKS flag, so look for thier custom
-- # version first. That will fail on 'normal' Qt so fall
-- # back to QT_INSTALL_LIBS.
-- QT_FW_OR_LIBS=$($QMAKE -query QT_INSTALL_FRAMEWORKS)
-- if test "$QT_FW_OR_LIBS" = "**Unknown**"; then :
--
-- QT_FW_OR_LIBS=$($QMAKE -query QT_INSTALL_LIBS)
--
--fi
-- QT_LIBS="-Wl,-rpath, $QT_FW_OR_LIBS -F$QT_FW_OR_LIBS -framework QtCore"
-- QT_INC="$QT_FW_OR_LIBS"
-- QT_INC_OPT="-F"
-- QT_SYSINC_OPT="-iframework"
-+ # In pkgsrc, we use the installed qt, not the framework.
- ;; #(
- *-*-freebsd*) :
-
diff --git a/geography/gpsbabel/patches/patch-configure.ac b/geography/gpsbabel/patches/patch-configure.ac
deleted file mode 100644
index 16bf8ea36a6..00000000000
--- a/geography/gpsbabel/patches/patch-configure.ac
+++ /dev/null
@@ -1,29 +0,0 @@
-$NetBSD: patch-configure.ac,v 1.1 2019/05/02 19:01:17 gdt Exp $
-
-In pkgsrc, we don't provide Qt as a framework.
-
-It's not clear how/if this should be addressed upstream.
-
---- configure.ac.orig 2019-04-14 02:32:25.000000000 +0000
-+++ configure.ac
-@@ -232,19 +232,7 @@ AS_CASE(["$target"], [*-*-cygwin* | *-*-
- USB_LIBS="-framework IOKit -framework CoreFoundation"
- AC_DEFINE(HAVE_LIBUSB, 1)
-
-- # On Mac, use frameworks for includes and library files.
-- # Macports uses a non-standard build of Qt with an added
-- # QT_INSTALL_FRAMEWORKS flag, so look for thier custom
-- # version first. That will fail on 'normal' Qt so fall
-- # back to QT_INSTALL_LIBS.
-- QT_FW_OR_LIBS=$($QMAKE -query QT_INSTALL_FRAMEWORKS)
-- AS_IF([test "$QT_FW_OR_LIBS" = "**Unknown**"], [
-- QT_FW_OR_LIBS=$($QMAKE -query QT_INSTALL_LIBS)
-- ])
-- QT_LIBS="-Wl,-rpath, $QT_FW_OR_LIBS -F$QT_FW_OR_LIBS -framework QtCore"
-- QT_INC="$QT_FW_OR_LIBS"
-- QT_INC_OPT="-F"
-- QT_SYSINC_OPT="-iframework"
-+ # In pkgsrc, we use the installed qt, not the framework.
- ], [*-*-freebsd*], [
- GBSER=gbser_posix.o
- AC_MSG_CHECKING(for libusb)
diff --git a/geography/gpsbabel/patches/patch-libusb.pri b/geography/gpsbabel/patches/patch-libusb.pri
new file mode 100644
index 00000000000..1694596fb82
--- /dev/null
+++ b/geography/gpsbabel/patches/patch-libusb.pri
@@ -0,0 +1,14 @@
+$NetBSD: patch-libusb.pri,v 1.1 2022/08/30 23:47:05 gdt Exp $
+
+Add NetBSD as a platform where libusb can be found by pkgconfig. (One
+wonders why it isn't allowed on any platform, since it presumably
+fails if libusb is requested but not found.)
+
+--- libusb.pri.orig 2022-01-19 21:08:42.000000000 +0000
++++ libusb.pri
+@@ -1,4 +1,4 @@
+-macx|linux|openbsd {
++macx|linux|netbsd|openbsd {
+ !defined(WITH_LIBUSB, var) {
+ macx: WITH_LIBUSB = included
+ linux|openbsd: WITH_LIBUSB = system