diff options
author | Christoph Willing <chris.willing@linux.com> | 2023-04-03 21:52:55 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-04-08 09:16:37 +0700 |
commit | 0ce3f57d5e31d6a7e6bc63f4734efaad32d1ad5d (patch) | |
tree | 3bbb90456bbcf53a348cd2c0f9b267f39810ed0b /graphics/OpenCASCADE/OpenCASCADE.SlackBuild | |
parent | 260fda7410618ee1d32cef9c78ba4ca0d845b050 (diff) |
graphics/OpenCASCADE: Updated for version 7.7.0
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/OpenCASCADE/OpenCASCADE.SlackBuild')
-rw-r--r-- | graphics/OpenCASCADE/OpenCASCADE.SlackBuild | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/graphics/OpenCASCADE/OpenCASCADE.SlackBuild b/graphics/OpenCASCADE/OpenCASCADE.SlackBuild index 301344e5269df..9be1dd9335e34 100644 --- a/graphics/OpenCASCADE/OpenCASCADE.SlackBuild +++ b/graphics/OpenCASCADE/OpenCASCADE.SlackBuild @@ -27,13 +27,12 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=OpenCASCADE -VERSION=${VERSION:-7.3.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-7.7.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=occt -SRCVER=V$(echo $VERSION | tr . _) +SRCNAM=opencascade if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -74,9 +73,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$SRCVER -tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz -cd $SRCNAM-$SRCVER +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tgz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -84,11 +83,8 @@ 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 {} \; -patch -p1 < $CWD/fix-flow-control-nesting.patch - -# Thanks to Chris Willing for the fix for VTK-8.1.0 compatibility. -# This new version of the patch is still needed for occt 7.3.0 :( -patch -p0 < $CWD/occt-7.3.0_vtk_InsertNextTupleValue.diff +patch -p1 < $CWD/occt.git-7f523af8e8a63ee17d8fc26f107c191cd51dcd44.patch +sed -i -e '/#include <iostream>/a#include <limits>' src/ViewerTest/ViewerTest_CmdParser.cxx # Fix bogus install path sed -i -e 's|\${INSTALL_DIR}/\${INSTALL_DIR_CMAKE}/OpenCASCADECompile|${INSTALL_DIR_CMAKE}/OpenCASCADECompile|' \ @@ -107,15 +103,15 @@ cd build -DINSTALL_DIR_CMAKE=lib${LIBDIRSUFFIX}/cmake/opencascade \ -DINSTALL_DIR_DOC=doc/$PRGNAM-$VERSION \ -DUSE_GLES2=OFF \ - -DUSE_FFMPEG=${WITH_FFMPEG:-OFF} \ + -DUSE_FFMPEG=ON \ -DUSE_FREEIMAGE=${WITH_FREEIMAGE:-OFF} \ -DUSE_GL2PS=${WITH_GL2PS:-OFF} \ -DUSE_TBB=${WITH_TBB:-OFF} \ -DUSE_VTK=ON \ - -D3RDPARTY_VTK_INCLUDE_DIR=/usr/include/vtk-9.0 \ + -D3RDPARTY_VTK_INCLUDE_DIR=/usr/include/vtk-9.2 \ -D3RDPARTY_VTK_LIBRARY_DIR=/usr/lib${LIBDIRSUFFIX} \ -DCMAKE_BUILD_TYPE=Release .. - find . -name link.txt -exec sed -i s/vtkRenderingOpenGL/vtkRenderingOpenGL2/g {} + + make make install DESTDIR=$PKG cd .. |