[145379] trunk/dports/science/abinit/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Wed Feb 3 11:17:18 PST 2016
Revision: 145379
https://trac.macports.org/changeset/145379
Author: dstrubbe at macports.org
Date: 2016-02-03 11:17:18 -0800 (Wed, 03 Feb 2016)
Log Message:
-----------
abinit: Use variant-selected C++ compiler too. Fix configure args for etsf_io and g95. Use built-in targets for destroot, and install pkgconfig too. Enable libxc and etsf_io tests when those libraries are linked. Comments.
Modified Paths:
--------------
trunk/dports/science/abinit/Portfile
Modified: trunk/dports/science/abinit/Portfile
===================================================================
--- trunk/dports/science/abinit/Portfile 2016-02-03 15:37:37 UTC (rev 145378)
+++ trunk/dports/science/abinit/Portfile 2016-02-03 19:17:18 UTC (rev 145379)
@@ -6,7 +6,7 @@
name abinit
version 7.10.5
-revision 2
+revision 3
categories science
platforms darwin
license GPL-3
@@ -38,7 +38,7 @@
# or vecLibFort, or OpenBLAS(-devel)
depends_lib-append port:atlas
-compilers.choose cc fc
+compilers.choose cc cxx fc
# g95 is not compatible with OpenMP, and support will be removed in the next version
mpi.setup default require_fortran -g95
@@ -67,11 +67,16 @@
}
if { [variant_isset etsf_io] } {
- configure.args-append --with-trio-flavor="netcdf+etsf_io"
- } elseif { [variant_isset netcdf] } {
- configure.args-append --with-trio-flavor="netcdf"
- } else {
- configure.args-append --with-trio-flavor="none"
+ configure.args-append --with-trio-flavor="netcdf+etsf_io"
+ if { [variant_isset g95] } {
+ configure.args-append --with-etsf-io-incs="-I${prefix}/include/g95"
+ } else {
+ configure.args-append --with-etsf-io-incs="-I${prefix}/include/gcc"
+ }
+ } elseif { [variant_isset netcdf] } {
+ configure.args-append --with-trio-flavor="netcdf"
+ } else {
+ configure.args-append --with-trio-flavor="none"
}
set dft-flavor "none"
@@ -106,21 +111,9 @@
configure.args-append --with-dft-flavor="${dft-flavor}"
}
-destroot {
- # only ok if we can select just the executables
- # eval file copy [glob ${worksrcpath}/src/98_main/*] ${destroot}${prefix}/bin
+# install binaries and pkgconfig but the very large number of test files
+destroot.target install-exec install-data-local
- xinstall -W ${worksrcpath}/src/98_main \
- abinit aim anaddb band2eps bsepostproc conducti cut3d \
- fftprof ioprof kss2wfk lapackprof macroave mrgddb \
- mrggkk mrgscr optic ujdet vdw_kernelgen \
- ${destroot}${prefix}/bin
- if { [variant_isset atompaw] } {
- xinstall -W ${worksrcpath}/fallbacks/exports/bin \
- atompaw-abinit ${destroot}${prefix}/bin
- }
-}
-
#universal variant not allowed for libxc/etsf_io
universal_variant no
@@ -165,18 +158,24 @@
compilers.enforce_fortran netcdf-fortran
configure.args-append --with-netcdf-incs="-I${prefix}/include"
configure.args-append --with-netcdf-libs="-L${prefix}/lib -lnetcdf -lnetcdff"
+ # check compatibility with MPI?
}
variant etsf_io requires netcdf description {Build with support for ETSF_IO transferable I/O} {
depends_lib-append port:etsf_io
compilers.enforce_fortran etsf_io
- configure.args-append --with-etsf-io-incs="-I${prefix}/include/gcc"
+ test.target-append etsf_io
}
+# add support for gsl, yaml?
+
variant libxc description {Build with support for libXC exchange-correlation library} {
depends_lib-append port:libxc
compilers.enforce_fortran libxc
configure.args-append --with-libxc-incs="-I${prefix}/include"
+ # update below when libxc 2.2.x is enabled
+ configure.args-append --with-libxc-libs="-L${prefix}/lib -lxc"
+ test.target-append libxc
}
# abinit does not work with Wannier90 version 2.0.x currently
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160203/4829267d/attachment-0001.html>
More information about the macports-changes
mailing list