Skip to content
Snippets Groups Projects
Verified Commit 982a0d90 authored by Dima Panov's avatar Dima Panov
Browse files

graphics/hugin: unbreak build with boost-1.85

With hat:	office
Sponsored by:	Future Crew, LLC
parent 5a58ab08
No related branches found
No related tags found
No related merge requests found
PORTNAME= hugin
DISTVERSION= 2023.0.0
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
......
--- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment