Ignore:
Timestamp:
Sep 28, 2014, 6:45:05 AM (5 years ago)
Author:
takeshi@…
Message:

dotwrp: made obsolete. replaced by vecLibFort. octave, qrupdate: use vecLibFort in accelerate variant, closing #44991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/qrupdate/Portfile

    r114328 r125857  
    44PortSystem          1.0
    55PortGroup           muniversal 1.0
     6PortGroup           compilers 1.0
     7
     8compilers.choose    fc
     9compilers.setup     require_fortran -dragonegg
    610
    711name                qrupdate
    812version             1.1.2
    9 revision            2
     13revision            3
    1014# upstream follows a weird folder naming policy, we need last two digits of version separated by a dot
    1115set branch          [join [lrange [split ${version} .] 1 2] .]
     
    6468}
    6569
    66 variant atlas description {build with atlas instead of Accelerate framework} {
     70variant atlas conflicts accelerate description {build with atlas instead of Accelerate framework} {
    6771    depends_lib-append      port:atlas
    6872    build.args-append       BLAS="-L${prefix}/lib -ltatlas" LAPACK="-L${prefix}/lib -llapack"
     
    7074    test.args-append        BLAS="-L${prefix}/lib -ltatlas" LAPACK="-L${prefix}/lib -llapack"
    7175}
    72 if {![variant_isset atlas]} {
    73     build.args-append       BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
    74     destroot.args-append    BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
    75     test.args-append        BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
     76
     77variant accelerate conflicts atlas description {build with Accelerate framework} {
     78    depends_lib-append      port:vecLibFort
     79    build.args-append       BLAS=-lvecLibFort LAPACK="-framework Accelerate"
     80    destroot.args-append    BLAS=-lvecLibFort LAPACK="-framework Accelerate"
     81    test.args-append        BLAS=-lvecLibFort LAPACK="-framework Accelerate"
    7682}
    7783
    7884if {[variant_isset g95]} {
    79     default_variants -atlas
    80 } else {
    81     default_variants +atlas
    82 }
    83 
    84 
    85 variant g95 conflicts gcc45 gcc46 gcc47 gcc48 gcc49 universal description {build with g95} {
    86     depends_build-append    port:g95
     85    default_variants-append +accelerate
    8786    post-patch {
    8887        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile
    8988        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile
    9089    }
    91 }
    92 
    93 variant gcc45 conflicts g95 gcc46 gcc47 gcc48 gcc49 universal description {build with gcc45 fortran} {
    94     depends_lib-append    path:lib/libgcc/libgcc_s.1.dylib:libgcc
    95     depends_build-append  port:gcc45
     90} else {
     91    default_variants-append +atlas
    9692    post-patch {
    97         reinplace "s|gfortran|gfortran-mp-4.5|" ${worksrcpath}/Makeconf
     93        reinplace "s|gfortran|${configure.fc}|" ${worksrcpath}/Makeconf
    9894    }
    9995}
    100 
    101 variant gcc46 conflicts g95 gcc45 gcc47 gcc48 gcc49 description {build with gcc46 fortran} {
    102     depends_lib-append    path:lib/libgcc/libgcc_s.1.dylib:libgcc
    103     depends_build-append  port:gcc46
    104     post-patch {
    105         reinplace "s|gfortran|gfortran-mp-4.6|" ${worksrcpath}/Makeconf
    106     }
    107 }
    108 
    109 variant gcc47 conflicts g95 gcc45 gcc46 gcc48 gcc49 description {build with gcc47 fortran} {
    110     depends_lib-append    path:lib/libgcc/libgcc_s.1.dylib:libgcc
    111     depends_build-append  port:gcc47
    112     post-patch {
    113         reinplace "s|gfortran|gfortran-mp-4.7|" ${worksrcpath}/Makeconf
    114     }
    115 }
    116 
    117 variant gcc48 conflicts g95 gcc45 gcc46 gcc47 gcc49 description {build with gcc48 fortran} {
    118     depends_lib-append    path:lib/libgcc/libgcc_s.1.dylib:libgcc
    119     depends_build-append  port:gcc48
    120     post-patch {
    121         reinplace "s|gfortran|gfortran-mp-4.8|" ${worksrcpath}/Makeconf
    122     }
    123 }
    124 
    125 variant gcc49 conflicts g95 gcc45 gcc46 gcc47 gcc48 description {build with gcc49 fortran} {
    126     depends_lib-append    path:lib/libgcc/libgcc_s.1.dylib:libgcc
    127     depends_build-append  port:gcc49
    128     post-patch {
    129         reinplace "s|gfortran|gfortran-mp-4.9|" ${worksrcpath}/Makeconf
    130     }
    131 }
    132 
    133 if {![variant_isset g95]   && ![variant_isset gcc45] && \
    134     ![variant_isset gcc46] && ![variant_isset gcc47] && \
    135     ![variant_isset gcc48] && ![variant_isset gcc49]} {
     96if {![fortran_variant_isset]} {
    13697    default_variants-append +gcc48
    13798}
    138 
    139 test.run yes
Note: See TracChangeset for help on using the changeset viewer.