diff options
author | bouyer <bouyer@pkgsrc.org> | 2019-03-25 11:34:05 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2019-03-25 11:34:05 +0000 |
commit | 04f25d0a0ef56079b5a6e1aa9bcf0af0556e3d91 (patch) | |
tree | 20c44619beae1c7df4a8126ebf1b0a25cc59f1e4 /geography | |
parent | b551e6cb1f983803b8edcdfc559ba9c1cb2ee751 (diff) | |
download | pkgsrc-04f25d0a0ef56079b5a6e1aa9bcf0af0556e3d91.tar.gz |
Update OpenCPN to 5.0.0. Changes since 4.8.8:
As a successor to OpenCPN Version 4.8, OpenCPN Version 5.0 contains many
new features and enhanced functions.
Among them are:
..Redesigned user interface, incorporating modern user interface elements and
concepts.
..Support for multiple chart views simultaneously, using different charts
display options if desired.
..User defined templates for easy recall of multiple configurations.
..Support for the widely available MBTiles chart format.
..Extended options for route and Waypoint creation.
..Expanded display of vector chart (ENC) information, including embedded
images.
..Measurably improved performance and reliability over all supported platforms.
Diffstat (limited to 'geography')
14 files changed, 150 insertions, 264 deletions
diff --git a/geography/opencpn/Makefile b/geography/opencpn/Makefile index b5e41442744..cad840af045 100644 --- a/geography/opencpn/Makefile +++ b/geography/opencpn/Makefile @@ -1,12 +1,12 @@ -# $NetBSD: Makefile,v 1.30 2018/12/13 19:51:58 adam Exp $ +# $NetBSD: Makefile,v 1.31 2019/03/25 11:34:05 bouyer Exp $ -DISTNAME= OpenCPN-4.8.8 +DISTNAME= OpenCPN-5.0.0 PKGNAME= ${DISTNAME:S/OpenCPN/opencpn/} -PKGREVISION= 1 +#PKGREVISION= 1 CATEGORIES= geography MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenCPN/} GITHUB_PROJECT= OpenCPN -GITHUB_TAG= v4.8.8 +GITHUB_TAG= v5.0.0 EXTRACT_SUFX= .zip MAINTAINER= bouyer@NetBSD.org @@ -14,7 +14,7 @@ HOMEPAGE= http://www.opencpn.org/ COMMENT= Concise ChartPlotter/Navigator LICENSE= gnu-gpl-v2 -USE_LANGUAGES= c c++ +USE_LANGUAGES= c c++11 USE_TOOLS+= gettext pkg-config USE_CMAKE= yes @@ -40,6 +40,7 @@ SUBST_SED.prefix= -e s,"/usr/local,"${PREFIX},g # Ensure we export symbols in the linked shared object. LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} +.include "../../audio/libsndfile/buildlink3.mk" .include "../../devel/cmake/buildlink3.mk" .include "../../x11/wxGTK30/buildlink3.mk" .include "../../graphics/libexif/buildlink3.mk" diff --git a/geography/opencpn/PLIST b/geography/opencpn/PLIST index d55704aa76a..041080af364 100644 --- a/geography/opencpn/PLIST +++ b/geography/opencpn/PLIST @@ -1,13 +1,15 @@ -@comment $NetBSD: PLIST,v 1.8 2018/08/27 15:48:15 bouyer Exp $ +@comment $NetBSD: PLIST,v 1.9 2019/03/25 11:34:05 bouyer Exp $ bin/opencpn lib/opencpn/libchartdldr_pi.so lib/opencpn/libdashboard_pi.so lib/opencpn/libgrib_pi.so lib/opencpn/libwmm_pi.so +share/appdata/opencpn.appdata.xml share/applications/opencpn.desktop share/doc/opencpn/changelog share/doc/opencpn/copyright share/icons/hicolor/48x48/apps/opencpn.png +share/icons/hicolor/64x64/apps/opencpn.png share/icons/hicolor/scalable/apps/opencpn.svg share/locale/ar_SA/LC_MESSAGES/opencpn-chartdldr_pi.mo share/locale/ar_SA/LC_MESSAGES/opencpn-dashboard_pi.mo @@ -81,6 +83,10 @@ share/locale/id_ID/LC_MESSAGES/opencpn-chartdldr_pi.mo share/locale/id_ID/LC_MESSAGES/opencpn-dashboard_pi.mo share/locale/id_ID/LC_MESSAGES/opencpn-grib_pi.mo share/locale/id_ID/LC_MESSAGES/opencpn-wmm_pi.mo +share/locale/is_IS/LC_MESSAGES/opencpn-chartdldr_pi.mo +share/locale/is_IS/LC_MESSAGES/opencpn-dashboard_pi.mo +share/locale/is_IS/LC_MESSAGES/opencpn-grib_pi.mo +share/locale/is_IS/LC_MESSAGES/opencpn-wmm_pi.mo share/locale/it/LC_MESSAGES/opencpn.mo share/locale/it_IT/LC_MESSAGES/opencpn-chartdldr_pi.mo share/locale/it_IT/LC_MESSAGES/opencpn-dashboard_pi.mo @@ -152,12 +158,51 @@ share/locale/vi_VN/LC_MESSAGES/opencpn-dashboard_pi.mo share/locale/vi_VN/LC_MESSAGES/opencpn-grib_pi.mo share/locale/vi_VN/LC_MESSAGES/opencpn-wmm_pi.mo share/locale/vi_VN/LC_MESSAGES/opencpn.mo +share/locale/zh_CN/LC_MESSAGES/opencpn-chartdldr_pi.mo +share/locale/zh_CN/LC_MESSAGES/opencpn-dashboard_pi.mo +share/locale/zh_CN/LC_MESSAGES/opencpn-grib_pi.mo +share/locale/zh_CN/LC_MESSAGES/opencpn-wmm_pi.mo share/locale/zh_TW/LC_MESSAGES/opencpn-chartdldr_pi.mo share/locale/zh_TW/LC_MESSAGES/opencpn-dashboard_pi.mo share/locale/zh_TW/LC_MESSAGES/opencpn-grib_pi.mo share/locale/zh_TW/LC_MESSAGES/opencpn-wmm_pi.mo share/locale/zh_TW/LC_MESSAGES/opencpn.mo +share/man/man1/opencpn.1 +share/opencpn/COPYING.gplv2 +share/opencpn/COPYING.gplv3 +share/opencpn/COPYING.lgplv2 +share/opencpn/COPYING.lgplv3 share/opencpn/CoC-909_2013-InlandECDIS_20170308s.pdf +share/opencpn/LICENSING +share/opencpn/LINUX_DEVICES.md +share/opencpn/authors.html +share/opencpn/doc/50info/MBT1.jpg +share/opencpn/doc/50info/bridge1.jpg +share/opencpn/doc/50info/bridge2.jpg +share/opencpn/doc/50info/chdow.jpg +share/opencpn/doc/50info/conf1.jpg +share/opencpn/doc/50info/conf2.jpg +share/opencpn/doc/50info/conf3.jpg +share/opencpn/doc/50info/conf4.jpg +share/opencpn/doc/50info/config1.jpg +share/opencpn/doc/50info/config2.jpg +share/opencpn/doc/50info/cpb1.jpg +share/opencpn/doc/50info/cpb2.jpg +share/opencpn/doc/50info/cpb3.jpg +share/opencpn/doc/50info/intro1.jpg +share/opencpn/doc/50info/maintool1.jpg +share/opencpn/doc/50info/mark1.jpg +share/opencpn/doc/50info/mark2.jpg +share/opencpn/doc/50info/odg1.jpg +share/opencpn/doc/50info/odg3.jpg +share/opencpn/doc/50info/perslay1.jpg +share/opencpn/doc/50info/perslay2.jpg +share/opencpn/doc/50info/prepvc.jpg +share/opencpn/doc/50info/routeall.jpg +share/opencpn/doc/50info/routes-points.jpg +share/opencpn/doc/50info/rteprop.jpg +share/opencpn/doc/50info/rteptprop.jpg +share/opencpn/doc/50info/wptprop.jpg share/opencpn/doc/advanced_features.html share/opencpn/doc/advanced_features/advanced_features.html share/opencpn/doc/advanced_features/anchor_watch.html @@ -1122,10 +1167,12 @@ share/opencpn/doc/toolbar_buttons/ship_track.html share/opencpn/doc/toolbar_buttons/tides_and_currents.html share/opencpn/doc/toolbar_buttons/vector_text_display.html share/opencpn/doc/toolbar_buttons/zooming.html +share/opencpn/doc/ver500.html share/opencpn/gshhs/poly-c-1.dat share/opencpn/gshhs/wdb_borders_c.b share/opencpn/gshhs/wdb_rivers_c.b -share/opencpn/license.txt +share/opencpn/license.html +share/opencpn/opencpn.png share/opencpn/plugins/chartdldr_pi/data/chart_sources.xml share/opencpn/plugins/chartdldr_pi/data/doc/03-Chart-Downloader-Tab-First-Time.png share/opencpn/plugins/chartdldr_pi/data/doc/04-AddNewChartSource-Predefined.png @@ -1149,6 +1196,7 @@ share/opencpn/plugins/dashboard_pi/data/Dashboard_toggled.svg share/opencpn/plugins/grib_pi/data/altitude.svg share/opencpn/plugins/grib_pi/data/curdata.svg share/opencpn/plugins/grib_pi/data/grib.svg +share/opencpn/plugins/grib_pi/data/grib_panel_icon.png share/opencpn/plugins/grib_pi/data/grib_rollover.svg share/opencpn/plugins/grib_pi/data/grib_toggled.svg share/opencpn/plugins/grib_pi/data/ncurdata.svg @@ -1183,6 +1231,54 @@ share/opencpn/tcdata/HARMONIC share/opencpn/tcdata/HARMONIC.IDX share/opencpn/tcdata/README.harmonics share/opencpn/uidata/DragHandle.svg +share/opencpn/uidata/MUI_flat/CompassRose.svg +share/opencpn/uidata/MUI_flat/CompassRoseBlue.svg +share/opencpn/uidata/MUI_flat/Dashboard.svg +share/opencpn/uidata/MUI_flat/Dashboard_rollover.svg +share/opencpn/uidata/MUI_flat/Dashboard_rollover_toggled.svg +share/opencpn/uidata/MUI_flat/Dashboard_toggled.svg +share/opencpn/uidata/MUI_flat/GRIB.svg +share/opencpn/uidata/MUI_flat/GRIB_rollover.svg +share/opencpn/uidata/MUI_flat/GRIB_rollover_toggled.svg +share/opencpn/uidata/MUI_flat/GRIB_toggled.svg +share/opencpn/uidata/MUI_flat/MUI_RMD.svg +share/opencpn/uidata/MUI_flat/MUI_Sconfig_1.svg +share/opencpn/uidata/MUI_flat/MUI_Sconfig_2.svg +share/opencpn/uidata/MUI_flat/MUI_colorscheme.svg +share/opencpn/uidata/MUI_flat/MUI_follow.svg +share/opencpn/uidata/MUI_flat/MUI_follow_active.svg +share/opencpn/uidata/MUI_flat/MUI_follow_ahead.svg +share/opencpn/uidata/MUI_flat/MUI_help.svg +share/opencpn/uidata/MUI_flat/MUI_menu.svg +share/opencpn/uidata/MUI_flat/MUI_menu_rollover.svg +share/opencpn/uidata/MUI_flat/MUI_print.svg +share/opencpn/uidata/MUI_flat/MUI_route.svg +share/opencpn/uidata/MUI_flat/MUI_route_rollover_toggled.svg +share/opencpn/uidata/MUI_flat/MUI_route_toggled.svg +share/opencpn/uidata/MUI_flat/MUI_settings.svg +share/opencpn/uidata/MUI_flat/MUI_settings_disabled.svg +share/opencpn/uidata/MUI_flat/MUI_track.svg +share/opencpn/uidata/MUI_flat/MUI_track_rollover.svg +share/opencpn/uidata/MUI_flat/MUI_track_rollover_toggled.svg +share/opencpn/uidata/MUI_flat/MUI_track_toggled.svg +share/opencpn/uidata/MUI_flat/MUI_zoom-in.svg +share/opencpn/uidata/MUI_flat/MUI_zoom-out.svg +share/opencpn/uidata/MUI_flat/WMM.svg +share/opencpn/uidata/MUI_flat/gps1Bar.svg +share/opencpn/uidata/MUI_flat/gps2Bar.svg +share/opencpn/uidata/MUI_flat/gps3Bar.svg +share/opencpn/uidata/MUI_flat/gpsGrn.svg +share/opencpn/uidata/MUI_flat/gpsGry.svg +share/opencpn/uidata/MUI_flat/gpsRed.svg +share/opencpn/uidata/MUI_flat/mob_btn.svg +share/opencpn/uidata/eye.svg +share/opencpn/uidata/eyex.svg +share/opencpn/uidata/iENC_All.svg +share/opencpn/uidata/iENC_Minimum.svg +share/opencpn/uidata/iENC_RMinus.svg +share/opencpn/uidata/iENC_RPlus.svg +share/opencpn/uidata/iENC_Standard.svg +share/opencpn/uidata/iENC_UserStd.svg share/opencpn/uidata/iconAll.png share/opencpn/uidata/iconMinimum.png share/opencpn/uidata/iconRMinus.png @@ -1224,6 +1320,7 @@ share/opencpn/uidata/markicons/Authority-Police.svg share/opencpn/uidata/markicons/Authority-Quarantine-Area.svg share/opencpn/uidata/markicons/Authority-Quarantine-Building.svg share/opencpn/uidata/markicons/Authority-Quarantine-Flag.svg +share/opencpn/uidata/markicons/DragHandle.svg share/opencpn/uidata/markicons/Hazard-Airplane.svg share/opencpn/uidata/markicons/Hazard-Animals-Crocodile.svg share/opencpn/uidata/markicons/Hazard-Animals-Jellyfish.svg @@ -1285,6 +1382,8 @@ share/opencpn/uidata/markicons/Marks-Buoy-TypeA.svg share/opencpn/uidata/markicons/Marks-Buoy-TypeB.svg share/opencpn/uidata/markicons/Marks-Cardinal-East-Lighted.svg share/opencpn/uidata/markicons/Marks-Cardinal-East.svg +share/opencpn/uidata/markicons/Marks-Cardinal-Nord-Lighted.svg +share/opencpn/uidata/markicons/Marks-Cardinal-Nord.svg share/opencpn/uidata/markicons/Marks-Cardinal-North-Lighted.svg share/opencpn/uidata/markicons/Marks-Cardinal-North.svg share/opencpn/uidata/markicons/Marks-Cardinal-South-Lighted.svg @@ -1313,6 +1412,8 @@ share/opencpn/uidata/markicons/Marks-Mooring-Buoy-Super.svg share/opencpn/uidata/markicons/Marks-Mooring-Buoy.svg share/opencpn/uidata/markicons/Marks-Mooring-Float.svg share/opencpn/uidata/markicons/Marks-Mooring-Pile.svg +share/opencpn/uidata/markicons/Marks-New-Danger-Lighted.svg +share/opencpn/uidata/markicons/Marks-New-Danger.svg share/opencpn/uidata/markicons/Marks-Race-Committee-Start-Boat.svg share/opencpn/uidata/markicons/Marks-Race-Finish.svg share/opencpn/uidata/markicons/Marks-Race-Start.svg @@ -1321,6 +1422,8 @@ share/opencpn/uidata/markicons/Marks-Race-Tetrahedron-Mark2.svg share/opencpn/uidata/markicons/Marks-Race-Tetrahedron-Mark3.svg share/opencpn/uidata/markicons/Marks-Race-Tetrahedron-Mark4.svg share/opencpn/uidata/markicons/Marks-Race-Tetrahedron-Mark5.svg +share/opencpn/uidata/markicons/Marks-Safe-Water-Lighted.svg +share/opencpn/uidata/markicons/Marks-Safe-Water.svg share/opencpn/uidata/markicons/Sea-Current-Eastbound.svg share/opencpn/uidata/markicons/Sea-Current-N-Eastbound.svg share/opencpn/uidata/markicons/Sea-Current-N-Westbound.svg diff --git a/geography/opencpn/distinfo b/geography/opencpn/distinfo index 72f72a9d02a..9c9f2a3104e 100644 --- a/geography/opencpn/distinfo +++ b/geography/opencpn/distinfo @@ -1,23 +1,18 @@ -$NetBSD: distinfo,v 1.23 2018/11/25 17:04:40 bouyer Exp $ +$NetBSD: distinfo,v 1.24 2019/03/25 11:34:05 bouyer Exp $ -SHA1 (OpenCPN-4.8.8.zip) = 96181b5785988b97d4fcfc851408652e1322aa59 -RMD160 (OpenCPN-4.8.8.zip) = fbb22e01f212943d4581cbf18bcab674fdb9786f -SHA512 (OpenCPN-4.8.8.zip) = 7f3973c7f488c7a1924f4e4a20b626fdeb174a0b04d7f4c2fe4936022863c1aa00eec06477507a00bdcb654759c42f084d27afafeee318cfc2611ff2c83faef1 -Size (OpenCPN-4.8.8.zip) = 61811803 bytes -SHA1 (patch-CMakeLists.txt) = f910ed2ba317070ec536fd1ee1230364964755da -SHA1 (patch-FindPortaudio.cmake) = e1bebe2203c6f3dc76f92ee5bdcb01eca66b6b9a -SHA1 (patch-plugins_chartdldr_pi_CMakeLists.txt) = 52962f6feac45a766fc2dff08d2802e946ccfc85 -SHA1 (patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake) = 29fbfaee37e2a932b923df6ff7541dad37e14d65 -SHA1 (patch-plugins_dashboard_pi_CMakeLists.txt) = 76a6198e58f81c129f15fa6671da180c263c231e -SHA1 (patch-plugins_grib_pi_CMakeLists.txt) = 49f997c27aa4710721d36945a681854579112a49 +SHA1 (OpenCPN-5.0.0.zip) = e4f2c77001fafed835c2329a1f2a74afdd4858ca +RMD160 (OpenCPN-5.0.0.zip) = e8ee55b1b00017f2fc885c147e8f69ec13c627aa +SHA512 (OpenCPN-5.0.0.zip) = 146fe0bf29424f72138168cd20617aabc2f130d2ffd47b8da4aa1e0aa6d7176093b36d96d8f0d456af1f7805db13ed87be67f4f3af7a7a2d6abf0d5734834f7a +Size (OpenCPN-5.0.0.zip) = 70056870 bytes +SHA1 (patch-CMakeLists.txt) = 2a615ec6c11621e7b119f75d5db2b06f7f2a7221 +SHA1 (patch-FindPortaudio.cmake) = d13b7e6cf42ea5b837ea6230c16b4558e87aa16c +SHA1 (patch-plugins_chartdldr_pi_CMakeLists.txt) = e193798a04082c3a20264214e2a3aa951f0ee514 +SHA1 (patch-plugins_dashboard_pi_CMakeLists.txt) = 5523e8bb960306a15367a7c9a8385f3787a2baf4 +SHA1 (patch-plugins_grib_pi_CMakeLists.txt) = 75338d3a85666eed26157e17d693f937b0356689 SHA1 (patch-plugins_wmm_pi_CMakeLists.txt) = 88339a61dd4b78b823bbd34bd1b02863d150f046 -SHA1 (patch-plugins_wmm_pi_cmake_PluginConfigure.cmake) = f1c91cfa744ed76d938bfb5bdb4116df9f45604a -SHA1 (patch-plugins_wmm_pi_src_MagneticPlotMap.cpp) = 885f940777b38c8e59cc5d2e4fdbd1bf9a91578d -SHA1 (patch-src_chart1.cpp) = ae7c1d8a59c9a275914a613205de71e2dca89dc6 -SHA1 (patch-src_crashprint.cpp) = a96e8aa980eb3b19c3dce3343582511d608e6625 SHA1 (patch-src_glu_CMakeLists.txt) = d63494a41071097252ac9e2cb95db75041f30b62 SHA1 (patch-src_mipmap_mipmap.c) = 3bdb2c37e7a6d89fc6a531af6e0396a1ff385aeb SHA1 (patch-src_ocpndc.cpp) = 4a72093a49f29d66a42e3f64b99a1a40bf08a658 SHA1 (patch-src_printtable.cpp) = 52ed0f09610d56e9acc5ec9b8e4cbdc7ad55d043 SHA1 (patch-src_routeprintout.cpp) = c0f960b76b1b7a8acb7e5faca5f656a5c259f02c -SHA1 (patch-src_tcmgr.cpp) = 3fb4edf3368f3f3907f231ebcabd8e5061699040 +SHA1 (patch-src_wxcurl_base.cpp) = 25c6d03dd1215885f15221d888327f0535080284 diff --git a/geography/opencpn/patches/patch-CMakeLists.txt b/geography/opencpn/patches/patch-CMakeLists.txt index 7c6f55dfa2a..742974d0e5c 100644 --- a/geography/opencpn/patches/patch-CMakeLists.txt +++ b/geography/opencpn/patches/patch-CMakeLists.txt @@ -1,8 +1,8 @@ -$NetBSD: patch-CMakeLists.txt,v 1.8 2018/11/25 17:04:40 bouyer Exp $ +$NetBSD: patch-CMakeLists.txt,v 1.9 2019/03/25 11:34:05 bouyer Exp $ ---- CMakeLists.txt.orig 2018-11-07 04:14:41.000000000 +0100 -+++ CMakeLists.txt 2018-11-25 14:47:14.684811535 +0100 -@@ -91,8 +91,21 @@ +--- CMakeLists.txt.orig 2019-03-13 05:01:43.000000000 +0100 ++++ CMakeLists.txt 2019-03-13 12:59:52.443556322 +0100 +@@ -157,7 +157,19 @@ # Based on code from nohal IF (NOT WIN32) # default @@ -21,11 +21,9 @@ $NetBSD: patch-CMakeLists.txt,v 1.8 2018/11/25 17:04:40 bouyer Exp $ + ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8") + ENDIF (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*") SET (LIB_INSTALL_DIR "lib") -+ IF (EXISTS /etc/debian_version) SET (PACKAGE_FORMAT "DEB") - SET (PACKAGE_DEPS "libc6, libwxgtk3.0-0, wx3.0-i18n, libglu1-mesa (>= 7.0.0), libgl1-mesa-glx (>= 7.0.0), zlib1g, bzip2, libtinyxml2.6.2, libportaudio2") -@@ -125,7 +138,6 @@ +@@ -191,7 +203,6 @@ ELSE (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*") IF (CMAKE_SIZEOF_VOID_P MATCHES "8") SET (ARCH "x86_64") @@ -33,35 +31,19 @@ $NetBSD: patch-CMakeLists.txt,v 1.8 2018/11/25 17:04:40 bouyer Exp $ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8") SET (ARCH "i386") SET (LIB_INSTALL_DIR "lib") -@@ -344,7 +356,7 @@ +@@ -1033,7 +1044,6 @@ - # Search for opengles, short of running a program to test the speed - # of acceleration, I simply use gles on "native linux" arm systems --IF (ARCH MATCHES "arm*" AND (NOT QT_ANDROID) ) -+IF (ARCH MATCHES "arm*" AND (NOT QT_ANDROID) AND CMAKE_SYSTEM_NAME MATCHES ".*Linux" ) - find_path(OPENGLESv1_INCLUDE_DIR GLES/gl.h ) - IF (OPENGLESv1_INCLUDE_DIR) - MESSAGE (STATUS "Found OpenGLESv1") -@@ -927,7 +939,6 @@ - IF(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) - OPTION(OCPN_FORCE_GTK3 "Force the build to use GTK3" OFF) - IF(NOT OCPN_FORCE_GTK3) - FIND_PACKAGE(GTK2) -@@ -1978,10 +1989,10 @@ - # Certain older Cmake FindGTK2 modules ( e.g. cmake-2.8.0-2) do not yield all of the required link libraries + IF(NOT OCPN_FORCE_GTK3) +@@ -2336,6 +2346,7 @@ # So, add them manually. These declarations may be redundant in some architectures, but do no harm. --IF(UNIX) --TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} dl ) --ENDIF(UNIX) -- -+IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") -+ TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} dl ) + IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") + TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} dl ) + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-dynamic") -+ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") + ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") + - IF( UNIX AND NOT APPLE ) - FIND_PATH( LIBELF_INCLUDE_DIR NAMES libelf.h gelf.h PATH_SUFFIXES libelf ) diff --git a/geography/opencpn/patches/patch-FindPortaudio.cmake b/geography/opencpn/patches/patch-FindPortaudio.cmake index 0a38f81d4a2..063c8308866 100644 --- a/geography/opencpn/patches/patch-FindPortaudio.cmake +++ b/geography/opencpn/patches/patch-FindPortaudio.cmake @@ -1,9 +1,9 @@ -$NetBSD: patch-FindPortaudio.cmake,v 1.2 2015/01/22 12:34:15 bouyer Exp $ +$NetBSD: patch-FindPortaudio.cmake,v 1.3 2019/03/25 11:34:05 bouyer Exp $ really find portaudio in portaudio2 subdir ---- FindPortaudio.cmake.orig 2014-05-26 21:26:36.000000000 +0200 -+++ FindPortaudio.cmake 2014-05-26 21:30:22.000000000 +0200 +--- cmake/FindPortaudio.cmake.orig 2014-05-26 21:26:36.000000000 +0200 ++++ cmake/FindPortaudio.cmake 2014-05-26 21:30:22.000000000 +0200 @@ -45,24 +45,13 @@ set(PORTAUDIO_FOUND TRUE) else (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS) diff --git a/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt index 5ee1fe245a4..b7ff56b348e 100644 --- a/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt +++ b/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt @@ -1,11 +1,11 @@ -$NetBSD: patch-plugins_chartdldr_pi_CMakeLists.txt,v 1.1 2016/05/21 10:50:41 bouyer Exp $ +$NetBSD: patch-plugins_chartdldr_pi_CMakeLists.txt,v 1.2 2019/03/25 11:34:05 bouyer Exp $ ---- plugins/chartdldr_pi/CMakeLists.txt.orig 2016-05-21 11:06:35.652268145 +0200 -+++ plugins/chartdldr_pi/CMakeLists.txt 2016-05-21 11:08:36.585112791 +0200 -@@ -130,6 +130,9 @@ +--- plugins/chartdldr_pi/CMakeLists.txt.orig 2019-02-22 04:55:10.000000000 +0100 ++++ plugins/chartdldr_pi/CMakeLists.txt 2019-02-22 14:32:36.748813048 +0100 +@@ -185,6 +185,9 @@ + TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} "-lz" ) ENDIF(QT_ANDROID) - +IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC") +ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") diff --git a/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake b/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake deleted file mode 100644 index 57d7d2aee28..00000000000 --- a/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake +++ /dev/null @@ -1,20 +0,0 @@ -$NetBSD: patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake,v 1.2 2016/05/21 10:50:41 bouyer Exp $ - ---- plugins/chartdldr_pi/cmake/PluginConfigure.cmake.orig 2016-02-03 18:44:17.000000000 +0100 -+++ plugins/chartdldr_pi/cmake/PluginConfigure.cmake 2016-05-21 11:07:31.835017011 +0200 -@@ -41,11 +41,12 @@ - ADD_DEFINITIONS( "-Wall -Wno-unused-result -g -O2 -fexceptions" ) - ENDIF(PROFILING) - -- IF(NOT APPLE) -+ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") - SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic") -- ELSE(NOT APPLE) -+ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") -+ IF(APPLE) - SET(CMAKE_SHARED_LINKER_FLAGS "-Wl -undefined dynamic_lookup") -- ENDIF(NOT APPLE) -+ ENDIF(APPLE) - - ENDIF(NOT MSVC) - diff --git a/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt index 5787011fd4a..e4615854518 100644 --- a/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt +++ b/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt @@ -1,19 +1,8 @@ -$NetBSD: patch-plugins_dashboard_pi_CMakeLists.txt,v 1.2 2016/05/21 10:50:41 bouyer Exp $ +$NetBSD: patch-plugins_dashboard_pi_CMakeLists.txt,v 1.3 2019/03/25 11:34:05 bouyer Exp $ ---- plugins/dashboard_pi/CMakeLists.txt.orig 2016-02-03 18:44:17.000000000 +0100 -+++ plugins/dashboard_pi/CMakeLists.txt 2016-05-21 11:08:40.892255884 +0200 -@@ -45,7 +45,9 @@ - # IF NOT DEBUGGING CFLAGS="-O2 -march=native" - IF(NOT WIN32 AND NOT APPLE) - ADD_DEFINITIONS( "-Wall -O2 -fexceptions -fvisibility=hidden" ) -- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic") -+ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") -+ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic") -+ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") - ENDIF(NOT WIN32 AND NOT APPLE) - - IF( APPLE ) -@@ -263,5 +265,8 @@ +--- plugins/dashboard_pi/CMakeLists.txt.orig 2019-02-22 04:55:10.000000000 +0100 ++++ plugins/dashboard_pi/CMakeLists.txt 2019-02-22 14:34:10.074874697 +0100 +@@ -266,5 +268,8 @@ ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/data) ENDIF(WIN32) diff --git a/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt index 8f4f8b09116..4f1c2fe3cae 100644 --- a/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt +++ b/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt @@ -1,21 +1,8 @@ -$NetBSD: patch-plugins_grib_pi_CMakeLists.txt,v 1.2 2016/05/21 10:50:41 bouyer Exp $ +$NetBSD: patch-plugins_grib_pi_CMakeLists.txt,v 1.3 2019/03/25 11:34:05 bouyer Exp $ ---- plugins/grib_pi/CMakeLists.txt.orig 2016-02-03 18:44:17.000000000 +0100 -+++ plugins/grib_pi/CMakeLists.txt 2016-05-21 11:08:48.884522634 +0200 -@@ -42,9 +42,11 @@ - #ADD_DEFINITIONS( "-Wall -ansi -pedantic -Wno-variadic-macros" ) - #TODO: Should we use -fno-stack-protector - # IF NOT DEBUGGING CFLAGS="-O2 -march=native" -+IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") -+ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic") -+ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") - IF(NOT WIN32 AND NOT APPLE) - ADD_DEFINITIONS( "-Wall -fexceptions -fvisibility=hidden" ) -- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic") - ENDIF(NOT WIN32 AND NOT APPLE) - - IF( APPLE ) -@@ -258,5 +260,8 @@ +--- plugins/grib_pi/CMakeLists.txt.orig 2019-02-22 04:55:10.000000000 +0100 ++++ plugins/grib_pi/CMakeLists.txt 2019-02-22 14:35:35.500028250 +0100 +@@ -283,5 +285,8 @@ ENDIF(WIN32) diff --git a/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake b/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake deleted file mode 100644 index 3cceb0bfe38..00000000000 --- a/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake +++ /dev/null @@ -1,20 +0,0 @@ -$NetBSD: patch-plugins_wmm_pi_cmake_PluginConfigure.cmake,v 1.2 2016/05/21 10:50:41 bouyer Exp $ - ---- plugins/wmm_pi/cmake/PluginConfigure.cmake.orig 2016-02-03 18:44:17.000000000 +0100 -+++ plugins/wmm_pi/cmake/PluginConfigure.cmake 2016-05-21 11:07:42.654361498 +0200 -@@ -41,11 +41,12 @@ - ADD_DEFINITIONS( "-Wall -Wno-unused-result -g -O2 -fexceptions" ) - ENDIF(PROFILING) - -- IF(NOT APPLE) -+ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") - SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic") -- ELSE(NOT APPLE) -+ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux") -+ IF(APPLE) - SET(CMAKE_SHARED_LINKER_FLAGS "-Wl -undefined dynamic_lookup") -- ENDIF(NOT APPLE) -+ ENDIF(APPLE) - - ENDIF(NOT MSVC) - diff --git a/geography/opencpn/patches/patch-plugins_wmm_pi_src_MagneticPlotMap.cpp b/geography/opencpn/patches/patch-plugins_wmm_pi_src_MagneticPlotMap.cpp deleted file mode 100644 index 0c12c9b4884..00000000000 --- a/geography/opencpn/patches/patch-plugins_wmm_pi_src_MagneticPlotMap.cpp +++ /dev/null @@ -1,39 +0,0 @@ -$NetBSD: patch-plugins_wmm_pi_src_MagneticPlotMap.cpp,v 1.2 2018/07/03 15:14:15 bouyer Exp $ - ---- plugins/wmm_pi/src/MagneticPlotMap.cpp.orig 2018-02-07 12:08:26.000000000 +0100 -+++ plugins/wmm_pi/src/MagneticPlotMap.cpp 2018-07-02 12:16:38.589797991 +0200 -@@ -32,6 +32,7 @@ - #endif //precompiled headers - - #include <wx/progdlg.h> -+#include <cmath> - - #include "ocpn_plugin.h" - -@@ -230,7 +231,7 @@ - else - p = CalcParameter(lonval, rx); - -- if(isnan(p)) /* is this actually correct? */ -+ if(std::isnan(p)) /* is this actually correct? */ - return true; - - if(m_type == DECLINATION && p-ry*m_Spacing < -180) /* way off, try other way around */ -@@ -290,7 +291,7 @@ - double p3 = CachedCalcParameter(lat2, lon1); - double p4 = CachedCalcParameter(lat2, lon2); - -- if(isnan(p1) || isnan(p2) || isnan(p3) || isnan(p4)) -+ if(std::isnan(p1) || std::isnan(p2) || std::isnan(p3) || std::isnan(p4)) - return; - - double ry1, ry2, ry3, ry4 = 0.0; -@@ -318,7 +319,7 @@ - ry1*=m_Spacing, ry2*=m_Spacing, ry3*=m_Spacing, ry4*=m_Spacing; - - /* determine which interpolations need line segments */ -- switch(((isnan(lat4)*2 + isnan(lat3))*2 + isnan(lon4))*2 + isnan(lon3)) { -+ switch(((std::isnan(lat4)*2 + std::isnan(lat3))*2 + std::isnan(lon4))*2 + std::isnan(lon3)) { - case 0: /* all 4 sides? need to recurse to get better resolution */ - lon3 = (lon1+lon2)/2; - lat3 = (lat1+lat2)/2; diff --git a/geography/opencpn/patches/patch-src_chart1.cpp b/geography/opencpn/patches/patch-src_chart1.cpp deleted file mode 100644 index 5a11506c4b3..00000000000 --- a/geography/opencpn/patches/patch-src_chart1.cpp +++ /dev/null @@ -1,55 +0,0 @@ -$NetBSD: patch-src_chart1.cpp,v 1.2 2015/01/22 12:34:15 bouyer Exp $ - -Adapt for tty devices on NetBSD -Reported in FS#1403 - ---- src/chart1.cpp.orig 2014-05-26 21:26:36.000000000 +0200 -+++ src/chart1.cpp 2014-05-26 21:30:22.000000000 +0200 -@@ -8032,7 +8032,9 @@ - - #include <termios.h> - #include <sys/ioctl.h> -+#ifdef __linux__ - #include <linux/serial.h> -+#endif - - #endif - -@@ -8098,6 +8100,15 @@ - - int isTTYreal(const char *dev) - { -+#ifdef __NetBSD__ -+ if (strncmp("/dev/tty0", dev, 9) == 0) -+ return 1; -+ if (strncmp("/dev/ttyU", dev, 9) == 0) -+ return 1; -+ if (strcmp("/dev/gps", dev) == 0) -+ return 1; -+ return 0; -+#else /* !NetBSD */ - struct serial_struct serinfo; - int ret = 0; - -@@ -8114,6 +8125,7 @@ - } - - return ret; -+#endif /* !NetBSD */ - } - - -@@ -8154,11 +8166,13 @@ - - // We try to add a few more, arbitrarily, for those systems that have fixed, traditional COM ports - -+#ifdef __linux__ - if( isTTYreal("/dev/ttyS0") ) - preturn->Add( _T("/dev/ttyS0") ); - - if( isTTYreal("/dev/ttyS1") ) - preturn->Add( _T("/dev/ttyS1") ); -+#endif /* linux */ - - - #endif diff --git a/geography/opencpn/patches/patch-src_crashprint.cpp b/geography/opencpn/patches/patch-src_crashprint.cpp deleted file mode 100644 index 7ec35c335d5..00000000000 --- a/geography/opencpn/patches/patch-src_crashprint.cpp +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-src_crashprint.cpp,v 1.1 2015/01/22 12:34:15 bouyer Exp $ - -backtrace support is linux-only for now - ---- src/crashprint.cpp.orig 2015-01-20 16:46:17.000000000 +0000 -+++ src/crashprint.cpp 2015-01-20 16:46:24.000000000 +0000 -@@ -76,6 +76,7 @@ - // general functions - - void wxCrashPrint::Report () { -+#if defined(__linux__) - wxString appname = wxTheApp->GetAppName(); - - // get the backtrace with symbols -@@ -136,5 +137,5 @@ - wxPrintf (_T("%s\n"), lines[i].c_str()); - } - } -- -+#endif - } diff --git a/geography/opencpn/patches/patch-src_tcmgr.cpp b/geography/opencpn/patches/patch-src_tcmgr.cpp deleted file mode 100644 index 3e751c96429..00000000000 --- a/geography/opencpn/patches/patch-src_tcmgr.cpp +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-src_tcmgr.cpp,v 1.2 2015/01/22 12:34:15 bouyer Exp $ - -64bit time_t fix -Reported in FS#1403 - ---- src/tcmgr.cpp.orig 2014-05-26 21:26:36.000000000 +0200 -+++ src/tcmgr.cpp 2014-05-26 21:30:22.000000000 +0200 -@@ -518,7 +518,7 @@ - f += fact * w[n] * (fr[deriv-n] - fl[deriv-n]); - fact *= (double)(deriv - n)/(n+1) * (1.0/TIDE_BLEND_TIME); - } -- printf(" %ld %g %g %g %g\n", t, blend, fr[0], fl[0], f); -+ printf(" %ld %g %g %g %g\n", (long)t, blend, fr[0], fl[0], f); - return f; - } - |