aboutsummaryrefslogtreecommitdiff
path: root/science/openems/Makefile
blob: 2893f6fee19a4b78cd55e6e23d5b589a3aa72efe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
PORTNAME=	openems
DISTVERSIONPREFIX=	v
DISTVERSION=	0.0.35-71
DISTVERSIONSUFFIX=	-g4c24b6e
PORTREVISION=	1
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Electromagnetic field solver using the EC-FDTD method

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

# many dependencies below are induced by vtk8, but not vtk9
LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libCSXCAD.so:cad/csxcad \
		libexpat.so:textproc/expat2 \
		libfparser-4.5.so:math/fparser \
		libhdf5.so:science/hdf5 \
		libpng16.so:graphics/png \
		libsz.so:science/szip \
		libtiff.so:graphics/tiff \
		libtinyxml.so:textproc/tinyxml \
		libvtkCommonCore-8.2.so:math/vtk8 # some related packages don't support vtk9 yet, see https://github.com/thliebig/QCSXCAD/issues/6#issuecomment-901633240

USES=		cmake jpeg pkgconfig
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	thliebig
GH_PROJECT=	openEMS

CMAKE_ARGS=	-DVTK_DIR=${LOCALBASE}/lib/vtk-8.2/cmake/vtk-8.2

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 <bsd.port.mk>