viking: update to 1.8.

[ci skip]
This commit is contained in:
Piraty 2020-05-06 19:27:13 +02:00 committed by Piraty
parent 6c8c47da1a
commit b332120f17
3 changed files with 54 additions and 4 deletions

View file

@ -0,0 +1,25 @@
upstream: yes
From 7ff014f554825b1350a0ad349ffc0b7920a528c6 Mon Sep 17 00:00:00 2001
From: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 4 Feb 2020 21:12:47 +0000
Subject: [PATCH] Fix build without mapnik
Signed-off-by: Rob Norris <rw_norris@hotmail.com>
---
src/viklayer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/viklayer.c b/src/viklayer.c
index dc0ab1ff..3070157f 100644
--- a/src/viklayer.c
+++ b/src/viklayer.c
@@ -36,7 +36,7 @@ extern VikLayerInterface vik_dem_layer_interface;
#ifdef HAVE_LIBMAPNIK
extern VikLayerInterface vik_mapnik_layer_interface;
#endif
-#ifdef HAVE_LIBMAPNIK
+#ifdef HAVE_LIBGEOCLUE_2
extern VikLayerInterface vik_geoclue_layer_interface;
#endif

View file

@ -0,0 +1,24 @@
upstream: yes
From da4e97b0766243f937d11a4a4cbd6ab5aaac4e0f Mon Sep 17 00:00:00 2001
From: Rob Norris <rw_norris@hotmail.com>
Date: Sun, 9 Feb 2020 11:28:30 +0000
Subject: [PATCH] Github #80: Fix build with '--with-libexif'
---
src/geotag_exif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/geotag_exif.c b/src/geotag_exif.c
index 0e879a39..6e9514a7 100644
--- a/src/geotag_exif.c
+++ b/src/geotag_exif.c
@@ -362,7 +362,7 @@ VikWaypoint* a_geotag_create_waypoint_from_file ( const gchar *filename, VikCoor
// Not worried if none of the other fields exist, as can default the values to something
//
- gdouble alt = VIK_DEFAULT_ALTITUDE;
+ gdouble alt = NAN;
ee = exif_content_get_entry (ed->ifd[EXIF_IFD_GPS], EXIF_TAG_GPS_ALTITUDE);
if ( ee && ee->components == 1 && ee->format == EXIF_FORMAT_RATIONAL ) {
alt = Rational2Double ( ee->data,

View file

@ -1,12 +1,12 @@
# Template file for 'viking'
pkgname=viking
version=1.7
revision=2
version=1.8
revision=1
build_style=gnu-configure
configure_args="--disable-realtime-gps-tracking --disable-bluemarble
--disable-bing --disable-terraserver --disable-spotmaps
--disable-expedia --disable-mapnik --enable-magic --enable-bzip2
--enable-mbtiles"
--enable-mbtiles --with-libexif"
hostmakedepends="gdk-pixbuf-devel intltool pkg-config"
makedepends="file-devel gnome-doc-utils gtk+-devel libcurl-devel libexif-devel
libgexiv2-devel sqlite-devel bzip2-devel geoclue2-devel liboauth-devel
@ -16,4 +16,5 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/viking"
distfiles="${SOURCEFORGE_SITE}/viking/viking-${version}.tar.bz2"
checksum=7c791e8cdb62dbf4776e37f95fdb2825ac48550e3f6829a015e1b30c76135824
checksum=855cbccd5f17ef0dc6d7e2d080a4b20383a079dfb882edd04dba602297030fa8
patch_args="-Np1"