summaryrefslogtreecommitdiff
path: root/math/freefem++/Makefile
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2020-11-29 16:28:55 +0000
committerThierry Thomas <thierry@FreeBSD.org>2020-11-29 16:28:55 +0000
commitbd8b95648760ef7b27742e85056b7efde3e1a35c (patch)
tree0132f6e76e18f0e230f1a661a3159af28d439108 /math/freefem++/Makefile
parentdevel/notcurses: Update to 2.0.8 (diff)
Revive port math/freefem++: finite element method application.
PR: 242759 Submitted by: Kouichi Hirabayashi
Notes
Notes: svn path=/head/; revision=556585
Diffstat (limited to 'math/freefem++/Makefile')
-rw-r--r--math/freefem++/Makefile67
1 files changed, 67 insertions, 0 deletions
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 <thierry@pompo.net>
+# $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 <bsd.port.mk>