Dear pkgsrc folks, this is a patch to enable MPI support in boost-libs in 2017Q1. The patch fails on current CVS only for the line .include "options.mk" in the Makefile. Adding the option was not that straightforward … a pre-configure hook is necessary. Please note that I am not a boost user myself and did not really test how the MPI binding performs. My goal was to get libboost_mpi and libboost_graph_parallel built at all. Alrighty then, Thomas -- Dr. Thomas Orgis Universität Hamburg RRZ / Basis-Infrastruktur / HPC Schlüterstr. 70 20146 Hamburg Tel.: 040/42838 8826 Fax: 040/428 38 6270
diff -ruN -x CVS pkgsrc-2016Q4/devel/boost-libs/Makefile pkgsrc/devel/boost-libs/Makefile --- pkgsrc-2016Q4/devel/boost-libs/Makefile 2016-12-18 23:08:07.000000000 +0100 +++ pkgsrc/devel/boost-libs/Makefile 2017-03-16 15:31:21.137869359 +0100 @@ -10,6 +10,9 @@ INSTALLATION_DIRS+= lib +# ppended to depending on options +PLIST_SRC = PLIST + BJAM_ARGS+= --without-python PLIST_VARS+= context fiber log long_double_math @@ -46,6 +49,8 @@ PLIST.fiber= yes .endif +.include "options.mk" + # Long double math functions are not available on Darwin. See # boost/math/tools/config.hpp:53 .if ${OPSYS} != "NetBSD" && ${OPSYS} != "FreeBSD" && \ diff -ruN -x CVS pkgsrc-2016Q4/devel/boost-libs/options.mk pkgsrc/devel/boost-libs/options.mk --- pkgsrc-2016Q4/devel/boost-libs/options.mk 1970-01-01 01:00:00.000000000 +0100 +++ pkgsrc/devel/boost-libs/options.mk 2017-03-13 21:42:07.094557314 +0100 @@ -0,0 +1,19 @@ +PKG_OPTIONS_VAR= PKG_OPTIONS.boost +PKG_SUPPORTED_OPTIONS= mpi +PKG_SUGGESTED_OPTIONS= + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mmpi) + +# Need to enable MPI behind the scenes. +mpihackery: + echo "using mpi ;" >> ${WRKSRC}/project-config.jam + +pre-configure: mpihackery + +.include "../../mk/mpi.buildlink3.mk" + +PLIST_SRC+= PLIST.mpi + +.endif diff -ruN -x CVS pkgsrc-2016Q4/devel/boost-libs/PLIST.mpi pkgsrc/devel/boost-libs/PLIST.mpi --- pkgsrc-2016Q4/devel/boost-libs/PLIST.mpi 1970-01-01 01:00:00.000000000 +0100 +++ pkgsrc/devel/boost-libs/PLIST.mpi 2017-03-13 21:42:07.094557314 +0100 @@ -0,0 +1,6 @@ +lib/libboost_graph_parallel.a +lib/libboost_graph_parallel.so +lib/libboost_graph_parallel.so.1.63.0 +lib/libboost_mpi.a +lib/libboost_mpi.so +lib/libboost_mpi.so.1.63.0
Attachment:
smime.p7s
Description: S/MIME cryptographic signature