summaryrefslogtreecommitdiffstats
path: root/academic/treerecs/treerecs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/treerecs/treerecs.SlackBuild')
-rw-r--r--academic/treerecs/treerecs.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/academic/treerecs/treerecs.SlackBuild b/academic/treerecs/treerecs.SlackBuild
index abaf7ba814..14e1cebfe0 100644
--- a/academic/treerecs/treerecs.SlackBuild
+++ b/academic/treerecs/treerecs.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for treerecs
-# Copyright 2020-2021 Petar Petrov slackalaxy@gmail.com
+# Copyright 2020-2023 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,13 +27,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=treerecs
+SRCNAM=Treerecs
VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-SRCNAM=Treerecs
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -42,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -83,6 +79,11 @@ 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 {} \;
+# GCC 12 explicitly requires these
+# https://stackoverflow.com/a/68149587
+sed -i "45i #include <limits>" ext/bpp/bpp-core/src/Bpp/Graph/GlobalGraph.cpp
+sed -i "26i #include <utility>" src/treerecs/containers/AbstractGrid.h
+
mkdir -p build
cd build
cmake \