From 2e2db4fde56902b4c9f5afdf950b9dbd4d2780a9 Mon Sep 17 00:00:00 2001 From: titopoquito Date: Sun, 21 Apr 2024 21:11:29 +0700 Subject: graphics/hugin: Patch to work with newer boost. Signed-off-by: Willy Sudiarto Raharjo --- graphics/hugin/boost-1.85.0-patch | 16 ++++++++++++++++ graphics/hugin/hugin.SlackBuild | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 graphics/hugin/boost-1.85.0-patch diff --git a/graphics/hugin/boost-1.85.0-patch b/graphics/hugin/boost-1.85.0-patch new file mode 100644 index 0000000000..d2909ded9b --- /dev/null +++ b/graphics/hugin/boost-1.85.0-patch @@ -0,0 +1,16 @@ +--- src/hugin_base/hugin_utils/filesystem.h.old 2023-05-08 20:19:14.000000000 +0200 ++++ src/hugin_base/hugin_utils/filesystem.h 2024-04-21 10:00:22.770138350 +0200 +@@ -64,6 +64,12 @@ + #endif + #include + 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 diff --git a/graphics/hugin/hugin.SlackBuild b/graphics/hugin/hugin.SlackBuild index 0c5c216bc4..cd74672bfe 100644 --- a/graphics/hugin/hugin.SlackBuild +++ b/graphics/hugin/hugin.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for Hugin # # Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA -# Copyright 2011-2023 by titopoquito (titopoquito@gmail.com) +# Copyright 2011-2024 by titopoquito (titopoquito@gmail.com) # Thanks to Romain Dartigues for the help with the update to 2016.2.0 # All rights reserved. # @@ -35,7 +35,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hugin VERSION=${VERSION:-2023.0.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,6 +79,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION +patch -p0 <$CWD/boost-1.85.0-patch + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -- cgit v1.2.3