diff options
author | David Spencer <baildon.research@googlemail.com> | 2018-05-31 16:30:20 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-06-02 07:32:34 +0700 |
commit | 8bb1e56b11b4ea6eb4e057776c08323cdbc2a905 (patch) | |
tree | b52a313baa5c67da48bf686b0adc60a29e525a5a /graphics/FreeCAD | |
parent | f6d446db455c8feedd94b337900770496ef02c91 (diff) | |
download | slackbuilds-8bb1e56b11b4ea6eb4e057776c08323cdbc2a905.tar.gz |
graphics/FreeCAD: Update to build with OpenCASCADE 7.3.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/FreeCAD')
-rw-r--r-- | graphics/FreeCAD/FreeCAD.SlackBuild | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/FreeCAD/FreeCAD.SlackBuild b/graphics/FreeCAD/FreeCAD.SlackBuild index dc09930805..47b0dc08e9 100644 --- a/graphics/FreeCAD/FreeCAD.SlackBuild +++ b/graphics/FreeCAD/FreeCAD.SlackBuild @@ -71,6 +71,19 @@ 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 {} \; +# SBo's OpenCASCADE 6.9.1 includes were in /opt/OpenCASCADE, but for 7.3.0 +# the includes are in /usr/include/opencascade, so let's accept either :) +if [ -d /usr/include/opencascade ]; then + occinc=/usr/include/opencascade +elif [ -d /opt/OpenCASCADE/inc ]; then + occinc=/opt/OpenCASCADE/inc + # However, 6.9.1's libs are in /usr/lib${LIBDIRSUFFIX} just like 7.3.0 + # (see OCC_LIBRARY below) +else + echo "OpenCASCADE include directory was not found" + exit 1 +fi + mkdir build cd build cmake \ @@ -78,7 +91,7 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \ -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \ - -DOCC_INCLUDE_DIR:PATH=/opt/OpenCASCADE/inc \ + -DOCC_INCLUDE_DIR:PATH=$occinc \ -DOCC_LIBRARY:PATH=/usr/lib${LIBDIRSUFFIX} \ -DRESOURCEDIR=/opt/$PRGNAM/share/data \ -DBUILD_FEM=OFF \ |