From owner-svn-ports-head@freebsd.org Sun Apr 21 18:09:51 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED416158032B; Sun, 21 Apr 2019 18:09:50 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 91D1B82916; Sun, 21 Apr 2019 18:09:50 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 662F7F3D; Sun, 21 Apr 2019 18:09:50 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3LI9ooM077880; Sun, 21 Apr 2019 18:09:50 GMT (envelope-from bofh@FreeBSD.org) Received: (from bofh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3LI9mSF077871; Sun, 21 Apr 2019 18:09:48 GMT (envelope-from bofh@FreeBSD.org) Message-Id: <201904211809.x3LI9mSF077871@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bofh set sender to bofh@FreeBSD.org using -f From: Muhammad Moinur Rahman Date: Sun, 21 Apr 2019 18:09:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499552 - in head/astro/qmapshack: . files X-SVN-Group: ports-head X-SVN-Commit-Author: bofh X-SVN-Commit-Paths: in head/astro/qmapshack: . files X-SVN-Commit-Revision: 499552 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 91D1B82916 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Apr 2019 18:09:51 -0000 Author: bofh Date: Sun Apr 21 18:09:48 2019 New Revision: 499552 URL: https://svnweb.freebsd.org/changeset/ports/499552 Log: astro/qmapshack: Update version 1.12.3=>1.13.0 - fix libproj detection: Our graphics proj is built with autotools and thus does not install it's cmake files. Patches provide an alternate method for finding libproj using pkg-config, see: https://sourceforge.net/p/qlandkartegt/mailman/message/36639866/ - fix a crash with current Qt when no GPS device is found (which at least for me is the default case): since the last Qt update, QList aborts on an assertion when trying to access the first element of an empty list. PR: 237425 Submitted by: cmt Added: head/astro/qmapshack/files/patch-CMakeLists.txt (contents, props changed) head/astro/qmapshack/files/patch-src_qmapshack_CMakeLists.txt (contents, props changed) head/astro/qmapshack/files/patch-src_qmapshack_device_CDeviceWatcherLinux.cpp (contents, props changed) head/astro/qmapshack/files/patch-src_qmaptool_CMakeLists.txt (contents, props changed) head/astro/qmapshack/files/patch-src_qmt__map2jnx_CMakeLists.txt (contents, props changed) head/astro/qmapshack/files/patch-src_qmt__rgb2pct_CMakeLists.txt (contents, props changed) Modified: head/astro/qmapshack/Makefile head/astro/qmapshack/distinfo head/astro/qmapshack/files/patch-cmake_Modules_DefineInstallationPaths.cmake Modified: head/astro/qmapshack/Makefile ============================================================================== --- head/astro/qmapshack/Makefile Sun Apr 21 18:06:07 2019 (r499551) +++ head/astro/qmapshack/Makefile Sun Apr 21 18:09:48 2019 (r499552) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= qmapshack -PORTVERSION= 1.12.3 -PORTREVISION= 1 +PORTVERSION= 1.13.0 CATEGORIES= astro MASTER_SITES= https://bitbucket.org/maproom/qmapshack/downloads/ @@ -19,7 +18,7 @@ LIB_DEPENDS= libgdal.so:graphics/gdal \ libroutino.so:astro/routino RUN_DEPENDS= ${LOCALBASE}/bin/bsdisks:sysutils/bsdisks -USES= cmake compiler:c++11-lib desktop-file-utils jpeg qt:5 +USES= cmake compiler:c++11-lib desktop-file-utils jpeg pkgconfig qt:5 USE_QT= buildtools core dbus declarative gui linguisttools location network \ printsupport qmake sql sql-sqlite3 uitools \ webchannel webengine widgets xml Modified: head/astro/qmapshack/distinfo ============================================================================== --- head/astro/qmapshack/distinfo Sun Apr 21 18:06:07 2019 (r499551) +++ head/astro/qmapshack/distinfo Sun Apr 21 18:09:48 2019 (r499552) @@ -1,3 +1,3 @@ -TIMESTAMP = 1549642588 -SHA256 (qmapshack-1.12.3.tar.gz) = 3d4ffbfa34c41d85d2a46d0d2a6c5254c305aa4ae137c253e6913f82097fe5fa -SIZE (qmapshack-1.12.3.tar.gz) = 12029443 +TIMESTAMP = 1554993320 +SHA256 (qmapshack-1.13.0.tar.gz) = 6a658f9188cd96ec53bd051cf475256b4bacc4a76a7043c5f478a38cc27161b3 +SIZE (qmapshack-1.13.0.tar.gz) = 12323773 Added: head/astro/qmapshack/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/qmapshack/files/patch-CMakeLists.txt Sun Apr 21 18:09:48 2019 (r499552) @@ -0,0 +1,22 @@ +--- CMakeLists.txt.orig 2019-04-08 16:08:10 UTC ++++ CMakeLists.txt +@@ -43,6 +43,7 @@ include(TranslateDesktop) + include(DefineCMakeDefaults) + include(DefineCompilerFlags) + include(DefineInstallationPaths) ++include(FindPkgConfig) + include(CPackConfig.cmake) + include(ConfigureChecks.cmake) + +@@ -135,7 +136,10 @@ find_package(Qt5Network REQUIRED) + find_package(Qt5WebEngineWidgets REQUIRED) + find_package(Qt5Qml REQUIRED) + find_package(GDAL REQUIRED) +-find_package(PROJ4 REQUIRED) ++find_package(PROJ4) ++if (NOT PROJ4_FOUND) ++ pkg_search_module(PROJ4 REQUIRED proj) ++endif() + find_package(JPEG REQUIRED) + find_package(ROUTINO REQUIRED) + find_package(QuaZip5 REQUIRED) Modified: head/astro/qmapshack/files/patch-cmake_Modules_DefineInstallationPaths.cmake ============================================================================== --- head/astro/qmapshack/files/patch-cmake_Modules_DefineInstallationPaths.cmake Sun Apr 21 18:06:07 2019 (r499551) +++ head/astro/qmapshack/files/patch-cmake_Modules_DefineInstallationPaths.cmake Sun Apr 21 18:09:48 2019 (r499552) @@ -1,6 +1,6 @@ ---- cmake/Modules/DefineInstallationPaths.cmake.orig 2014-08-18 10:08:14 UTC +--- cmake/Modules/DefineInstallationPaths.cmake.orig 2018-09-08 09:17:56 UTC +++ cmake/Modules/DefineInstallationPaths.cmake -@@ -101,7 +101,7 @@ if (UNIX) +@@ -97,7 +97,7 @@ if (UNIX) FORCE ) SET(MAN_INSTALL_DIR Added: head/astro/qmapshack/files/patch-src_qmapshack_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/qmapshack/files/patch-src_qmapshack_CMakeLists.txt Sun Apr 21 18:09:48 2019 (r499552) @@ -0,0 +1,11 @@ +--- src/qmapshack/CMakeLists.txt.orig 2019-04-08 15:33:43 UTC ++++ src/qmapshack/CMakeLists.txt +@@ -891,7 +891,7 @@ target_link_libraries(${APPLICATION_NAME} + Qt5::Positioning + ${DBUS_LIB} + ${GDAL_LIBRARIES} +- ${PROJ4_LIBRARIES} ++ ${PROJ4_LDFLAGS} ${PROJ4_LIBRARIES} + ${ROUTINO_LIBRARIES} + ${ALGLIB_LIBRARIES} + ${QUAZIP_LIBRARIES} Added: head/astro/qmapshack/files/patch-src_qmapshack_device_CDeviceWatcherLinux.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/qmapshack/files/patch-src_qmapshack_device_CDeviceWatcherLinux.cpp Sun Apr 21 18:09:48 2019 (r499552) @@ -0,0 +1,13 @@ +--- src/qmapshack/device/CDeviceWatcherLinux.cpp.orig 2019-04-20 21:33:23.749597000 +0200 ++++ src/qmapshack/device/CDeviceWatcherLinux.cpp 2019-04-20 21:34:05.021101000 +0200 +@@ -174,7 +174,9 @@ + #if defined(Q_OS_FREEBSD) + for(const QVariant &arg : reply.arguments()) + { +- points.append(arg.value().variant().value().first()); ++ if(!arg.value().variant().value().isEmpty()) { ++ points.append(arg.value().variant().value().first()); ++ } + } + #else + QList list; Added: head/astro/qmapshack/files/patch-src_qmaptool_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/qmapshack/files/patch-src_qmaptool_CMakeLists.txt Sun Apr 21 18:09:48 2019 (r499552) @@ -0,0 +1,11 @@ +--- src/qmaptool/CMakeLists.txt.orig 2019-04-08 15:33:47 UTC ++++ src/qmaptool/CMakeLists.txt +@@ -247,7 +247,7 @@ target_link_libraries(${APPLICATION_NAME} + Qt5::Widgets + Qt5::Network + ${GDAL_LIBRARIES} +- ${PROJ4_LIBRARIES} ++ ${PROJ4_LDFLAGS} ${PROJ4_LIBRARIES} + ) + + if(APPLE) Added: head/astro/qmapshack/files/patch-src_qmt__map2jnx_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/qmapshack/files/patch-src_qmt__map2jnx_CMakeLists.txt Sun Apr 21 18:09:48 2019 (r499552) @@ -0,0 +1,11 @@ +--- src/qmt_map2jnx/CMakeLists.txt.orig 2019-04-08 15:33:49 UTC ++++ src/qmt_map2jnx/CMakeLists.txt +@@ -46,7 +46,7 @@ IF(WIN32) + ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE) + ENDIF(WIN32) + +-TARGET_LINK_LIBRARIES(${APPLICATION_NAME} ${GDAL_LIBRARIES} ${PROJ4_LIBRARIES} ${JPEG_LIBRARIES}) ++TARGET_LINK_LIBRARIES(${APPLICATION_NAME} ${GDAL_LIBRARIES} ${PROJ4_LDFLAGS} ${PROJ4_LIBRARIES} ${JPEG_LIBRARIES}) + + if(APPLE) + set_target_properties(${APPLICATION_NAME} PROPERTIES Added: head/astro/qmapshack/files/patch-src_qmt__rgb2pct_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/qmapshack/files/patch-src_qmt__rgb2pct_CMakeLists.txt Sun Apr 21 18:09:48 2019 (r499552) @@ -0,0 +1,11 @@ +--- src/qmt_rgb2pct/CMakeLists.txt.orig 2019-04-08 15:33:50 UTC ++++ src/qmt_rgb2pct/CMakeLists.txt +@@ -95,7 +95,7 @@ add_executable(${APPLICATION_NAME} WIN32 ${MAININP}) + target_link_libraries(${APPLICATION_NAME} + Qt5::Core + ${GDAL_LIBRARIES} +- ${PROJ4_LIBRARIES} ++ ${PROJ4_LDFLAGS} ${PROJ4_LIBRARIES} + ) + + if(APPLE)