From bd8b95648760ef7b27742e85056b7efde3e1a35c Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sun, 29 Nov 2020 16:28:55 +0000 Subject: Revive port math/freefem++: finite element method application. PR: 242759 Submitted by: Kouichi Hirabayashi --- math/freefem++/Makefile | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 math/freefem++/Makefile (limited to 'math/freefem++/Makefile') diff --git a/math/freefem++/Makefile b/math/freefem++/Makefile new file mode 100644 index 000000000000..1b62c55c6d41 --- /dev/null +++ b/math/freefem++/Makefile @@ -0,0 +1,67 @@ +# Created by: Thierry Thomas +# $FreeBSD$ + +PORTNAME= freefem++ +PORTVERSION= 4.6 +DISTVERSIONPREFIX= v +CATEGORIES= math science + +MAINTAINER= kh@mogami.com +COMMENT= Partial differential equation solver + +LICENSE= LGPL3 + +BUILD_DEPENDS= amk_fft2:cad/scotch \ + bash:shells/bash \ + gmm++>0:math/gmm++ \ + pipe:misc/pipe \ + tetgen:math/tetgen +LIB_DEPENDS= libhdf5.so:science/hdf5 \ + libamd.so:math/suitesparse \ + libarpack.so:math/arpack-ng \ + libfftw3.so:math/fftw3 \ + libgsl.so:math/gsl \ + libipopt.so:math/ipopt \ + libmetis.so:math/metis \ + libcmumps.so:math/mumps \ + libnlopt.so:math/nlopt \ + libsuperlu.so:math/superlu \ + libsz.so:science/szip +RUN_DEPENDS= bash:shells/bash \ + pipe:misc/pipe + +USE_GITHUB= yes +GH_ACCOUNT= FreeFem +GH_PROJECT= FreeFem-sources + +USES= autoreconf bison blaslapack:openblas compiler:c++11-lib fortran \ + gl gmake localbase perl5 pkgconfig shebangfix xorg +SHEBANG_GLOB= ff-pkg-download.in +SHEBANG_FILES= examples/CheckAllEdp ./examples/misc/speedtest.sh + +CPPFLAGS+= -I${LOCALBASE}/include/superlu +.if !defined{WITH_DEBUG} +LDFLAGS+= -s +.endif + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CNOFLAGS="${CFLAGS}" +CONFIGURE_ARGS= --disable-download \ + --without-mpi \ + --with-blas=${BLASLIB} \ + --with-lapack=${LAPACKLIB} + +USE_GL= gl glu glut + +OPTIONS_DEFINE= EXAMPLES +OPTIONS_DEFAULT=EXAMPLES + +PLIST_SUB= VER=${PORTVERSION} +DATADIR= ${PREFIX}/share/FreeFEM/${PORTVERSION} + +TEST_TARGET= check + +pre-configure: + ${REINPLACE_CMD} -e 's|-llapack|${LAPACKLIB}|' ${WRKSRC}/configure.ac + +.include -- cgit v1.2.3