summaryrefslogtreecommitdiffstats
path: root/academic/dakota/dakota.SlackBuild
diff options
context:
space:
mode:
author Lorenzo Trevisan <lorenzo.trevisan@gmail.com>2022-07-30 00:29:51 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-30 11:26:22 +0700
commita5edcc03f1a77b622843d03a7b2a3180ccc64936 (patch)
tree34bb411238ce62931ed5cf0414b2e69c6fe95098 /academic/dakota/dakota.SlackBuild
parent91da42d63d2411a7c65354b15c83cd42f884e168 (diff)
downloadslackbuilds-a5edcc03f1a77b622843d03a7b2a3180ccc64936.tar.gz
slackbuilds-a5edcc03f1a77b622843d03a7b2a3180ccc64936.tar.xz
academic/dakota: Updated for version 6.16.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/dakota/dakota.SlackBuild')
-rw-r--r--academic/dakota/dakota.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/academic/dakota/dakota.SlackBuild b/academic/dakota/dakota.SlackBuild
index 58b479ac29..e5473809b7 100644
--- a/academic/dakota/dakota.SlackBuild
+++ b/academic/dakota/dakota.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dakota
-VERSION=${VERSION:-6.15.0}
+VERSION=${VERSION:-6.16.0}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,7 +71,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION-public-src-cli
tar xvf $CWD/$PRGNAM-$VERSION-public-src-cli.tar.gz
-cd $PRGNAM-$VERSION-public-src-cli
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -79,6 +79,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+cd $PRGNAM-$VERSION-public-src-cli
+
+# BREAKING CHANGE from Boost version 1.76: boost::dll::import was renamed to
+# boost::dll::import_symbol to avoid collision with C++20 import keyword.
+sed -i -e '114s=boost::dll::import=boost::dll::import_symbol=' ./src/PluginInterface.cpp
+
mkdir -p build
cd build
cmake \