OpenCPN: update to 5.8.4.

This commit is contained in:
Andrew J. Hesford 2023-09-25 00:18:19 -04:00
parent f8c6f5f278
commit cebcf07d57
3 changed files with 42 additions and 59 deletions

View file

@ -1,28 +0,0 @@
--- a/cmake/GetArch.cmake 2020-07-15 20:02:29.000000000 +0200
+++ b/cmake/GetArch.cmake 2020-07-15 20:02:29.000000000 +0200
@@ -14,6 +14,25 @@
# default
set (ARCH "i386")
set (LIB_INSTALL_DIR "lib")
+ IF (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "aarch64")
+ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "armhf")
+ ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "ppc*" OR CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc*")
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "ppc64")
+ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "powerpc")
+ ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ ELSE (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "x86_64")
+ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "i386")
+ ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ ENDIF (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
if (EXISTS /etc/debian_version)
set (PACKAGE_FORMAT "DEB")
set (PACKAGE_RECS "xcalib,xdg-utils")

View file

@ -1,30 +1,35 @@
--- a/include/zeroconf-detail.hpp 2020-07-15 20:02:29.000000000 +0200 https://git.alpinelinux.org/aports/plain/community/opencpn/gcc12.patch
+++ b/include/zeroconf-detail.hpp 2020-07-15 20:02:29.000000000 +0200
@@ -20,9 +20,7 @@ diff --git a/include/zeroconf-detail.hpp b/include/zeroconf-detail.hpp
#define WIN32_LEAN_AND_MEAN index 60ae125..3e7607a 100644
#include <winsock2.h> --- a/include/zeroconf-detail.hpp
#else +++ b/include/zeroconf-detail.hpp
- #ifndef __WXOSX__ @@ -11,6 +11,9 @@
- #include <error.h> #include <vector>
- #else #include <memory>
+ #ifdef __WXOSX__ #include <chrono>
#include <mach/error.h> +#include <ctime>
#endif +
+#include <sys/select.h>
@@ -424,4 +422,4 @@ #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
} #define WIN32
} @@ -385,4 +388,4 @@ inline bool Resolve(const std::string& serviceName, time_t scanTime,
} // namespace Detail
} // namespace Zeroconf
-#endif // ZEROCONF_DETAIL_HPP -#endif // ZEROCONF_DETAIL_HPP
\ No newline at end of file \ No newline at end of file
+#endif // ZEROCONF_DETAIL_HPP +#endif // ZEROCONF_DETAIL_HPP
--- a/include/zeroconf-detail.hpp 2020-07-25 18:05:08.714098962 +0200 diff --git a/src/mDNS_service.cpp b/src/mDNS_service.cpp
+++ b/include/zeroconf-detail.hpp 2020-07-25 18:05:08.714098962 +0200 index c8c7877..3fbd7ea 100644
@@ -27,6 +27,7 @@ --- a/src/mDNS_service.cpp
#include <string.h> +++ b/src/mDNS_service.cpp
#include <unistd.h> @@ -35,6 +35,7 @@
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>
#endif #endif
#include <stdio.h>
+#include <sys/select.h>
#include <errno.h>
#include <signal.h>

View file

@ -1,7 +1,7 @@
# Template file for 'OpenCPN' # Template file for 'OpenCPN'
pkgname=OpenCPN pkgname=OpenCPN
version=5.2.0 version=5.8.4
revision=2 revision=1
build_style=cmake build_style=cmake
build_helper=cmake-wxWidgets-gtk3 build_helper=cmake-wxWidgets-gtk3
configure_args="-DOCPN_BUNDLE_GSHHS=NONE -DOCPN_BUNDLE_TCDATA=ON configure_args="-DOCPN_BUNDLE_GSHHS=NONE -DOCPN_BUNDLE_TCDATA=ON
@ -10,16 +10,17 @@ configure_args="-DOCPN_BUNDLE_GSHHS=NONE -DOCPN_BUNDLE_TCDATA=ON
-DOCPN_USE_BUNDLED_LIBS=OFF" -DOCPN_USE_BUNDLED_LIBS=OFF"
hostmakedepends="gettext pkg-config" hostmakedepends="gettext pkg-config"
makedepends="gtk+3-devel libcurl-devel portaudio-devel tinyxml-devel makedepends="gtk+3-devel libcurl-devel portaudio-devel tinyxml-devel
wxWidgets-gtk3-devel $(vopt_if exif 'libexif-devel') glu-devel wxWidgets-gtk3-devel glu-devel glew-devel rapidjson gtest-devel
$(vopt_if libarchive 'libarchive-devel' 'libunarr-devel') $(vopt_if lzma 'liblzma-devel')" $(vopt_if libarchive 'libarchive-devel' 'libunarr-devel')
$(vopt_if exif 'libexif-devel') $(vopt_if lzma 'liblzma-devel')"
depends="gpsd hicolor-icon-theme OpenCPN-tcdata-${version}_${revision} depends="gpsd hicolor-icon-theme OpenCPN-tcdata-${version}_${revision}
OpenCPN-gshhs-crude" OpenCPN-gshhs-crude"
short_desc="Concise ChartPlotter/Navigator" short_desc="Concise ChartPlotter/Navigator"
maintainer="John <me@johnnynator.dev>" maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, WxWindows-exception-3.1, JasPer-2.0, BSD-3-Clause, SGI-B-2.0" license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, WxWindows-exception-3.1, JasPer-2.0, BSD-3-Clause, SGI-B-2.0"
homepage="https://opencpn.org/" homepage="https://opencpn.org/"
distfiles="https://github.com/OpenCPN/OpenCPN/archive/v${version}.tar.gz" distfiles="https://github.com/OpenCPN/OpenCPN/archive/Release_${version}.tar.gz"
checksum=f6ec38989bc38f5a7f63234c5e0230adeb73f5626b4e3d3dfa680f0c240badc7 checksum=7552726e5afce5eb401e307beedd8f3aa2c66725602fc27ab3ad1845f40b87a0
build_options="lzma libarchive exif crashreport" build_options="lzma libarchive exif crashreport"
build_options_default="lzma libarchive exif" build_options_default="lzma libarchive exif"
@ -33,7 +34,12 @@ case $XBPS_TARGET_MACHINE in
*) build_options_default+=" crashreport";; *) build_options_default+=" crashreport";;
esac esac
if [ -n "$CROSS_BUILD" ]; then
configure_args+=" -DOCPN_BUILD_TEST=OFF"
fi
CFLAGS="-fcommon" CFLAGS="-fcommon"
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
post_install() { post_install() {
vlicense libs/glshim/LICENSE LICENSE.glshim vlicense libs/glshim/LICENSE LICENSE.glshim