<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[143450] trunk/dports/science</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/143450">143450</a></dd>
<dt>Author</dt> <dd>dstrubbe@macports.org</dd>
<dt>Date</dt> <dd>2015-12-12 09:47:22 -0800 (Sat, 12 Dec 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>New science port: quantum-espresso.</pre>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/science/quantum-espresso/</li>
<li><a href="#trunkdportssciencequantumespressoPortfile">trunk/dports/science/quantum-espresso/Portfile</a></li>
<li>trunk/dports/science/quantum-espresso/files/</li>
<li><a href="#trunkdportssciencequantumespressofilespatchMakefilediff">trunk/dports/science/quantum-espresso/files/patch-Makefile.diff</a></li>
<li><a href="#trunkdportssciencequantumespressofilespatchPHononexamplesGRID_examplerun_example_3diff">trunk/dports/science/quantum-espresso/files/patch-PHonon-examples-GRID_example-run_example_3.diff</a></li>
<li><a href="#trunkdportssciencequantumespressofilespatchinstallconfigurediff">trunk/dports/science/quantum-espresso/files/patch-install-configure.diff</a></li>
<li><a href="#trunkdportssciencequantumespressofilespatchupftoolsMakefilediff">trunk/dports/science/quantum-espresso/files/patch-upftools-Makefile.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportssciencequantumespressoPortfile"></a>
<div class="addfile"><h4>Added: trunk/dports/science/quantum-espresso/Portfile (0 => 143450)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/quantum-espresso/Portfile                                (rev 0)
+++ trunk/dports/science/quantum-espresso/Portfile        2015-12-12 17:47:22 UTC (rev 143450)
</span><span class="lines">@@ -0,0 +1,137 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           mpi 1.0
+
+name                quantum-espresso
+version             5.2.1
+categories          science
+platforms           darwin
+license             GPL-2
+maintainers         dstrubbe
+
+description         Plane-wave density-functional theory code
+
+long_description    An integrated suite of open-source computer codes for electronic-structure \
+                    calculations and materials modeling at the nanoscale. It is based on density-functional \
+                    theory, plane waves, and pseudopotentials. This package will build pw, pp, ld1, upf, and ph.
+
+homepage            http://www.quantum-espresso.org
+# get link from http://www.qe-forge.org/gf/project/q-e/frs/?action=FrsReleaseBrowse&amp;frs_package_id=18
+set url http://www.qe-forge.org/gf/download/frsrelease/199
+
+master_sites        ${url}/855:espresso ${url}/843:atomic ${url}/849:PHonon
+distfiles           espresso-${version}${extract.suffix}:espresso \
+                    atomic-${version}${extract.suffix}:atomic \
+                    PHonon-${version}${extract.suffix}:PHonon
+
+checksums           espresso-${version}${extract.suffix} \
+                       rmd160  5455784326af9c5421a3bc763de92cc7fc9a04a4 \
+                       sha256  d98ce66b816fac0bcd8910482dc92bde33f8bff38167f38364f69b8b4d9490ba \
+                    atomic-${version}${extract.suffix} \
+                       rmd160 a1af57679dbfaf94beee3fce0dc1c6f09d928fac \
+                       sha256  1d4f5fc73ba834c7daaffe99f6f1435d28138ef3047bb8f9aee7dff1cc3264e4 \
+                    PHonon-${version}${extract.suffix} \
+                       rmd160  a0c0e836057e4939e99b5c02be62548e44693ad9 \
+                       sha256  21e2e7863080ae0feef8a0baed9776053c9f0cfbf8b08fe18edcac9aa69b8962
+
+# or vecLibFort, or OpenBLAS(-devel)
+depends_lib-append  port:atlas port:fftw-3
+
+# remove erroneous check on consistency of F90 and MPIF90;
+# remove erroneous use of cpp instead of '-x f95-cpp-input'
+patchfiles          patch-install-configure.diff \
+                    patch-Makefile.diff \
+                    patch-upftools-Makefile.diff \
+                    patch-PHonon-examples-GRID_example-run_example_3.diff
+
+compilers.choose    cc cpp fc
+# g95 is not compatible with OpenMP
+mpi.setup           default require_fortran -g95 -gfortran
+
+configure.optflags  -O3
+
+pre-test {
+    if {[mpi_variant_isset]} {
+        if {![catch {sysctl hw.ncpu} result]} {
+            set njobs $result
+        } else {
+            set njobs 1
+        }
+        reinplace -W ${worksrcpath} &quot;s|PARA_PREFIX=\&quot; \&quot;|PARA_PREFIX=\&quot;${mpi.exec} -n ${njobs}\&quot;|&quot; environment_variables
+        reinplace -W ${worksrcpath} &quot;s|PARA_IMAGE_PREFIX=\&quot;mpirun -np 4\&quot;|PARA_IMAGE_PREFIX=\&quot;${mpi.exec} -n 2\&quot;|&quot; environment_variables
+    }
+}
+
+test.run            yes
+
+# note: this will download some pseudopotentials and maybe other stuff
+test {
+    ui_msg &quot;Running PW examples&quot;
+    system -W ${worksrcpath}/PW/examples &quot;./run_all_examples&quot;
+
+    # some PHonon tests need gnuplot, actually.
+    ui_msg &quot;Running PHonon examples&quot;
+    system -W ${worksrcpath}/PHonon/examples &quot;./run_all_examples&quot;
+    ui_msg &quot;Inspect logfile to see if tests passed.&quot;
+}
+
+distname espresso-${version}
+
+post-extract {
+    move ${worksrcpath}/../PHonon    ${worksrcpath}
+    move ${worksrcpath}/../QHA       ${worksrcpath}
+    move ${worksrcpath}/../PlotPHon  ${worksrcpath}
+    move ${worksrcpath}/../atomic    ${worksrcpath}
+}
+
+pre-configure {
+    set linalg ${prefix}/lib/libsatlas.dylib
+    # using cpp separately does not work because it tries to output .f90 to .F90, which is the same file in OSX
+    configure.args-append  FC=${configure.fc} F90FLAGS=&quot;${configure.fcflags} -x f95-cpp-input&quot; \
+        F77=&quot;${configure.fc}&quot; FFLAGS=&quot;${configure.fflags}&quot; F90=${configure.fc} \
+        CC=${configure.cc} CFLAGS=&quot;${configure.cflags}&quot; \
+        BLAS_LIBS=&quot;${linalg}&quot; LAPACK_LIBS=&quot;${linalg}&quot; FFT_LIBS=&quot;${prefix}/lib/libfftw3.dylib&quot; \
+        --prefix=${destroot}${prefix}/bin --with-scalapack=no
+    # install anything else? e.g. pseudos?
+    if {[mpi_variant_isset]} {
+        configure.args-append  --enable-parallel MPIF90=&quot;${configure.fc}&quot;
+    } else {
+        configure.args-append  --disable-parallel
+    }
+}
+
+variant scalapack description {Build with ScaLAPACK for parallel linear algebra} {
+    depends_lib-append     port:scalapack
+    configure.args-delete  --with-scalapack=no
+    configure.args-append  SCALAPACK_LIBS=&quot;${prefix}/lib/libscalapack.dylib&quot;
+    if {![mpi_variant_isset]} {
+        ui_error &quot;+scalapack requires an MPI variant. Choose +mpich, +mpich_devel, +openmpi, or +openmpi_devel.&quot;
+        return -code error &quot;+scalapack requires an MPI variant.&quot;
+    }
+    mpi.enforce_variant     scalapack
+}
+
+if {[mpi_variant_isset]} {
+    default_variants-append +scalapack
+}
+
+use_parallel_build  yes
+build.target  all-j
+# as patched, builds pw pp ld1 upf ph
+
+# threads (including fftw/blas)
+
+#BEWARE: you are not using multi-threaded FFTs!
+
+#variant threads description {Build with support for OpenMP threads} {
+    # not compatible with g95. What about threaded FFTW3?
+#    configure.args-append   --enable-openmp
+#    configure.fcflags-append -fopenmp
+#    configure.args-append   --with-linalg-libs=&quot;-L${prefix}/lib -ltatlas&quot;
+#}
+
+livecheck.type      regex
+livecheck.url       ${homepage}/news/
+livecheck.regex     Version (\[0-9.\]+) of Quantum ESPRESSO is available for download.
</ins><span class="cx">Property changes on: trunk/dports/science/quantum-espresso/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkdportssciencequantumespressofilespatchMakefilediff"></a>
<div class="addfile"><h4>Added: trunk/dports/science/quantum-espresso/files/patch-Makefile.diff (0 => 143450)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/quantum-espresso/files/patch-Makefile.diff                                (rev 0)
+++ trunk/dports/science/quantum-espresso/files/patch-Makefile.diff        2015-12-12 17:47:22 UTC (rev 143450)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+--- Makefile.orig        2015-12-12 00:59:01.000000000 -0500
++++ Makefile        2015-12-12 01:00:25.000000000 -0500
+@@ -47,6 +47,10 @@
+ # If &quot;|| exit 1&quot; is not present, the error code from make in subdirectories
+ # is not returned and make goes on even if compilation has failed
+ #
++
++all-j :
++        $(MAKE) pw &amp;&amp; $(MAKE) pp &amp;&amp; $(MAKE) ph &amp;&amp; $(MAKE) ld1 &amp;&amp; $(MAKE) upf
++
+ pw : bindir mods liblapack libblas libs libiotk 
+         if test -d PW ; then \
+         ( cd PW ; $(MAKE) TLDEPS= all || exit 1) ; fi
</ins></span></pre></div>
<a id="trunkdportssciencequantumespressofilespatchPHononexamplesGRID_examplerun_example_3diff"></a>
<div class="addfile"><h4>Added: trunk/dports/science/quantum-espresso/files/patch-PHonon-examples-GRID_example-run_example_3.diff (0 => 143450)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/quantum-espresso/files/patch-PHonon-examples-GRID_example-run_example_3.diff                                (rev 0)
+++ trunk/dports/science/quantum-espresso/files/patch-PHonon-examples-GRID_example-run_example_3.diff        2015-12-12 17:47:22 UTC (rev 143450)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+--- PHonon/examples/GRID_example/run_example_3.orig        2015-12-11 23:38:32.000000000 -0500
++++ PHonon/examples/GRID_example/run_example_3        2015-12-11 23:39:07.000000000 -0500
+@@ -79,8 +79,6 @@
+ # how to run executables
+ PW_COMMAND=&quot;$PARA_PREFIX $BIN_DIR/pw.x $PARA_POSTFIX&quot;
+ PH_COMMAND=&quot;$PARA_PREFIX $BIN_DIR/ph.x $PARA_POSTFIX&quot;
+-PW1_COMMAND=&quot;mpirun -n 4 $BIN_DIR/pw.x $PARA_POSTFIX&quot;
+-PH1_COMMAND=&quot;mpirun -n 4 $BIN_DIR/ph.x $PARA_POSTFIX&quot;
+ Q2R_COMMAND=&quot;$PARA_PREFIX $BIN_DIR/q2r.x $PARA_POSTFIX&quot;
+ MATDYN_COMMAND=&quot;$PARA_PREFIX $BIN_DIR/matdyn.x $PARA_POSTFIX&quot;
+ PLOTBAND_COMMAND=&quot;$BIN_DIR/plotband.x&quot;
+@@ -138,7 +136,7 @@
+  0.25 0.25 0.75 3.0
+ EOF
+ $ECHO &quot;  running the scf calculation...\c&quot;
+-$PW1_COMMAND &lt; alas.scf.in &gt; alas.scf.out
++$PW_COMMAND &lt; alas.scf.in &gt; alas.scf.out
+ check_failure $?
+ $ECHO &quot; done&quot;
+ #
+@@ -160,7 +158,7 @@
+  /
+ EOF
+ $ECHO &quot;  running the band structure calculation ...\c&quot;
+-$PH1_COMMAND &lt; alas.ph.wfc.in &gt; alas.ph.wfc.out
++$PH_COMMAND &lt; alas.ph.wfc.in &gt; alas.ph.wfc.out
+ check_failure $?
+ $ECHO &quot; done&quot;
+ #
</ins></span></pre></div>
<a id="trunkdportssciencequantumespressofilespatchinstallconfigurediff"></a>
<div class="addfile"><h4>Added: trunk/dports/science/quantum-espresso/files/patch-install-configure.diff (0 => 143450)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/quantum-espresso/files/patch-install-configure.diff                                (rev 0)
+++ trunk/dports/science/quantum-espresso/files/patch-install-configure.diff        2015-12-12 17:47:22 UTC (rev 143450)
</span><span class="lines">@@ -0,0 +1,332 @@
</span><ins>+--- install/configure.orig        2015-11-17 15:08:49.000000000 -0800
++++ install/configure        2015-11-17 21:42:23.000000000 -0800
+@@ -3424,98 +3424,6 @@
+         mpif90=$FC
+ fi

+-# check which compiler does mpif90 wrap
+-
+-case &quot;$arch&quot; in
+-        ia32 | ia64 | x86_64 | mac686 )
+-        echo $ECHO_N &quot;checking version of $mpif90... $ECHO_C&quot;
+-        ifort_version=`$mpif90 -V 2&gt;&amp;1 | grep &quot;Intel(R)&quot;`
+-        sunf95_version=`$mpif90 -V 2&gt;&amp;1 | grep &quot;Sun Fortran&quot;`
+-        openf95_version=`$mpif90 -V 2&gt;&amp;1 | grep &quot;^Open64&quot;`
+-        pgf_version=`$mpif90 -V 2&gt;&amp;1 | grep &quot;^pgf&quot;`
+-        g95_version=`$mpif90 -v 2&gt;&amp;1 | grep &quot;g95&quot;`
+-        enzo_version=`$mpif90 -v 2&gt;&amp;1 | grep &quot;PathScale ENZO&quot;`
+-        eko_version=`$mpif90 -v 2&gt;&amp;1 | grep &quot;PathScale EKOPath&quot;`
+-        pathf95_version=`$mpif90 -v 2&gt;&amp;1 | grep &quot;PathScale&quot;`
+-        gfortran_version=`$mpif90 -v 2&gt;&amp;1 | grep &quot;gcc version&quot;`
+-        #
+-        if test &quot;$ifort_version&quot; != &quot;&quot;
+-        then
+-                version=`$mpif90 -V 2&gt;&amp;1 | grep Version |
+-                         sed 's/.*Version//' | awk '{print $1}'`
+-                ifort_version=`echo $version | sed 's/\..*//'`
+-                echo &quot;${ECHO_T}ifort $version&quot;
+-                f90_in_mpif90=&quot;ifort&quot;
+-                if test &quot;$ifort_version&quot; -gt 8; then
+-                # flags for MKL - ifort 9 and later
+-                   MKL_LIBS=&quot;&quot;
+-                   if test &quot;$ifort_version&quot; -gt 9; then
+-                        MKL_FLAGS=&quot;-static-intel&quot;
+-                   else
+-                        MKL_FLAGS=&quot;-i-static&quot;
+-                   fi
+-                else
+-                # flags for MKL - ifort 8 and earlier, obsolescent
+-                   MKL_LIBS=&quot;-lguide -lpthread&quot;
+-                   MKL_FLAGS=&quot;&quot;
+-                fi
+-        elif test &quot;$sunf95_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $sunf95_version | awk '{print $5}'`
+-                echo &quot;${ECHO_T}sunf95 $version&quot;
+-                f90_in_mpif90=&quot;sunf95&quot;
+-        elif test &quot;$openf95_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $openf95_version | awk '{print $5}'`
+-                echo &quot;${ECHO_T}openf95 $version&quot;
+-                f90_in_mpif90=&quot;openf95&quot;
+-        elif test &quot;$pgf_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $pgf_version | awk '{print $2}'`
+-                echo &quot;${ECHO_T}pgf90 $version&quot;
+-                f90_in_mpif90=&quot;pgf90&quot;
+-                # flag to test MKL with PGI
+-                MKL_FLAGS=&quot;-pgf90libs&quot;
+-        elif test &quot;$enzo_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $enzo_version | awk '{print $6}'`
+-                echo &quot;${ECHO_T}pathf95 $version&quot;
+-                f90_in_mpif90=&quot;pathf95&quot;
+-        elif test &quot;$eko_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $eko_version | awk '{print $6}'`
+-                echo &quot;${ECHO_T}pathf95 $version&quot;
+-                f90_in_mpif90=&quot;pathf95&quot;
+-        elif test &quot;$g95_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $g95_version | awk '{print $3}'`
+-                echo &quot;${ECHO_T}g95 $version&quot;
+-                f90_in_mpif90=&quot;g95&quot;
+-        elif test &quot;$pathf95_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $pathf95_version | awk '{print $5}'`
+-                echo &quot;${ECHO_T}pathf95 $version&quot;
+-                f90_in_mpif90=&quot;pathf95&quot;
+-        elif test &quot;$gfortran_version&quot; != &quot;&quot;
+-        then
+-                version=`echo $gfortran_version | awk '{print $3}'`
+-                echo &quot;${ECHO_T}gfortran $version&quot;
+-                f90_in_mpif90=&quot;gfortran&quot;
+-        else
+-                echo &quot;${ECHO_T}unknown, assuming gfortran&quot;
+-                f90_in_mpif90=&quot;gfortran&quot;
+-        fi
+-        # check if serial and parallel compiler are the same
+-        if test &quot;$f90&quot; != &quot;$f90_in_mpif90&quot;; then
+-           { $as_echo &quot;$as_me:$LINENO: WARNING: parallel compiler $mpif90 uses $f90_in_mpif90, but serial compiler $f90 was detected&quot; &gt;&amp;5
+-$as_echo &quot;$as_me: WARNING: parallel compiler $mpif90 uses $f90_in_mpif90, but serial compiler $f90 was detected&quot; &gt;&amp;2;}
+-           { $as_echo &quot;$as_me:$LINENO: WARNING: assuming F90=$f90_in_mpif90, discarding $f90&quot; &gt;&amp;5
+-$as_echo &quot;$as_me: WARNING: assuming F90=$f90_in_mpif90, discarding $f90&quot; &gt;&amp;2;}
+-        fi
+-        f90=$f90_in_mpif90
+-        ;;
+-esac
+-
+ echo setting F90... $f90
+ echo setting MPIF90... $mpif90

+@@ -5621,230 +5529,6 @@

+ echo using F90... $f90

+-case &quot;$arch:$f90_version&quot; in
+-ia32:ifort* | ia64:ifort* | x86_64:ifort* | mac686:ifort* | crayxt*:ifort* )
+-        try_fflags=&quot;-O2 -assume byterecl -g -traceback&quot;
+-        if test &quot;$use_debug&quot; -eq 1; then
+-            try_fflags=&quot;$try_fflags -fpe0 -CB&quot;
+-        fi
+-            try_fflags_nomain=&quot;-nofor_main&quot;
+-        try_fflags_openmp=&quot;-openmp&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -nomodule&quot;
+-        try_fflags_noopt=&quot;-O0 -assume byterecl -g -traceback&quot;
+-        try_ldflags=&quot;&quot;
+-        try_ldflags_static=&quot;-static&quot;
+-        try_ldflags_openmp=&quot;-openmp&quot;
+-        try_dflags=&quot;$try_dflags -D__INTEL&quot;
+-        pre_fdflags=&quot;-fpp &quot;
+-        ;;
+-ia32:pgf* | ia64:pgf* | x86_64:pgf* )
+-            try_fflags_nomain=&quot;-Mnomain&quot;
+-        try_fflags=&quot;-fast -r8&quot;
+-        try_fflags_openmp=&quot;-mp&quot;
+-        try_f90flags=&quot;-fast -r8 -Mcache_align&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;&quot;
+-        try_ldflags_openmp=&quot;-mp&quot;
+-        try_ldflags_static=&quot;-Bstatic&quot;
+-        try_dflags=&quot;$try_dflags -D__PGI&quot;
+-        have_cpp=0
+-        ;;
+-ia32:path* | ia64:path* | x86_64:path* )
+-        try_fflags=&quot;-march=auto -O2&quot;
+-        try_f90flags=&quot;\$(FFLAGS)&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;&quot;
+-        try_ldflags_static=&quot;-static&quot;
+-        have_cpp=0
+-        ;;
+-*:g95 )
+-        if test &quot;$use_debug&quot; -eq 1; then
+-            try_fflags=&quot;-O3 -g -freal=nan -finteger=12345678 -flogical=none -cpp&quot;
+-        else
+-            try_fflags=&quot;-O3 -cpp&quot;
+-        fi
+-        try_f90flags=&quot;\$(FFLAGS)&quot;
+-        try_fflags_noopt=&quot;-O0 -cpp&quot;
+-        try_ldflags=&quot;&quot;
+-        try_ldflags_static=&quot;-static&quot;
+-        ;;
+-*:*gfortran )
+-        if test &quot;$use_debug&quot; -eq 1; then
+-            try_fflags=&quot;-O3 -g  -Wall -fbounds-check -frange-check&quot;
+-        else
+-            try_fflags=&quot;-O3 -g&quot;
+-        fi
+-        try_fflags_openmp=&quot;-fopenmp&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -x f95-cpp-input&quot;
+-        try_fflags_noopt=&quot;-O0 -g&quot;
+-        try_ldflags=&quot;-g -pthread&quot;
+-        try_ldflags_openmp=&quot;-fopenmp&quot;
+-        try_dflags=&quot;$try_dflags -D__GFORTRAN -D__STD_F95&quot;
+-        try_ldflags_static=&quot;-static&quot;
+-        ;;
+-*:sunf95 )
+-        try_fflags=&quot;-O4&quot;
+-        try_fflags_openmp=&quot;-openmp&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -fpp&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;-fast&quot;
+-        try_ldflags_static=&quot;-Bstatic&quot;
+-        imod=&quot;-M&quot;
+-        ;;
+-*:openf95 )
+-        try_fflags=&quot;-O3&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -ftpp&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;&quot;
+-        imod=&quot;-I&quot;
+-        ;;
+-aix:*xlf* )
+-        if test &quot;$use_debug&quot; -eq 1; then
+-            try_fflags=&quot;-q64 -qalias=noaryovrlp -g -C \
+--qarch=auto -qtune=auto -qdpc -Q -qalias=nointptr&quot;
+-        else
+-            try_fflags=&quot;-q64 -qalias=noaryovrlp -O3 -qstrict \
+--qarch=auto -qtune=auto -qdpc -Q -qalias=nointptr&quot;
+-        fi
+-        try_fflags_openmp=&quot;-qsmp=omp&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -qsuffix=cpp=f90 -qfree=f90&quot;
+-        try_fflags_noopt=&quot;-q64 -O0&quot;
+-        try_ldflags=&quot;-q64&quot;
+-        try_ldflags_openmp=&quot;-qsmp=omp&quot;
+-        # try_ldflags_static=&quot;-bstatic&quot;
+-        pre_fdflags=&quot;-WF,&quot;
+-        xlf_flags=1
+-        ;;
+-solaris:sunf95 )
+-        try_fflags=&quot;-fast -O2 -fpp&quot;
+-        try_f90flags=&quot;\$(FFLAGS)&quot;
+-        try_fflags_noopt=&quot;-O0 &quot;
+-        try_ldflags=&quot;&quot;
+-        imod=&quot;-M&quot;
+-        ;;
+-sparc:f90 )
+-        try_fflags=&quot;-fast -O1 -nodepend -xvector=no -xchip=ultra3 \
+--xarch=v8plusb -xlic_lib=sunperf&quot;
+-        try_f90flags=&quot;\$(FFLAGS)&quot;
+-        try_fflags_noopt=&quot;-O0 -xlic_lib=sunperf&quot;
+-        try_ldflags=&quot;&quot;
+-        imod=&quot;-M&quot;
+-        have_cpp=0
+-        ;;
+-crayxt*:cray* )
+-        try_fflags_nomain=&quot;&quot;
+-        #NOTE: by default OpenMP is always ON (see crayftn man page)
+-        try_fflags_openmp=&quot;-homp&quot;
+-        try_fflags=&quot;-O2&quot;
+-        #NOTE: add '-rm' to get messages from crayftn about why
+-        #      optimizations have not been applied
+-        try_f90flags=&quot;-O3,fp3 -f free&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags_openmp=&quot;-homp&quot;
+-        try_ldflags=&quot;-v&quot;
+-        try_ldflags_static=&quot;-static&quot;
+-        try_dflags=&quot;$try_dflags -D__CRAY&quot;
+-        have_cpp=0
+-        ;;
+-crayxt*:pgf* )
+-# see comment above for pgf*
+-            try_fflags_nomain=&quot;-Mnomain&quot;
+-        try_fflags_openmp=&quot;-mp&quot;
+-        try_fflags=&quot;-O3 -r8&quot;
+-        try_f90flags=&quot;-fast -Mcache_align -r8 -Mpreprocess&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags_openmp=&quot;-mp&quot;
+-        try_ldflags=&quot;-v&quot;
+-        try_dflags=&quot;$try_dflags -D__PGI -D__IOTK_WORKAROUND1&quot;
+-        have_cpp=1
+-        ;;
+-crayxt*:pathf* )
+-        try_fflags=&quot;-march=auto -O2 -cpp&quot;
+-        try_f90flags=&quot;\$(FFLAGS)&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;&quot;
+-        try_ldflags_static=&quot;-static&quot;
+-        have_cpp=1
+-        ;;
+-necsx:* )
+-        try_fflags='      -float0 -Cvopt -eab -R5 -Wf,-Ncont,-A dbl4,-P nh,-ptr byte,-pvctl noifopt loopcnt=9999999 expand=12 fullmsg vwork=stack,-fusion,-O noif,-init stack=nan heap=nan'
+-        try_f90flags='  -f2003  -float0 -Cvopt -eab -R5 -Wf,-Ncont,-A dbl4,-P nh,-ptr byte,-pvctl noifopt loopcnt=9999999 expand=12 fullmsg vwork=stack,-fusion,-O noif,-init stack=nan heap=nan'
+-        try_f90flags=&quot;-$sxopt $try_f90flags&quot;
+-        try_fflags_noopt='-float0   '
+-        try_f90flags_noopt='-f2003 -float0 -eab -R5 -C debug  -Wf,-Ncont,-A dbl4,-P nh ,ptr byte,-init stack=nan heap=nan'
+-        try_f90flags_noopt=&quot;$try_f90flags_noopt&quot;
+-        try_f90flags_inline='-f2003  -float0 -Cvopt -eab -R5 -pi noauto incdir exp=w0gauss -Wf,-Ncont,-A dbl4,-P nh,-ptr byte,-pvctl noifopt loopcnt=9999999 expand=12 fullmsg vwork=stack,-fusion,-O noif,-init stack=nan heap=nan'
+-        try_f90flags_inline=&quot;$try_f90flags_inline&quot;
+-        try_ldflags_static='-P static'
+-        try_ldflags='-Wl,-f zero'
+-        try_ldflags=&quot;-p $try_ldflags&quot;
+-        pre_fdflags=&quot;&quot;
+-        ;;
+-
+-ppc64:*xlf* )
+-    if test &quot;$use_debug&quot; -eq 1; then
+-        try_fflags=&quot;-g -C -qsuffix=cpp=f90 -qdpc -qalias=nointptr -Q&quot;
+-    else
+-        try_fflags=&quot;-q64 -qthreaded -O4 -qsuffix=cpp=f90 -qdpc -qalias=nointptr -Q&quot;
+-    fi
+-        try_f90flags=&quot;\$(FFLAGS) -qfree=f90&quot;
+-        try_fflags_noopt=&quot;-q64 -qthreaded -O0&quot;
+-        try_ldflags=&quot;-q64 -qthreaded&quot;
+-        pre_fdflags=&quot;-WF,&quot;
+-        xlf_flags=1
+-        ;;
+-ppc64-mn:*xlf* )
+-    if test &quot;$use_debug&quot; -eq 1; then
+-        try_fflags=&quot;-g -C -q64 -qstrict -qsuffix=cpp=f90 -qdpc -qalias=nointptr -Q -qtune=ppc970 -qarch=ppc970 -qcache=auto -qhot=vector,simd -qenablevmx&quot;
+-    else
+-        try_fflags=&quot;-O3 -q64 -qstrict -qsuffix=cpp=f90 -qdpc -qalias=nointptr -Q -qtune=ppc970 -qarch=ppc970 -qcache=auto -qhot=vector,simd -qenablevmx&quot;
+-    fi
+-        try_f90flags=&quot;\$(FFLAGS) -qfree=f90&quot;
+-        try_fflags_noopt=&quot;-O0 -q64&quot;
+-        try_ldflags=&quot;&quot;
+-        pre_fdflags=&quot;-WF,&quot;
+-        xlf_flags=1
+-        ;;
+-ppc64-bg:*xlf* )
+-    if test &quot;$use_debug&quot; -eq 1; then
+-        try_fflags=&quot;-q32 -qalias=noaryovrlp:nointptr -g -C -qdpc=e&quot;
+-    else
+-        try_fflags=&quot;-q32 -qalias=noaryovrlp:nointptr -O3 -qstrict -qdpc=e&quot;
+-    fi
+-        try_fflags_openmp=&quot;-qsmp=omp -qthreaded&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -qsuffix=cpp=f90&quot;
+-        try_fflags_noopt=&quot;-q32 -O0&quot;
+-        try_ldflags=&quot;-q32&quot;
+-        try_ldflags_openmp=&quot;-qsmp=omp -qthreaded&quot;
+-        pre_fdflags=&quot;-WF,&quot;
+-        xlf_flags=1
+-        ;;
+-ppc64-bgq:*xlf* )
+-    if test &quot;$use_debug&quot; -eq 1; then
+-        try_fflags=&quot;-qalias=noaryovrlp:nointptr -g -C -qdpc=e&quot;
+-    else
+-        try_fflags=&quot;-qalias=noaryovrlp:nointptr -O3 -qstrict -qdpc=e -qarch=qp -qtune=qp&quot;
+-    fi
+-        try_fflags_openmp=&quot;-qsmp=noauto:omp -qtm -qthreaded&quot;
+-        try_f90flags=&quot;\$(FFLAGS) -qsuffix=cpp=f90&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;&quot;
+-        try_ldflags_openmp=&quot;-qstatic -qsmp=noauto:omp -qtm -qthreaded&quot;
+-        pre_fdflags=&quot;-WF,&quot;
+-        xlf_flags=1
+-        ;;
+-
+-* )
+-        # unknown, try these
+-        try_fflags=&quot;-O1&quot;
+-        try_f90flags=&quot;\$(FFLAGS)&quot;
+-        try_fflags_noopt=&quot;-O0&quot;
+-        try_ldflags=&quot;&quot;
+-        have_cpp=0
+-        ;;
+-
+-esac
+-
+ if test &quot;$use_shared&quot; -eq 0 ; then
+   try_ldflags=&quot;$try_ldflags $try_ldflags_static&quot; ; fi

</ins></span></pre></div>
<a id="trunkdportssciencequantumespressofilespatchupftoolsMakefilediff"></a>
<div class="addfile"><h4>Added: trunk/dports/science/quantum-espresso/files/patch-upftools-Makefile.diff (0 => 143450)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/quantum-espresso/files/patch-upftools-Makefile.diff                                (rev 0)
+++ trunk/dports/science/quantum-espresso/files/patch-upftools-Makefile.diff        2015-12-12 17:47:22 UTC (rev 143450)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- upftools/Makefile.orig        2015-12-12 01:09:26.000000000 -0500
++++ upftools/Makefile        2015-12-12 01:10:04.000000000 -0500
+@@ -38,7 +38,7 @@
+ read_upf.x : read_upf.o
+         $(LD) $(LDFLAGS) -o $@ read_upf.o $(LIBS)

+-read_upf_tofile.x : read_upf_tofile.o $(QEMODS) 
++read_upf_tofile.x : read_upf_tofile.o $(OBJS) $(QEMODS) $(LIBOBJS)
+         $(LD) $(LDFLAGS) -o $@ read_upf_tofile.o $(OBJS) $(QEMODS) $(LIBOBJS) $(LIBS)

+ rrkj2upf.x : rrkj2upf.o $(OBJS) $(QEMODS) $(LIBOBJS)
</ins></span></pre>
</div>
</div>

</body>
</html>