Changeset 145996


Ignore:
Timestamp:
Feb 24, 2016, 2:03:51 AM (3 years ago)
Author:
dstrubbe@…
Message:

ifeffit: Use compilers portgroup. Enforce same compiler as pgplot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/ifeffit/Portfile

    r144664 r145996  
    44PortSystem          1.0
    55PortGroup           github 1.0
     6PortGroup           compilers 1.0
    67
    78github.setup        newville ifeffit 1.2.13
     
    1415description         IFEFFIT is a program and programming library for analyzing x-ray absorption fine-structure (XAFS) data.
    1516
    16 long_description    IFEFFIT is a program and programming library for analyzing x-ray absorption fine-structure (XAFS) data. \
     17long_description    ${description} \
    1718                    As its name may suggest, IFEFFIT1 gives an interactive method for fitting XAFS data using calculations \
    1819                    from FEFF, and is based on the fitting program FEFFIT of the UWXAFS3.0 Analysis Package.
     
    3435                    --with-pgplot-link="-L${prefix}/lib -lpgplot -lpng -lX11"
    3536
     37compilers.choose    f77
     38compilers.setup     require_fortran
     39compilers.enforce_fortran pgplot
     40
    3641# IMPORTANT BUILD NOTES
    37 #
    38 # ifeffit, pgplot and p5-ifeffit need to be using the same compiler libraries.
    39 # therefore they must be built with the same gcc compiler variants.
    40 # currently this is gcc49 by default but it you change one change them all and rebuild.
    4142#
    4243# p5-ifeffit is configured using a Makefile.PL that is generated when ifeffit is built.
     
    4748# if in doubt rebuild everything
    4849
    49 variant gcc45 description {Use gfortran from gcc45} conflicts gcc46 gcc47 gcc48 gcc49 {
    50     depends_lib-append    port:gcc45
    51     configure.fc          ${prefix}/bin/gfortran-mp-4.5
    52     configure.f77         ${prefix}/bin/gfortran-mp-4.5
    53     configure.f90         ${prefix}/bin/gfortran-mp-4.5
    54     configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.5
    55 }
    56 
    57 variant gcc46 description {Use gfortran from gcc46} conflicts gcc45 gcc47 gcc48 gcc49 {
    58     depends_lib-append    port:gcc46
    59     configure.fc          ${prefix}/bin/gfortran-mp-4.6
    60     configure.f77         ${prefix}/bin/gfortran-mp-4.6
    61     configure.f90         ${prefix}/bin/gfortran-mp-4.6
    62     configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.6
    63 }
    64 
    65 variant gcc47 description {Use gfortran from gcc47} conflicts gcc45 gcc46 gcc48 gcc49 {
    66     depends_lib-append    port:gcc47
    67     configure.fc          ${prefix}/bin/gfortran-mp-4.7
    68     configure.f77         ${prefix}/bin/gfortran-mp-4.7
    69     configure.f90         ${prefix}/bin/gfortran-mp-4.7
    70     configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.7
    71 }
    72 
    73 variant gcc48 description {Use gfortran from gcc48} conflicts gcc45 gcc46 gcc47 gcc49 {
    74     depends_lib-append    port:gcc48
    75     configure.fc          ${prefix}/bin/gfortran-mp-4.8
    76     configure.f77         ${prefix}/bin/gfortran-mp-4.8
    77     configure.f90         ${prefix}/bin/gfortran-mp-4.8
    78     configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.8
    79 }
    80 
    81 variant gcc49 description {Use gfortran from gcc49} conflicts gcc45 gcc46 gcc47 gcc48 {
    82     depends_lib-append    port:gcc49
    83     configure.fc          ${prefix}/bin/gfortran-mp-4.9
    84     configure.f77         ${prefix}/bin/gfortran-mp-4.9
    85     configure.f90         ${prefix}/bin/gfortran-mp-4.9
    86     configure.args-append --with-fortran=${prefix}/bin/gfortran-mp-4.9
    87 }
    88 
    89 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} {
    90     default_variants    +gcc49
     50pre-configure {
     51    configure.args-append --with-fortran=${configure.f77}
    9152}
    9253
Note: See TracChangeset for help on using the changeset viewer.