summaryrefslogtreecommitdiffstats
path: root/office/xtrkcad/xtrkcad.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/xtrkcad/xtrkcad.SlackBuild')
-rw-r--r--office/xtrkcad/xtrkcad.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/office/xtrkcad/xtrkcad.SlackBuild b/office/xtrkcad/xtrkcad.SlackBuild
index 33804d3c70..c0f98a282b 100644
--- a/office/xtrkcad/xtrkcad.SlackBuild
+++ b/office/xtrkcad/xtrkcad.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for xtrkcad
-# Copyright 2013-2022 Heiko Rosemann Germany
+# Copyright 2013-2024 Heiko Rosemann Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xtrkcad
-VERSION=${VERSION:-5.2.2GA}
+VERSION=${VERSION:-5.3.0GA}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -53,16 +53,12 @@ SRCNAM=${PRGNAM}-source-$VERSION
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
fi
set -e
@@ -80,6 +76,10 @@ 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 {} \;
+# Remove libzip.a bundled with xtrkcad to make cmake find the system version
+# Required for supporting platforms other than x86_64
+rm -rf app/tools/lib
+
mkdir -p build
cd build
cmake \
@@ -89,7 +89,8 @@ cd build
-DCMAKE_BUILD_TYPE=Release \
-DXTRKCAD_USE_GETTEXT=ON \
-DXTRKCAD_USE_GTK=ON ..
- make
+ # Remove DBUS access from make to avoid parallel inkscape crashing
+ DBUS_SESSION_BUS_ADDRESS="" make
make install DESTDIR=$PKG
cd ..