osx: don't use qt-webkit
@@ -4,14 +4,21 @@ cd build
if [ `uname` = "Darwin" ]; then
NETGEN_VAR="-D BUILD_FEM_NETGEN=OFF \
"
+ QT_VAR="-D BUILD_WEB:BOOL=OFF
+ "
else
NETGEN_VAR="-D NETGENDATA:FILEPATH=$PREFIX/include/netgen \
-D NETGEN_INCLUDEDIR:FILEPATH=$PREFIX/include/netgen \
-D NGLIB_INCLUDE_DIR:FILEPATH=$PREFIX/include/nglib \
-D BUILD_FEM_NETGEN:BOOL=ON \
"
+ QT_VAR="-D BUILD_WEB:BOOL=ON
+ "
fi
+PY_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
+PY_LIBRARY_DIR=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
+
cmake -G "Ninja" \
-D BUID_WITH_CONDA:BOOL=ON \
-D CMAKE_BUILD_TYPE=Release \
@@ -20,6 +27,7 @@ cmake -G "Ninja" \
-D CMAKE_LIBRARY_PATH:FILEPATH=$PREFIX/lib \
-D BUILD_QT5:BOOL=ON \
${NETGEN_VAR} \
+ ${QT_VAR} \
-D OCC_INCLUDE_DIR:FILEPATH=$PREFIX/include/opencascade \
-D OCC_LIBRARY_DIR:FILEPATH=$PREFIX/lib \
-D OCC_LIBRARIES:FILEPATH=$PREFIX/lib CACHE PATH \
@@ -28,8 +36,8 @@ cmake -G "Ninja" \
-D SWIG_DIR:FILEPATH=$PREFIX/share/swig/3.0.8 \
-D SWIG_EXECUTABLE:FILEPATH=$PREFIX/bin/swig \
-D PYTHON_EXECUTABLE:FILEPATH=$PYTHON \
- -D PYTHON_INCLUDE_DIR:FILEPATH=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
- -D PYTHON_LIBRARY:FILEPATH=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") \
+ -D PYTHON_INCLUDE_DIR:FILEPATH=${PY_INCLUDE_DIR} \
+ -D PYTHON_LIBRARY:FILEPATH=${PY_LIBRARY_DIR} \
-D USE_BOOST_PYTHON:BOOL=OFF \
-D FREECAD_USE_PYBIND11:BOOL=ON \
-D BUILD_ENABLE_CXX11:BOOL=ON \
