1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/cad/elmerfem/Makefile
Gerald Pfeifer e59c88cece 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

50 lines
961 B
Makefile

# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= elmerfem
PORTVERSION= 8.3.20170519
PORTREVISION= 1
CATEGORIES= cad science
MAINTAINER= ports@FreeBSD.org
COMMENT= ELMER FEM package
LICENSE= GPLv2
LIB_DEPENDS= libparpack.so:math/arpack-ng-mpich \
libmpich.so.8:net/mpich2
USE_GITHUB= yes
GH_ACCOUNT= ElmerCSC
GH_TAGNAME= c30fff2
USES= blaslapack:netlib cmake fortran gmake tcl
USE_LDCONFIG= ${PREFIX}/lib/elmersolver
ALL_TARGET= # empty
.if !defined(MAINTAINER_MODE)
CMAKE_ARGS+= -Wno-dev
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS_${ARCH}= -fPIC
CXXFLAGS_${ARCH}= -fPIC
FCFLAGS+= -fPIC
FFLAGS+= -fPIC
.endif
LDFLAGS+= -L${LOCALBASE}/lib
FCPPFLAGS+= -ansi
post-install:
${LN} -sf ElmerSolver_mpi ${STAGEDIR}${PREFIX}/bin/ElmerSolver
@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/ElmerGrid
do-test:
cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${PREFIX}/share/elmersolver/lib ${MAKE_CMD} 1dtest_Source
.include <bsd.port.post.mk>