Ignore:
Timestamp:
May 24, 2012, 1:10:58 AM (8 years ago)
Author:
ryandesign@…
Message:

qrupdate: update to 1.1.2; factor out redundant code; change 'no_atlas' variant to 'atlas' variant; remove obsolete 'accelerate' compatibility variant; #34543

File:
1 edited

Legend:

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

    r90820 r93488  
    66
    77name                qrupdate
    8 version             1.1.1
    9 set branch          [join [lrange [split ${version} .] 0 1] .]
    10 revision            3
     8version             1.1.2
     9# Ridiculous
     10#set branch          [join [lrange [split ${version} .] 0 1] .]
     11set branch          [join [lrange [split ${version} .] 1 2] .]
    1112categories          math
    1213license             GPL-3+
     
    1920master_sites        sourceforge:project/qrupdate/qrupdate/${branch}
    2021
    21 checksums           md5     7782c7ee6c234e56a72d6b86c1856fa0 \
    22                     sha1    8fbaba202b0d4bf80852b2dc6c8d1d4b90b816d4 \
    23                     rmd160  fd63306abe91adcd5d47e408d9cd4af3e1b32b0c
    24 
    25 depends_lib         port:atlas
     22checksums           rmd160  9d23b2d13278c335f6208ebb6775df4b4049785c \
     23                    sha256  e2a1c711dc8ebc418e21195833814cb2f84b878b90a2774365f0166402308e08
    2624
    2725use_configure       no
    2826build.target        lib solib
    2927
    30 build.args          PREFIX=${prefix} BLAS="-L${prefix}/lib" LAPACK="-L${prefix}/lib -llapack"
    31 destroot.args       PREFIX=${prefix} BLAS="-L${prefix}/lib" LAPACK="-L${prefix}/lib -llapack"
    32 test.args           PREFIX=${prefix} BLAS="-L${prefix}/lib" LAPACK="-L${prefix}/lib -llapack"
     28build.args          PREFIX=${prefix}
     29destroot.args       PREFIX=${prefix}
     30test.args           PREFIX=${prefix}
    3331
    3432patchfiles          patch-Makefile.diff
     
    6765}
    6866
    69 variant no_atlas description {build with Accelerate framework instead of atlas} {
    70     depends_lib-delete      port:atlas
    71     build.args          PREFIX=${prefix} BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
    72     destroot.args       PREFIX=${prefix} BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
    73     test.args           PREFIX=${prefix} BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
     67
     68variant no_atlas description {Legacy compatibility variant} {}
     69
     70variant atlas description {build with atlas instead of Accelerate framework} {
     71    depends_lib-append      port:atlas
     72    build.args-append       BLAS="-L${prefix}/lib" LAPACK="-L${prefix}/lib -llapack"
     73    destroot.args-append    BLAS="-L${prefix}/lib" LAPACK="-L${prefix}/lib -llapack"
     74    test.args-append        BLAS="-L${prefix}/lib" LAPACK="-L${prefix}/lib -llapack"
     75}
     76if {![variant_isset atlas]} {
     77    build.args-append       BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
     78    destroot.args-append    BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
     79    test.args-append        BLAS="-framework Accelerate" LAPACK="-framework Accelerate"
    7480}
    7581
    76 variant accelerate requires no_atlas description {compatibility variant} {}
     82if {[variant_isset g95] || [variant_isset no_atlas]} {
     83    default_variants -atlas
     84} else {
     85    default_variants +atlas
     86}
     87
    7788
    7889variant g95 conflicts gcc43 gcc44 gcc45 universal description {build with g95} {
     
    110121}
    111122
    112 if {[variant_isset g95]} {
    113     default_variants +no_atlas
    114 }
    115123
    116124test.run yes
Note: See TracChangeset for help on using the changeset viewer.