tech-pkg archive

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

Re: [PATCH] devel/boost-libs MPI support



Am Thu, 20 Apr 2017 19:15:45 +0200
schrieb "Dr. Thomas Orgis" <thomas.orgis%uni-hamburg.de@localhost>:

> this is a patch to enable MPI support in boost-libs in 2017Q1. The
> patch fails on current CVS only for the line

Here is another edition of the patch, using PLIST_VARS due to public
demand.

Anything not right still?


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 -x CVS -x '*.orig' -ruN pkgsrc-2017Q1/devel/boost-libs/Makefile pkgsrc/devel/boost-libs/Makefile
--- pkgsrc-2017Q1/devel/boost-libs/Makefile	2017-01-02 08:33:11.000000000 +0100
+++ pkgsrc/devel/boost-libs/Makefile	2017-04-25 14:31:38.400655758 +0200
@@ -46,6 +46,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 -x CVS -x '*.orig' -ruN pkgsrc-2017Q1/devel/boost-libs/options.mk pkgsrc/devel/boost-libs/options.mk
--- pkgsrc-2017Q1/devel/boost-libs/options.mk	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/devel/boost-libs/options.mk	2017-04-25 14:13:46.136561486 +0200
@@ -0,0 +1,21 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.boost
+PKG_SUPPORTED_OPTIONS= mpi
+PKG_SUGGESTED_OPTIONS=
+
+PLIST_VARS+= mpi
+
+.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.mpi= yes
+
+.endif
diff -x CVS -x '*.orig' -ruN pkgsrc-2017Q1/devel/boost-libs/PLIST pkgsrc/devel/boost-libs/PLIST
--- pkgsrc-2017Q1/devel/boost-libs/PLIST	2017-01-02 10:41:50.000000000 +0100
+++ pkgsrc/devel/boost-libs/PLIST	2017-04-25 14:15:15.427564036 +0200
@@ -97,3 +97,9 @@
 lib/libboost_wserialization.a
 lib/libboost_wserialization.so
 lib/libboost_wserialization.so.${BOOST_VERSION}
+${PLIST.mpi}lib/libboost_graph_parallel.a
+${PLIST.mpi}lib/libboost_graph_parallel.so
+${PLIST.mpi}lib/libboost_graph_parallel.so.${BOOST_VERSION}
+${PLIST.mpi}lib/libboost_mpi.a
+${PLIST.mpi}lib/libboost_mpi.so
+${PLIST.mpi}lib/libboost_mpi.so.${BOOST_VERSION}

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index