aboutsummaryrefslogtreecommitdiff
path: root/graphics/OpenCASCADE
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/OpenCASCADE')
-rw-r--r--graphics/OpenCASCADE/OpenCASCADE.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/OpenCASCADE/OpenCASCADE.SlackBuild b/graphics/OpenCASCADE/OpenCASCADE.SlackBuild
index d225d48942f38..ce6b5a69c6cfc 100644
--- a/graphics/OpenCASCADE/OpenCASCADE.SlackBuild
+++ b/graphics/OpenCASCADE/OpenCASCADE.SlackBuild
@@ -32,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OpenCASCADE
VERSION=${VERSION:-7.7.0}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -72,6 +72,10 @@ else
LIBDIRSUFFIX=""
fi
+# OpenCASCADE doesn't yet built with ffmpeg-7.*
+use_ffmpeg="-DUSE_FFMPEG=ON "
+if [[ "$(ffmpeg -version | sed -n "s/ffmpeg version \([-0-9.]*\).*/\1/p;")" == "7"* ]]; then use_ffmpeg="-DUSE_FFMPEG=OFF "; fi
+
set -e
rm -rf $PKG
@@ -101,13 +105,13 @@ mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -fpermissive" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_DIR_LIB=lib${LIBDIRSUFFIX} \
-DINSTALL_DIR_CMAKE=lib${LIBDIRSUFFIX}/cmake/opencascade \
-DINSTALL_DIR_DOC=doc/$PRGNAM-$VERSION \
-DUSE_GLES2=OFF \
- -DUSE_FFMPEG=ON \
+ $use_ffmpeg \
-DUSE_FREEIMAGE=${WITH_FREEIMAGE:-OFF} \
-DUSE_GL2PS=${WITH_GL2PS:-OFF} \
-DUSE_TBB=${WITH_TBB:-OFF} \
@@ -123,6 +127,10 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+cd $PKG/usr/lib${LIBDIRSUFFIX}/cmake/opencascade
+sed -i -e 's/\\\${OCCT_INSTALL_BIN_LETTER}//' *.cmake
+cd -
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt README.txt \