summaryrefslogtreecommitdiff
path: root/parallel/mpi-ch/Makefile
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2005-03-07 02:08:37 +0000
committerjschauma <jschauma@pkgsrc.org>2005-03-07 02:08:37 +0000
commit7c6a9b9f04288def20d9f89b4028e4d40d5e7faa (patch)
tree60681c14f9e799c0e50adbbf69efab3aa48d5d84 /parallel/mpi-ch/Makefile
parentf4b38f0afe28bb8f21d04db6f2baff7e3de0291d (diff)
downloadpkgsrc-7c6a9b9f04288def20d9f89b4028e4d40d5e7faa.tar.gz
Make this work on IRIX.
Other non-NetBSD OS probably want to check this, too, since so far we've always built with --with-arch=netbsd...
Diffstat (limited to 'parallel/mpi-ch/Makefile')
-rw-r--r--parallel/mpi-ch/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/parallel/mpi-ch/Makefile b/parallel/mpi-ch/Makefile
index 5d86bfa623d..00ae34fa53a 100644
--- a/parallel/mpi-ch/Makefile
+++ b/parallel/mpi-ch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2005/03/03 12:01:30 garbled Exp $
+# $NetBSD: Makefile,v 1.34 2005/03/07 02:08:37 jschauma Exp $
DISTNAME= mpich-1.2.6
CATEGORIES= parallel
@@ -30,7 +30,6 @@ CONFIGURE_ARGS+= -docdir=${PREFIX}/share/doc/mpi-ch
CONFIGURE_ARGS+= -htmldir=${PREFIX}/share/doc/html/mpi-ch
CONFIGURE_ARGS+= -opt=-O
CONFIGURE_ARGS+= -rsh=${MPI_RSH}
-CONFIGURE_ARGS+= --with-arch=netbsd
CONFIGURE_ARGS+= --with-comm=ch_p4
CONFIGURE_ARGS+= --with-mpe
CONFIGURE_ARGS+= --disable-devdebug
@@ -38,6 +37,14 @@ CONFIGURE_ARGS+= --disable-f90
CONFIGURE_ARGS+= --disable-f90modules
CONFIGURE_ENV+= sysconfdir=${PKG_SYSCONFDIR}
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --with-arch=netbsd
+PLIST_SUBST+= MPICH_OPSYS="${LOWER_OPSYS}"
+.elif ${OPSYS} == "IRIX"
+CONFIGURE_ARGS+= --with-arch=IRIX${ABI:S/32/N32/}
+PLIST_SUBST+= MPICH_OPSYS="${OPSYS}${ABI:S/32/N32/}"
+.endif
+
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3*)
CONFIGURE_ARGS+= --disable-weak-symbols
@@ -47,8 +54,6 @@ MAKE_ENV+= RSHCOMMAND="${MPI_RSH}"
BUILD_DEFS+= MPI_RSH
-.include "../../mk/bsd.prefs.mk"
-
PLIST_SRC+= ${PKGDIR}/PLIST
.if ${MPI_RSH} == "rsh"