blob: 2786cd97a61e0832fc9709dedc72541e72e64e4f (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= elmerfem
PORTVERSION= 7.0.20140925
CATEGORIES= cad science
#DISTNAME= ${PORTNAME}-devel
MAINTAINER= pfg@FreeBSD.org
COMMENT= ELMER FEM package
LICENSE= GPLv2
LIB_DEPENDS= liblapack.so:${PORTSDIR}/math/lapack \
libparpack.so:${PORTSDIR}/math/arpack-ng-mpich \
libmpich.so.8:${PORTSDIR}/net/mpich2
USE_GITHUB= yes
GH_ACCOUNT= ElmerCSC
GH_PROJECT= elmerfem
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= bc00ab5
USES= cmake fortran gmake tcl
USE_LDCONFIG= yes
ALL_TARGET=
.if !defined(MAINTAINER_MODE)
CMAKE_ARGS+= -Wno-dev
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS_${ARCH}= -fPIC
CXXFLAGS_${ARCH}= -fPIC
FCFLAGS+= -fPIC
FFLAGS+= -fPIC
.endif
LDFLAGS+= -L${LOCALBASE}/lib
FCPPFLAGS+= -ansi
post-install:
# To avoid conflict with SuiteSparse
.for mod in amd umfpack
${RM} ${STAGEDIR}/${PREFIX}/lib/lib${mod}.a
.endfor
cd ${STAGEDIR}${PREFIX}/bin \
&& ${LN} -sf ElmerSolver_mpi ${STAGEDIR}${PREFIX}/bin/ElmerSolver
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/ElmerGrid
.if defined(MAINTAINER_MODE)
regression-test: install
cd ${WRKSRC} && LD_LIBRARY_PATH=${PREFIX}/share/elmersolver/lib ${MAKE_CMD} test/fast
.endif
.include <bsd.port.post.mk>
|