aboutsummaryrefslogtreecommitdiff
path: root/math/form
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2017-08-04 15:22:12 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2017-08-04 15:22:12 +0000
commit6a8d4eab03536c7eb72995974fb3619e101d5331 (patch)
tree6e4a8040d8bf86af8ea73aace81d64d71b1bddc0 /math/form
parent162f0f99bb23433fa8aecce6069638b2df7123bb (diff)
Notes
Diffstat (limited to 'math/form')
-rw-r--r--math/form/Makefile19
-rw-r--r--math/form/pkg-plist1
2 files changed, 16 insertions, 4 deletions
diff --git a/math/form/Makefile b/math/form/Makefile
index ee2f8139f248..8bd3fce3595e 100644
--- a/math/form/Makefile
+++ b/math/form/Makefile
@@ -4,6 +4,7 @@
PORTNAME= form
PORTVERSION= 4.2.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= math
MAINTAINER= ehaupt@FreeBSD.org
@@ -14,21 +15,31 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgmp.so:math/gmp
-USES= autoreconf gmake
+USES= autoreconf gmake localbase
USE_GITHUB= yes
GNU_CONFIGURE= yes
GH_ACCOUNT= vermaseren
-OPTIONS_DEFINE= DOXYGEN
+OPTIONS_DEFINE= DOXYGEN OPENMPI
OPTIONS_SUB= yes
-DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
-
CONFIGURE_ARGS+= --enable-scalar \
--enable-largefile \
--with-api=posix
+MPICC?= ${LOCALBASE}/mpi/openmpi/bin/mpicc
+MPICXX?= ${LOCALBASE}/mpi/openmpi/bin/mpic++
+
+DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
+
+OPENMPI_CONFIGURE_ENABLE= parform
+
+OPENMPI_CONFIGURE_ENV+= MPICC="${MPICC}" MPICXX="${MPICXX}"
+
+OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi \
+ libgcc_s.so.1:lang/gcc5
+
post-build-DOXYGEN-on:
(cd ${WRKSRC}/doc/manual; ${MAKE_CMD} html pdf)
diff --git a/math/form/pkg-plist b/math/form/pkg-plist
index b929f9980343..97989d9ecbb0 100644
--- a/math/form/pkg-plist
+++ b/math/form/pkg-plist
@@ -1,5 +1,6 @@
bin/form
bin/tform
+%%OPENMPI%%bin/parform
man/man1/form.1.gz
%%DOXYGEN%%%%DOCSDIR%%/html/manual.css
%%DOXYGEN%%%%DOCSDIR%%/html/manual.html