41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
PORTNAME= openems
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.0.36
|
|
CATEGORIES= science
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Electromagnetic field solver using the EC-FDTD method
|
|
WWW= https://www.openems.de/
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
|
|
ONLY_FOR_ARCHS_REASON= upstream only supports amd64 and powerpc64
|
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
|
libCSXCAD.so:cad/csxcad \
|
|
libfparser-4.5.so:math/fparser \
|
|
libhdf5.so:science/hdf5 \
|
|
libtinyxml.so:textproc/tinyxml \
|
|
libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R}
|
|
|
|
USES= cmake pkgconfig
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= thliebig
|
|
GH_PROJECT= openEMS
|
|
|
|
CMAKE_ARGS= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} \
|
|
-DLOCALBASE=${LOCALBASE}
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include/fparser # fparser.pc probably returns a wrong value
|
|
|
|
DATADIR= ${PREFIX}/share/openEMS
|
|
|
|
post-install:
|
|
@${REINPLACE_CMD} -i '' -e 's|#!/bin/bash|#!/bin/sh|' ${STAGEDIR}${PREFIX}/bin/openEMS.sh
|
|
|
|
.include <../../math/vtk9/Makefile.version>
|
|
.include <bsd.port.mk>
|