summaryrefslogtreecommitdiff
path: root/biology/gromacs/options.mk
diff options
context:
space:
mode:
authorasau <asau>2010-05-16 12:04:03 +0000
committerasau <asau>2010-05-16 12:04:03 +0000
commita92621d08b319cc14314e36c8df10c03d9ac9ddb (patch)
treedde07b6e03d45863080b3150896d30090526c3a1 /biology/gromacs/options.mk
parent2a86969b87ac59b12887da101326bb78ca11faf5 (diff)
downloadpkgsrc-a92621d08b319cc14314e36c8df10c03d9ac9ddb.tar.gz
Build with MPI support by default.
Introduce "mpi" option to turn the above off. Bump PKGREVISION.
Diffstat (limited to 'biology/gromacs/options.mk')
-rw-r--r--biology/gromacs/options.mk15
1 files changed, 12 insertions, 3 deletions
diff --git a/biology/gromacs/options.mk b/biology/gromacs/options.mk
index 55502741ee5..c0e3f3653e8 100644
--- a/biology/gromacs/options.mk
+++ b/biology/gromacs/options.mk
@@ -1,13 +1,22 @@
-# $NetBSD: options.mk,v 1.1.1.1 2010/03/15 14:08:49 asau Exp $
+# $NetBSD: options.mk,v 1.2 2010/05/16 12:04:03 asau Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gromacs
-PKG_SUPPORTED_OPTIONS+= x11
-PKG_SUGGESTED_OPTIONS+= x11
+PKG_SUPPORTED_OPTIONS+= mpi x11
+PKG_SUGGESTED_OPTIONS+= mpi x11
.include "../../mk/bsd.options.mk"
PLIST_VARS= x11
+# MPI support:
+.if !empty(PKG_OPTIONS:Mmpi)
+CONFIGURE_ARGS+= --enable-mpi
+PLIST_SUBST+= MPI=_mpi
+.include "../../mk/mpi.buildlink3.mk"
+.else
+PLIST_SUBST+= MPI=
+.endif
+
# X support:
.if !empty(PKG_OPTIONS:Mx11)
CONFIGURE_ARGS+= --with-x