2014-10-06 21:48:25 +00:00
|
|
|
# Created by: Pedro Giffuni
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= elmerfem
|
2017-05-25 21:33:19 +00:00
|
|
|
PORTVERSION= 8.3.20170519
|
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
2017-09-10 20:55:38 +00:00
|
|
|
PORTREVISION= 1
|
2014-10-06 21:48:25 +00:00
|
|
|
CATEGORIES= cad science
|
|
|
|
|
2016-03-17 18:24:38 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-10-06 21:48:25 +00:00
|
|
|
COMMENT= ELMER FEM package
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 13:29:15 +00:00
|
|
|
LIB_DEPENDS= libparpack.so:math/arpack-ng-mpich \
|
|
|
|
libmpich.so.8:net/mpich2
|
2014-10-06 21:48:25 +00:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ElmerCSC
|
2017-05-25 21:33:19 +00:00
|
|
|
GH_TAGNAME= c30fff2
|
2014-10-06 21:48:25 +00:00
|
|
|
|
2016-03-17 18:24:38 +00:00
|
|
|
USES= blaslapack:netlib cmake fortran gmake tcl
|
2014-10-06 21:48:25 +00:00
|
|
|
|
2016-03-17 18:24:38 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/elmersolver
|
2016-05-11 20:41:24 +00:00
|
|
|
ALL_TARGET= # empty
|
2014-10-06 21:48:25 +00:00
|
|
|
|
|
|
|
.if !defined(MAINTAINER_MODE)
|
|
|
|
CMAKE_ARGS+= -Wno-dev
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2017-06-25 00:29:09 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
2014-10-06 21:48:25 +00:00
|
|
|
CFLAGS_${ARCH}= -fPIC
|
|
|
|
CXXFLAGS_${ARCH}= -fPIC
|
|
|
|
FCFLAGS+= -fPIC
|
|
|
|
FFLAGS+= -fPIC
|
|
|
|
.endif
|
2016-05-11 20:41:24 +00:00
|
|
|
|
2014-10-06 21:48:25 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
FCPPFLAGS+= -ansi
|
|
|
|
|
|
|
|
post-install:
|
2016-05-11 20:41:24 +00:00
|
|
|
${LN} -sf ElmerSolver_mpi ${STAGEDIR}${PREFIX}/bin/ElmerSolver
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/ElmerGrid
|
2014-10-06 21:48:25 +00:00
|
|
|
|
2016-05-11 20:41:24 +00:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${PREFIX}/share/elmersolver/lib ${MAKE_CMD} 1dtest_Source
|
2014-10-06 21:48:25 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|