Skip to content

Commit

Permalink
cad/freecad: update to 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moench-tegeder committed Aug 5, 2023
1 parent b33a945 commit 30e39d6
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 394 deletions.
44 changes: 30 additions & 14 deletions cad/freecad/Makefile
@@ -1,9 +1,5 @@
PORTNAME= FreeCAD
DISTVERSION= 0.20.2
PORTREVISION= 5
# use these for bugfixes/snapshots
# DISTVERSION= 0.18-16093 # git rev-list --count
# DISTVERSIONSUFFIX= -g690774c0e
DISTVERSION= 0.21.0
CATEGORIES= cad

MAINTAINER= cmt@FreeBSD.org
Expand All @@ -13,14 +9,19 @@ WWW= https://www.freecadweb.org/
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= pyside_tool.py:devel/pyside2-tools@${PY_FLAVOR} \
BUILD_DEPENDS= doxygen:devel/doxygen \
pybind11-config:devel/py-pybind11@${PY_FLAVOR} \
pyside_tool.py:devel/pyside2-tools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pivy>0:graphics/py-pivy@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR} \
${PYTHON_INCLUDEDIR}/CXX/Config.hxx:devel/py-cxx \
swig:devel/swig
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libfreetype.so:print/freetype2 \
${PY_BOOST} \
libpyside2.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}.so:devel/pyside2@${PY_FLAVOR} \
libCoin.so:graphics/Coin \
libfmt.so:devel/libfmt \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} \
Expand All @@ -30,7 +31,7 @@ LIB_DEPENDS= libexpat.so:textproc/expat2 \
libarea.so:devel/libarea \
libmed.so:french/med \
libshiboken2.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}.so:devel/shiboken2@${PY_FLAVOR} \
libhdf5-110.so:science/hdf5-110
libhdf5.so:science/hdf5

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pivy>0:graphics/py-pivy@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR}
Expand All @@ -41,9 +42,9 @@ USES= dos2unix compiler:c++17-lang cmake cpe gl eigen:3 fortran jpeg \
USE_GITHUB= yes
USE_XORG= ice sm x11 xext xt
USE_GL= gl glu
USE_QT= buildtools concurrent core declarative gui location network \
opengl printsupport qmake:build svg webchannel widgets xml \
xmlpatterns
USE_QT= buildtools concurrent core declarative designer gui \
linguisttools location network opengl printsupport \
qmake:build svg webchannel widgets xml xmlpatterns
USE_LDCONFIG= yes

CPE_VENDOR= freecad_project
Expand All @@ -53,23 +54,38 @@ VTK_VER= 9.2
DOS2UNIX_GLOB= *.txt *.h *.cpp *.py *.qss *.csv *.pov *.stp *.ui *.wrl *.WRL
SHEBANG_FILES= src/Tools/freecad-thumbnailer

# our HDF5/CMake integration is messy, so workarounds are required below
CMAKE_ARGS+= -DOCC_INCLUDE_DIR="${LOCALBASE}/include/OpenCASCADE" \
-DOPENMPI_INCLUDE_DIRS="${LOCALBASE}/mpi/openmpi/include" \
-DBUILD_QT5="ON" \
-DPYTHON_LIBRARY="${PYTHONBASE}/lib/libpython${PYTHON_VER}${PYTHON_ABIVER}.so" \
-DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDEDIR}" \
-DPYTHON_PACKAGES_PATH="${PYTHON_SITELIBDIR}" \
-DPYTHON_EXECUTABLE="${PYTHON_CMD}" \
-DBUILD_ASSEMBLY="OFF" -DBUILD_FLAT_MESH="ON" \
-DHDF5_CFLAGS="-I${LOCALBASE}/include/hdf5-110" \
-DPYCXX_INCLUDE_DIR="${PYTHON_INCLUDEDIR}" \
-DBUILD_ASSEMBLY="OFF" \
-DBUILD_DESIGNER_PLUGIN="ON" \
-DBUILD_FLAT_MESH="ON" \
-DBUILD_VR="OFF" \
-DFREECAD_USE_EXTERNAL_FMT="ON" \
-DFREECAD_CREATE_MAC_APP="OFF" \
-DFREECAD_FREECAD_LIBPACK_USE="OFF" \
-DFREECAD_USE_EXTERNAL_KDL="OFF" \
-DFREECAD_USE_EXTERNAL_SMESH="OFF" \
-DFREECAD_USE_FREETYPE="ON" \
-DFREECAD_USE_PYBIND11="ON" \
-Dpybind11_DIR="${PYTHON_SITELIBDIR}/pybind11/share/cmake/pybind11" \
-DHDF5_CFLAGS="-I${LOCALBASE}/include" \
-DHDF5_FOUND=TRUE \
-DHDF5_INCLUDE_DIRS="${LOCALBASE}/include/hdf5-110" \
-DHDF5_LIBRARIES="-L${LOCALBASE}/lib -lhdf5-110" \
-DHDF5_VERSION="1.12.2" \
-DHDF5_INCLUDE_DIRS="${LOCALBASE}/include/hdf5" \
-DHDF5_LIBRARIES="-L${LOCALBASE}/lib -lhdf5" \
-DHDF5_LIBRARY_DIRS="${LOCALBASE}/lib" \
-DPYSIDE2RCCBINARY="${RCC}" \
-DPYSIDE2UICBINARY="${UIC}" \
-DBUILD_ENABLE_CXX_STD=C++17


CMAKE_INSTALL_PREFIX= ${PREFIX}/${PORTNAME}
# Install XDG icons and files to the standard path
CMAKE_ARGS+= -DXDG_DATADIR="${PREFIX}/share"
Expand Down
6 changes: 3 additions & 3 deletions cad/freecad/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1670364675
SHA256 (FreeCAD-FreeCAD-0.20.2_GH0.tar.gz) = be3b0be917142d36074f58782b276973890a3fad850bc1db2db99a5ad0c8732b
SIZE (FreeCAD-FreeCAD-0.20.2_GH0.tar.gz) = 75558140
TIMESTAMP = 1691075290
SHA256 (FreeCAD-FreeCAD-0.21.0_GH0.tar.gz) = 31a7f9aef99763904d7ffa9fd2d06e2e318e10e5306dac04710234a564fa778b
SIZE (FreeCAD-FreeCAD-0.21.0_GH0.tar.gz) = 66086371
10 changes: 0 additions & 10 deletions cad/freecad/files/patch-src_Mod_Import_App_ImportOCAF2.h

This file was deleted.

12 changes: 12 additions & 0 deletions cad/freecad/files/patch-src_Mod_MeshPart_App_CMakeLists.txt
@@ -0,0 +1,12 @@
diff --git src/Mod/MeshPart/App/CMakeLists.txt src/Mod/MeshPart/App/CMakeLists.txt
index 6ee9deb4eb..6fb25015e3 100644
--- src/Mod/MeshPart/App/CMakeLists.txt
+++ src/Mod/MeshPart/App/CMakeLists.txt
@@ -21,6 +21,7 @@ include_directories(
${PYTHON_INCLUDE_DIRS}
${SMESH_INCLUDE_DIR}
${VTK_INCLUDE_DIRS}
+ ${pybind11_INCLUDE_DIR}
${EIGEN3_INCLUDE_DIR}
)

12 changes: 0 additions & 12 deletions cad/freecad/files/patch-src_Mod_Part_App_OCCError.h

This file was deleted.

38 changes: 0 additions & 38 deletions cad/freecad/files/patch-src_Mod_Raytracing_App_AppRaytracingPy.cpp

This file was deleted.

41 changes: 0 additions & 41 deletions cad/freecad/files/patch-src_Mod_Raytracing_App_LuxFeature.cpp

This file was deleted.

30 changes: 0 additions & 30 deletions cad/freecad/files/patch-src_Mod_Raytracing_App_RayFeature.cpp

This file was deleted.

0 comments on commit 30e39d6

Please sign in to comment.