summaryrefslogtreecommitdiff
path: root/math/xlife++/Makefile
blob: ce2f668da5ec53ec78e4a925ef9cc867aec17551 (plain)
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
# $FreeBSD$

PORTNAME=	xlife++
DISTVERSION=	2.0.1
PORTREVISION=	2
CATEGORIES=	math
MASTER_SITES=	https://uma.ensta-paristech.fr/soft/XLiFE++/var/files/src/
DISTNAME=	xlifepp-sources-v${DISTVERSION}-2018-05-09

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	XLiFE++: eXtended Library of Finite Elements in C++

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BROKEN_aarch64=		fails to compile: BlasUtil.h:63:63: no type named 'ReturnType' in 'Eigen::ScalarBinaryOpTraits<__attribute__

USES=		cmake:outsource eigen:3 fortran tar:tbz
USE_LDCONFIG=	yes

CMAKE_OFF=	XLIFEPP_ENABLE_ARPACK # should be ON, but it fails to build. Reported to their bugs ML.

CXXFLAGS+=	-I${LOCALBASE}/include/eigen3/Eigen -I${LOCALBASE}/include/ARPACK++

OPTIONS_DEFINE=	DOCS EXAMPLES

PORTDOCS=	*
PORTEXAMPLES=	*

post-extract: # delete bundled packages
	@${RM} -r ${WRKSRC}/ext/Eigen ${WRKSRC}/ext/ARPACK ${WRKSRC}/ext/ARPACK++

post-configure:
	@${REINPLACE_CMD} -E 's/.*(ARPACK|Eigen)/#&/' ${CONFIGURE_WRKSRC}/cmake_install.cmake

post-install:
	@cd ${STAGEDIR}${PREFIX} && ${RM} -r CMakeLists.txt VERSION.txt etc/visuTermVec.m etc/templates etc/gmsh

.include <bsd.port.mk>