2014-10-06 21:48:25 +00:00
|
|
|
# Created by: Pedro Giffuni
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= elmerfem
|
2014-12-14 02:07:52 +00:00
|
|
|
PORTVERSION= 7.0.20141202
|
2014-10-06 21:48:25 +00:00
|
|
|
CATEGORIES= cad science
|
|
|
|
|
|
|
|
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
|
2015-05-06 15:16:53 +00:00
|
|
|
GH_TAGNAME= 0300707
|
2014-10-06 21:48:25 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
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
|
2014-10-19 13:34:34 +00:00
|
|
|
cd ${WRKSRC} && LD_LIBRARY_PATH=${PREFIX}/share/elmersolver/lib ${MAKE_CMD} 1dtest_Source
|
2014-10-06 21:48:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|