git: 982a0d90f696 - main - graphics/hugin: unbreak build with boost-1.85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Oct 2024 10:27:27 UTC
The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=982a0d90f69693a6462bacafedcee141565c6f62 commit 982a0d90f69693a6462bacafedcee141565c6f62 Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2024-10-02 23:32:31 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2024-10-03 10:24:55 +0000 graphics/hugin: unbreak build with boost-1.85 With hat: office Sponsored by: Future Crew, LLC --- graphics/hugin/Makefile | 2 +- .../patch-src_hugin__base_hugin__utils_filesystem.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/graphics/hugin/Makefile b/graphics/hugin/Makefile index bd257ed063ee..872f58be4171 100644 --- a/graphics/hugin/Makefile +++ b/graphics/hugin/Makefile @@ -1,6 +1,6 @@ PORTNAME= hugin DISTVERSION= 2023.0.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R} diff --git a/graphics/hugin/files/patch-src_hugin__base_hugin__utils_filesystem.h b/graphics/hugin/files/patch-src_hugin__base_hugin__utils_filesystem.h new file mode 100644 index 000000000000..d658b2546b74 --- /dev/null +++ b/graphics/hugin/files/patch-src_hugin__base_hugin__utils_filesystem.h @@ -0,0 +1,16 @@ +--- src/hugin_base/hugin_utils/filesystem.h.orig 2023-05-08 18:19:14 UTC ++++ src/hugin_base/hugin_utils/filesystem.h +@@ -64,6 +64,12 @@ + #endif + #include <boost/filesystem.hpp> + namespace fs = boost::filesystem; +- #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists ++ #if BOOST_VERSION>=107400 ++ // in Boost 1.74 and later filesystem::copy_option is deprecated ++ // use filesystem::copy_options instead ++ #define OVERWRITE_EXISTING boost::filesystem::copy_options::overwrite_existing ++ #else ++ #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists ++ #endif + #endif + #endif // _HUGIN_UTILS_FILESYSTEM_H