04d6f52202
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some circumstances such as versions of FreeBSD or platforms). This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using using Mk/bsd.octave.mk which in turn has USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang, c++11-lang, c++0x, c11, or gcc-c++11-lib. PR: 216707
82 lines
2.6 KiB
Makefile
82 lines
2.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= FreeCAD
|
|
DISTVERSION= 0.17.g20170310
|
|
PORTREVISION= 1
|
|
CATEGORIES= cad
|
|
|
|
MAINTAINER= tj+freebsd_ports@a13.fr
|
|
COMMENT= General purpose 3D CAD modeller
|
|
|
|
LICENSE= LGPL20+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= pyside-rcc:devel/pyside-tools \
|
|
swig:devel/swig13 \
|
|
${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2 \
|
|
libfreetype.so:print/freetype2 \
|
|
libboost_python.so:devel/boost-python-libs \
|
|
libpyside-python2.7.so:devel/pyside \
|
|
libCoin.so:graphics/Coin \
|
|
libpng16.so:graphics/png \
|
|
libtiff.so:graphics/tiff \
|
|
libvtkFiltersTexture-6.2.so:math/vtk6 \
|
|
libTKernel.so:cad/opencascade \
|
|
libSoQt.so:x11-toolkits/soqt \
|
|
libxerces-c-3.1.so:textproc/xerces-c3 \
|
|
libboost_thread.so:devel/boost-libs \
|
|
libarea.so:devel/libarea \
|
|
libmed.so:french/med \
|
|
libshiboken-${PYTHON_VERSION}.so:devel/shiboken \
|
|
libhdf5.so:science/hdf5
|
|
RUN_DEPENDS= pivy>0:graphics/py-pivy
|
|
|
|
USE_GITHUB= yes
|
|
GH_TAGNAME= 91c59c7
|
|
|
|
USES= dos2unix compiler:c++11-lib cmake:outsource fortran jpeg \
|
|
python localbase
|
|
USE_XORG= ice sm x11 xext xt
|
|
USE_GL= gl glu
|
|
USE_QT4= qmake_build corelib gui moc_build network opengl rcc_build \
|
|
uic_build svg xml webkit
|
|
USE_LDCONFIG= yes
|
|
DOS2UNIX_GLOB= *.txt *.h *.cpp *.py *.qss *.csv *.pov *.stp *.ui *.wrl *.WRL
|
|
CMAKE_ARGS= -DOCC_INCLUDE_DIR="${LOCALBASE}/include/OpenCASCADE"
|
|
|
|
# To be removed when french/med will be built against science/hdf5
|
|
LIB_DEPENDS+= libhdf5-18.so:science/hdf5-18
|
|
CMAKE_ARGS+= -DHDF5_FOUND="TRUE" -DHDF5_VERSION="1.8.17" \
|
|
-DHDF5_INCLUDE_DIRS="${LOCALBASE}/include/hdf5-18" \
|
|
-DCMAKE_CXX_FLAGS="-I${LOCALBASE}/include/hdf5-18" \
|
|
-DCMAKE_C_FLAGS="-I${LOCALBASE}/include/hdf5-18" \
|
|
-DHDF5_LIBRARIES="-lhdf5-18"
|
|
CFLAGS+= -I${LOCALBASE}/include/hdf5-18
|
|
|
|
CMAKE_INSTALL_PREFIX= ${PREFIX}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= COLLADA
|
|
|
|
COLLADA_DESC= Install pycollada for Collada files import
|
|
COLLADA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycollada>0:graphics/py-pycollada
|
|
|
|
DESKTOP_ENTRIES=${PORTNAME} "" "${PREFIX}/FreeCAD/data/freecad.svg" \
|
|
${PORTNAME} "Engineering;" false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
${WRKSRC}/src/Gui/CMakeLists.txt
|
|
|
|
pre-configure:
|
|
# To be removed when french/med will be built against science/hdf5
|
|
@${REINPLACE_CMD} -e 's|find_package(HDF5 REQUIRED)|#find_package(HDF5 REQUIRED)|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|<hdf5.h>|<hdf5-18/hdf5.h>|' \
|
|
${WRKSRC}/src/3rdParty/salomesmesh/inc/MED_Common.hxx
|
|
|
|
post-install:
|
|
${LN} -s ../${PORTNAME}/bin/FreeCAD ${STAGEDIR}${LOCALBASE}/bin/FreeCAD
|
|
${LN} -s ../${PORTNAME}/bin/FreeCADCmd ${STAGEDIR}${LOCALBASE}/bin/FreeCADCmd
|
|
|
|
.include <bsd.port.mk>
|