# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup FreeCAD FreeCAD 0.18.4
maintainers {gmail.com:mark.brethen @mbrethen} {mps @Schamschula} openmaintainer
FreeCAD is a general purpose feature-based, parametric 3D modeler.
FreeCAD is a general purpose feature-based, parametric 3D modeler for \
CAD, MCAD, CAx, CAE and PLM, aimed directly at mechanical engineering \
and product design but also fits a wider range of uses in engineering, \
such as architecture or other engineering specialties. It is 100% Open \
Source (LGPL2+ license) and extremely modular, allowing for very \
advanced extension and customization.
homepage https://www.freecadweb.org
checksums rmd160 2fdb6bb247571e2ffaffaca1defb02ca0b2e1cc5 \
sha256 d2f10f861cbcc9d19b34f79cd1c96baca2f23174f232e834f64a7c4a74f5f1e7 \
depends_build-append port:doxygen
depends_lib-append port:boost \
port:py27-backports-functools_lru_cache \
depends_run port:qt4-mac-sqlite3-plugin
patchfiles cMake-FindCoin3D.cmake.diff \
patch-src-Main-MainPy.cpp.diff
# disable FreeCAD FEM module, as it requires hdf5 1.8.x
patchfiles-append patch-CMakeLists.txt.diff
patchfiles-append FindPySideTools.cmake.patch
reinplace "s|QLibraryInfo::location.*|QLatin1String\(\"${applications_dir}/Qt4/\"\);|" \
${worksrcpath}/src/Gui/Assistant.cpp
reinplace "s|/Applications|${applications_dir}|" \
${worksrcpath}/src/Mod/OpenSCAD/OpenSCADUtils.py
compilers.setup require_fortran -g95
cmake.install_prefix ${prefix}/libexec/${name}
cmake.install_rpath ${cmake.install_prefix}/lib
configure.pre_args-replace \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
-DCMAKE_INSTALL_NAME_DIR=${cmake.install_prefix}/lib
configure.args-append -DCMAKE_INSTALL_DATADIR=${prefix}/share/${name} \
-DCMAKE_INSTALL_DOCDIR=${prefix}/share/doc/${name} \
-DCMAKE_FRAMEWORK_PATH=${frameworks_dir} \
-DMACPORTS_PREFIX=${prefix} \
-DPYSIDEUIC4BINARY=${prefix}/bin/pyside-uic-2.7 \
-DPYSIDERCC4BINARY=${prefix}/bin/pyside-rcc-2.7
# The c++ compiler is used for linking instead of fc.
# -L needs a path to a directory.