graphics/FreeCAD: Fix build with OpenCASCADE libs in /usr.

This fixes the problem importing DXF which was reported on LQ.
Thanks to enine.

Signed-off-by: David Spencer <baildon.research@googlemail.com>
This commit is contained in:
David Spencer 2016-07-14 12:25:53 +01:00 committed by Willy Sudiarto Raharjo
parent 6189c21842
commit 00860e988e
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 2 additions and 4 deletions

View File

@ -26,7 +26,7 @@
PRGNAM=FreeCAD
VERSION=${VERSION:-0.16}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -80,11 +80,9 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
-DOCC_INCLUDE_DIR:PATH=/opt/OpenCASCADE/inc \
-DOCC_LIBRARY:PATH=/opt/OpenCASCADE/lib${LIBDIRSUFFIX} \
-DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/opt/OpenCASCADE/lib${LIBDIRSUFFIX}" \
-DOCC_LIBRARY:PATH=/usr/lib${LIBDIRSUFFIX} \
-DRESOURCEDIR=/opt/$PRGNAM/share/data \
-DFREECAD_USE_EXTERNAL_PIVY:BOOL=ON \
-DCMAKE_BUILD_TYPE=Release ..