[116356] trunk/dports/math/plda/Portfile
sean at macports.org
sean at macports.org
Thu Jan 23 12:13:20 PST 2014
Revision: 116356
https://trac.macports.org/changeset/116356
Author: sean at macports.org
Date: 2014-01-23 12:13:19 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
plda: use mpi portgroup
Modified Paths:
--------------
trunk/dports/math/plda/Portfile
Modified: trunk/dports/math/plda/Portfile
===================================================================
--- trunk/dports/math/plda/Portfile 2014-01-23 20:13:16 UTC (rev 116355)
+++ trunk/dports/math/plda/Portfile 2014-01-23 20:13:19 UTC (rev 116356)
@@ -2,10 +2,15 @@
# $Id$
PortSystem 1.0
+PortGroup mpi 1.0
+compilers.choose cc cxx
+mpi.choose
+mpi.setup
+
name plda
version 3.1
-revision 2
+revision 3
categories math textproc
maintainers hum openmaintainer
@@ -29,20 +34,22 @@
use_configure no
build.target lda infer
-build.args CC=${configure.cxx} \
+
+pre-build {
+ build.args CC=${configure.cxx} \
CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
+}
-variant mpi description {Add parallel lda} {
- depends_lib path:bin/mpicc-mp:mpich-default
+if {[mpi_variant_isset]} {
build.target lda infer mpi_lda
post-extract {
- reinplace "s/mpicxx/mpicxx-mp -Wno-type-safety/" Makefile
+ reinplace "s/mpicxx/${mpi.cxx} -Wno-type-safety/" Makefile
}
post-destroot {
xinstall -m 755 ${worksrcpath}/mpi_lda ${destroot}${prefix}/bin/mpi_plda
}
}
-
+
destroot {
# install binaries as 'plda' and 'plda_infer'.
xinstall -m 755 ${worksrcpath}/lda ${destroot}${prefix}/bin/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/3d112148/attachment.html>
More information about the macports-changes
mailing list