Changeset 117673


Ignore:
Timestamp:
Mar 7, 2014, 10:54:09 PM (7 years ago)
Author:
macsforever2000@…
Message:

splash: Update to version 2.4.0. Use FORTRAN recipe. (#42580)

File:
1 edited

Legend:

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

    r115709 r117673  
    55
    66name                splash
    7 version             2.3.1
    8 revision            1
     7version             2.4.0
    98categories          science graphics
    109platforms           darwin
     
    2019worksrcdir          ${name}
    2120
    22 checksums           rmd160  d16bc15ceb3ac2714a19653a41bb589000e32a34 \
    23                     sha256  214d3d8a95e9816a103cc05ecc7f8ad5e14c1e8ff9b65f009b1e7e5b020eedd8
     21checksums           rmd160  981bc357a8f6b73c515d6bc9f267a6f00d28869e \
     22                    sha256  5ff612ed988dbddcf57136317347529f7cf3c85ffac99167a14db5877b7e5333
    2423
    25 if {![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
    26    default_variants      +gcc47
    27 }
    2824default_variants    +giza
    2925
    3026use_configure       no
    31 
    32 build.args          SYSTEM=gfortran \
    33                     CC="${configure.cc}" \
    34                     CFLAGS="[get_canonical_archflags cc]" \
    35                     FFLAGS="[get_canonical_archflags fc]" \
    36                     F90FLAGS="[get_canonical_archflags f90]"
     27build.args          SYSTEM=gfortran
    3728
    3829destroot.args       PREFIX=${prefix}
     
    5243}
    5344
    54 variant gcc47 description {build with gfortran/gcc v4.7} conflicts gcc44 gcc45 gcc46 {
    55    depends_lib-append      path:lib/libgcc/libgcc_s.1.dylib:libgcc
    56    depends_build-append    port:gcc47
    57    build.args-append       F90C=gfortran-mp-4.7 FC=gfortran-mp-4.7
     45set gcc_versions {4.5 4.6 4.7 4.8}
     46set default_fortran_variant +gcc48
     47
     48foreach ver ${gcc_versions} {
     49    set ver_no_dot [join [split ${ver} "."] ""]
     50
     51    set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}
     52
     53    foreach over ${gcc_versions} {
     54        if {${ver} == ${over}} {
     55            continue
     56        }
     57
     58        set over_no_dot [join [split ${over} "."] ""]
     59        append variant_line " conflicts gcc${over_no_dot}"
     60    }
     61    append variant_line { {}}
     62
     63    eval $variant_line
     64
     65    if {[variant_isset gcc${ver_no_dot}]} {
     66        if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
     67            set default_fortran_variant ""
     68        }
     69    }
    5870}
    5971
    60 variant gcc46 description {build with gfortran/gcc v4.6} conflicts gcc44 gcc45 gcc47 {
    61    depends_lib-append      path:lib/libgcc/libgcc_s.1.dylib:libgcc
    62    depends_build-append    port:gcc46
    63    build.args-append       F90C=gfortran-mp-4.6 FC=gfortran-mp-4.6
     72if {${default_fortran_variant} != ""} {
     73    default_variants-append "${default_fortran_variant}"
    6474}
    6575
    66 variant gcc45 description {build with gfortran/gcc v4.5} conflicts gcc44 gcc46 gcc47 {
    67    depends_lib-append      path:lib/libgcc/libgcc_s.1.dylib:libgcc
    68    depends_build-append    port:gcc45
    69    build.args-append       F90C=gfortran-mp-4.5 FC=gfortran-mp-4.5
     76foreach ver ${gcc_versions} {
     77    set ver_no_dot [join [split ${ver} "."] ""]
     78
     79    if {[variant_isset gcc${ver_no_dot}]} {
     80        depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
     81        depends_build-append port:gcc${ver_no_dot}
     82
     83        configure.fc  ${prefix}/bin/gfortran-mp-${ver}
     84        configure.f77 ${prefix}/bin/gfortran-mp-${ver}
     85        configure.f90 ${prefix}/bin/gfortran-mp-${ver}
     86    }
    7087}
    7188
    72 variant gcc44 description {build with gfortran/gcc v4.4} conflicts gcc45 gcc46 gcc47 {
    73    depends_lib-append      path:lib/libgcc/libgcc_s.1.dylib:libgcc
    74    depends_build-append    port:gcc44
    75    build.args-append       F90C=gfortran-mp-4.4 FC=gfortran-mp-4.4
    76 }
     89build.args-append   FC="${configure.fc}" \
     90                    CC="${configure.cc}" \
     91                    CFLAGS="[get_canonical_archflags cc]" \
     92                    FFLAGS="[get_canonical_archflags fc]"
    7793
    7894variant hdf5 description {compiles data reads that depend on HDF5} {
Note: See TracChangeset for help on using the changeset viewer.