From 858eedd27eb60b51da19164cff21a48019257c2a Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Thu, 22 Oct 2015 07:01:46 +0000 Subject: [PATCH] astro/gpstk: Fix patches and CMake build After the last commit to this port [1], that updated DISTFILES, patch errors were reported on pkg-fallout: patch: **** can't cd to /wrkdirs/usr/ports/astro/gpstk/work/dev: No such file or directory => Patch patch-ext__lib__FileDirProc__FileHunter.cpp failed to apply cleanly. *** Error code 1 This change replaces a WRKSRC override with a CMAKE_SOURCE_PATH variable to declare the source directory and regenerates patchfiles against the default WRKSRC. While I'm here: switch to USES=cmake:outsource to match the build instructions upstream [2] It was also noted during testing that this port builds with the base Clang c++ compiler and does not require USE_GCC. Upstream documentation requires only 'a modern, ANSI compliant C++ compiler' [3] [1] https://svnweb.freebsd.org/changeset/ports/399654 [2] http://www.gpstk.org/bin/view/Documentation/BuildingGPSTkUnderUnix [3] http://www.gpstk.org/bin/view/Documentation/SystemRequirements PR: 201196 MFH: 2015Q4 --- astro/gpstk/Makefile | 6 +++--- .../files/patch-dev_ext_lib_FileDirProc_FileHunter.cpp | 10 ++++++++++ ...ls.hpp => patch-dev_ext_lib_Utilities_BinUtils.hpp} | 4 ++-- .../files/patch-ext__lib__FileDirProc__FileHunter.cpp | 10 ---------- 4 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 astro/gpstk/files/patch-dev_ext_lib_FileDirProc_FileHunter.cpp rename astro/gpstk/files/{patch-ext__lib__Utilities__BinUtils.hpp => patch-dev_ext_lib_Utilities_BinUtils.hpp} (56%) delete mode 100644 astro/gpstk/files/patch-ext__lib__FileDirProc__FileHunter.cpp diff --git a/astro/gpstk/Makefile b/astro/gpstk/Makefile index 1fe1eb16694f..537bce5ae502 100644 --- a/astro/gpstk/Makefile +++ b/astro/gpstk/Makefile @@ -12,12 +12,12 @@ COMMENT= Toolkit for developing GPS applications LICENSE= LGPL3 -USES= cmake python:run +USES= cmake:outsource python:run USE_GCC= yes USE_LDCONFIG= yes +CMAKE_SOURCE_PATH= ${WRKSRC}/dev + EXTRACT_AFTER_ARGS= --exclude .git -WRKSRC= ${WRKDIR}/dev - .include diff --git a/astro/gpstk/files/patch-dev_ext_lib_FileDirProc_FileHunter.cpp b/astro/gpstk/files/patch-dev_ext_lib_FileDirProc_FileHunter.cpp new file mode 100644 index 000000000000..9f56b136c0cd --- /dev/null +++ b/astro/gpstk/files/patch-dev_ext_lib_FileDirProc_FileHunter.cpp @@ -0,0 +1,10 @@ +--- dev/ext/lib/FileDirProc/FileHunter.cpp.orig 2014-10-10 19:46:15 UTC ++++ dev/ext/lib/FileDirProc/FileHunter.cpp +@@ -52,6 +52,7 @@ using namespace gpstk::StringUtils; + #ifndef _WIN32 + #include + #include ++#include + #else + #include + #include diff --git a/astro/gpstk/files/patch-ext__lib__Utilities__BinUtils.hpp b/astro/gpstk/files/patch-dev_ext_lib_Utilities_BinUtils.hpp similarity index 56% rename from astro/gpstk/files/patch-ext__lib__Utilities__BinUtils.hpp rename to astro/gpstk/files/patch-dev_ext_lib_Utilities_BinUtils.hpp index d10f3334c34a..e97a970aa755 100644 --- a/astro/gpstk/files/patch-ext__lib__Utilities__BinUtils.hpp +++ b/astro/gpstk/files/patch-dev_ext_lib_Utilities_BinUtils.hpp @@ -1,5 +1,5 @@ ---- ext/lib/Utilities/BinUtils.hpp.orig 2014-10-11 11:19:24 UTC -+++ ext/lib/Utilities/BinUtils.hpp +--- dev/ext/lib/Utilities/BinUtils.hpp.orig 2014-10-10 19:46:16 UTC ++++ dev/ext/lib/Utilities/BinUtils.hpp @@ -54,6 +54,7 @@ #include "Exception.hpp" diff --git a/astro/gpstk/files/patch-ext__lib__FileDirProc__FileHunter.cpp b/astro/gpstk/files/patch-ext__lib__FileDirProc__FileHunter.cpp deleted file mode 100644 index 0324e2c03b1a..000000000000 --- a/astro/gpstk/files/patch-ext__lib__FileDirProc__FileHunter.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- ext/lib/FileDirProc/FileHunter.cpp.orig 2014-10-10 19:46:15 UTC -+++ ext/lib/FileDirProc/FileHunter.cpp -@@ -52,6 +52,7 @@ - #ifndef _WIN32 - #include - #include -+#include - #else - #include - #include