[138658] trunk/dports/science/ifeffit/Portfile
devans at macports.org
devans at macports.org
Tue Jul 14 16:06:33 PDT 2015
Revision: 138658
https://trac.macports.org/changeset/138658
Author: devans at macports.org
Date: 2015-07-14 16:06:32 -0700 (Tue, 14 Jul 2015)
Log Message:
-----------
ifeffit: use github port group, correct pgplot configuration, default variant is now +gcc49 to match pgplot and p5-ifeffit, see important build notes in comments, increment revision to rebuild.
Modified Paths:
--------------
trunk/dports/science/ifeffit/Portfile
Modified: trunk/dports/science/ifeffit/Portfile
===================================================================
--- trunk/dports/science/ifeffit/Portfile 2015-07-14 21:34:11 UTC (rev 138657)
+++ trunk/dports/science/ifeffit/Portfile 2015-07-14 23:06:32 UTC (rev 138658)
@@ -2,10 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup github 1.0
-name ifeffit
+github.setup newville ifeffit 1.2.final
version 1.2.13
-revision 2
+revision 3
categories science
platforms darwin
@@ -19,7 +20,6 @@
from FEFF, and is based on the fitting program FEFFIT of the UWXAFS3.0 Analysis Package.
homepage http://cars.uchicago.edu/~ifeffit/
-master_sites https://github.com/newville/ifeffit/archive/
checksums rmd160 dedd8b9f6be0d0b0bce67e5f53c18faddf7b0912 \
sha256 72a7f5bd6e6e1ff2b41761cfe726f79f2da8e71606399d3c3307451496a1c0ef
@@ -27,10 +27,29 @@
distname 1.2.final
worksrcdir ${name}-${distname}
-depends_lib port:pgplot
+depends_lib port:pgplot \
+ port:libpng \
+ port:xorg-libX11
-configure.args --with-pgplot=${prefix}/lib
+# the ifeffit script to determine pgplot's linking options is broken
+# so we have to supply them explicitly
+configure.args --with-pgplot \
+ --with-pgplot-link="-L${prefix}/lib -lpgplot -lpng16 -lX11"
+
+# IMPORTANT BUILD NOTES
+#
+# ifeffit, pgplot and p5-ifeffit need to be using the same compiler libraries.
+# therefore they must be built with the same gcc compiler variants.
+# currently this is gcc49 by default but it you change one change them all and rebuild.
+#
+# p5-ifeffit is configured using a Makefile.PL that is generated when ifeffit is built.
+# since the paths to the compiler libraries contain compiler version information,
+# if the compiler version changes then both ifeffit and p5-ifeffit need to be rebuilt
+# so that the Makefile.PL in use contains the correct paths.
+#
+# if in doubt rebuild everything
+
variant gcc45 description {Use gfortran from gcc45} conflicts gcc46 gcc47 gcc48 gcc49 {
depends_lib-append port:gcc45
configure.fc ${prefix}/bin/gfortran-mp-4.5
@@ -71,6 +90,9 @@
configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.9
}
-if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc49]} {
- default_variants +gcc48
+if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} {
+ default_variants +gcc49
}
+
+# this is the final release of ifeffit
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150714/8c6ec143/attachment-0001.html>
More information about the macports-changes
mailing list