pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/swill Make it accept --without-mpi. Fixes build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/13373249429a
branches:  trunk
changeset: 352669:13373249429a
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun Sep 18 07:46:09 2016 +0000

description:
Make it accept --without-mpi. Fixes build.

diffstat:

 www/swill/distinfo                |   3 ++-
 www/swill/patches/patch-configure |  37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r 6a65007b3a77 -r 13373249429a www/swill/distinfo
--- a/www/swill/distinfo        Sun Sep 18 07:29:53 2016 +0000
+++ b/www/swill/distinfo        Sun Sep 18 07:46:09 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2016/08/15 19:53:52 wiz Exp $
+$NetBSD: distinfo,v 1.9 2016/09/18 07:46:09 dholland Exp $
 
 SHA1 (swill-0.3-fafde7646c39bfc3b30521dbcda9efaa94396b0e.tar.gz) = 1628126f9629b1cf78a1e8d8b7bb0296b9085e9c
 RMD160 (swill-0.3-fafde7646c39bfc3b30521dbcda9efaa94396b0e.tar.gz) = d422a9999ea1168f116d95ec5be60ab24966988b
@@ -8,3 +8,4 @@
 SHA1 (patch-Source_Objects_Makefile.in) = 963125eb9edc293a34923f818ec1472f44d5beb2
 SHA1 (patch-Source_Objects_base_c) = ac8d6bee14f6db5bdbe38c33b6e0d46fc457a12b
 SHA1 (patch-Source_SWILL_Makefile.in) = 5b39b5292a3ae19c7a3e636027c91f828ee3edf1
+SHA1 (patch-configure) = 1b4de9ad20b1682eb29e157dde61443f45cf744b
diff -r 6a65007b3a77 -r 13373249429a www/swill/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/swill/patches/patch-configure Sun Sep 18 07:46:09 2016 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-configure,v 1.1 2016/09/18 07:46:09 dholland Exp $
+
+Handle --without-mpi instead of using the resulting "no" as a path and
+also in that case make it not probe for mpi headers.
+
+--- configure.orig     2016-01-16 13:37:22.000000000 +0000
++++ configure
+@@ -1322,6 +1322,10 @@ else
+   MPIINCLUDE=
+ fi
+ 
++if [ "x$MPIPACKAGE" = xno ]; then
++  unset MPIPACKAGE
++fi
++
+ #AC_ARG_WITH(mpilib,[  --with-mpilib=PATH      Set location of MPI library directory],[MPILIB="-L$withval"], [MPILIB=])
+ 
+ echo $ac_n "checking for MPI configuration""... $ac_c" 1>&6
+@@ -1365,6 +1369,9 @@ fi
+ #  fi
+ 
+ echo $ac_n "checking for MPI header files""... $ac_c" 1>&6
++if [ "x${with_mpi}" = xno ]; then
++  echo "disabled" 1>&6
++else
+ echo "configure:1369: checking for MPI header files" >&5
+ if test -z "$MPIINCLUDE"; then
+ cat > conftest.$ac_ext <<EOF
+@@ -1404,7 +1411,7 @@ fi
+ 
+ #AC_SUBST(MPILIB)
+ 
+-
++fi # "x${with_mpi}" != xno
+ 
+ 
+ ########################################################################



Home | Main Index | Thread Index | Old Index