2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013 Aurelien Larcher. All rights reserved.
16 include ..
/..
/make-rules
/shared-macros.mk
17 include $(WS_MAKE_RULES
)/mpi-macros.mk
19 COMPONENT_NAME
= mpich
/$(COMPILER
)
20 COMPONENT_VERSION
= 3.2
21 COMPONENT_FMRI
= library
/$(COMPONENT_NAME
)
22 COMPONENT_CLASSIFICATION
= Development
/High Performance Computing
23 COMPONENT_PROJECT_URL
= http
://www.mpich.org
/
24 COMPONENT_SRC_NAME
= mpich
25 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:0778679a6b693d7b7caff37ff9d2856dc2bfc51318bf8373859bfa74253da3dc
29 COMPONENT_ARCHIVE_URL
= http
://www.mpich.org
/static
/downloads
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_BUGDB
= $(COMPONENT_FMRI
)
32 COMPONENT_SUMMARY
= High-performance and widely portable implementation of the MPI standard
33 COMPONENT_LICENSE_FILE
= $(COMPONENT_SRC_NAME
).license
34 COMPONENT_LICENSE
= MIT
36 include $(WS_MAKE_RULES
)/prep.mk
37 include $(WS_MAKE_RULES
)/configure.mk
38 include $(WS_MAKE_RULES
)/ips.mk
40 PATH
=/usr
/gnu
/bin
:/usr
/bin
42 CONFIGURE_PREFIX
= $(MPI_PREFIX
)
44 CONFIGURE_OPTIONS
+= --bindir=$(MPI_BINDIR
)
45 CONFIGURE_OPTIONS
+= --datadir=$(MPI_DATADIR
)
46 CONFIGURE_OPTIONS
+= --docdir
=$(MPI_DOCDIR
)
47 CONFIGURE_OPTIONS
+= --htmldir
=$(MPI_HTMLDIR
)
48 CONFIGURE_OPTIONS
+= --includedir=$(MPI_INCDIR
)
49 CONFIGURE_OPTIONS
+= --libdir=$(MPI_LIBDIR
)
50 CONFIGURE_OPTIONS
+= --mandir=$(MPI_MANDIR
)
51 CONFIGURE_OPTIONS
+= --sbindir
=$(MPI_SBINDIR
)
52 CONFIGURE_OPTIONS
+= --sysconfdir
=$(MPI_ETCDIR
)
53 CONFIGURE_OPTIONS
+= --with-pm
=hydra
54 CONFIGURE_OPTIONS
+= --with-device
=ch3
:sock
55 CONFIGURE_OPTIONS
+= --with-thread-package
=posix
56 CONFIGURE_OPTIONS
+= --enable-shared
57 CONFIGURE_OPTIONS
+= --enable-rpath
58 CONFIGURE_OPTIONS
+= --enable-f77
59 CONFIGURE_OPTIONS
+= --enable-fc
60 CONFIGURE_OPTIONS
+= --enable-cxx
61 CONFIGURE_OPTIONS
+= --enable-mpe
63 # It seems the issue has gone with the 3.x series
64 #CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -Wa,--divide"
66 COMPONENT_TEST_TARGETS
= test
68 build
: $(BUILD_32_and_64
)
70 $(BUILD_DIR
)/modulefile.
%: files
/modulefile
71 /bin
/sed
-e
"s#%%BITS%%#$*#g" \
72 -e
"s#%%COMPONENT_FMRI%%#$(COMPONENT_FMRI)#g" \
73 -e
"s#%%COMPONENT_VERSION%%#$(COMPONENT_VERSION)#g" \
74 -e
"s#%%MODULE_CONFLICTS%%#$(MPI_IMPLEMENTATIONS_LIST)#g" \
75 -e
"s#%%MODULE_INCDIR%%#$(MPI_INCDIR)#g" \
76 -e
"s#%%MODULE_PREFIX%%#$(MPI_PREFIX.$*)#g" < $< > $@
;
78 PROTO_MODULE_PATH
= $(PROTO_DIR
)$(MODULE_PATH
)/$(COMPONENT_NAME
)
80 install: $(INSTALL_32_and_64
) $(BUILD_DIR
)/modulefile
.32 $(BUILD_DIR
)/modulefile
.64
81 $(MKDIR
) $(PROTO_MODULE_PATH
)/32
82 $(CP
) $(BUILD_DIR
)/modulefile
.32 $(PROTO_MODULE_PATH
)/32/$(COMPONENT_VERSION
)
83 $(MKDIR
) $(PROTO_MODULE_PATH
)/64
84 $(CP
) $(BUILD_DIR
)/modulefile
.64 $(PROTO_MODULE_PATH
)/64/$(COMPONENT_VERSION
)
90 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
92 include $(WS_MAKE_RULES
)/depend.mk