Ticket #37097: dsdp_Portfile.diff

File dsdp_Portfile.diff, 1.4 KB (added by jjstickel (Jonathan Stickel), 10 years ago)
  • Portfile

    old new  
    55
    66name                DSDP
    77version             5.8
    8 revision            2
     8revision            3
    99categories          math science
    1010platforms           darwin
    1111maintainers         nomaintainer
     
    2323distname            ${name}${version}
    2424use_zip             yes
    2525
    26 checksums           md5     f61d3759cc8c6de688ab5c30877ca83c \
    27                     sha1    8327a6fe2de902d97c3b4cf63668f2731c84b80d \
    28                     rmd160  75cf8629445522a4f9bbfffdcec25e832c8ffc4e
    29 
    30 depends_lib         port:atlas
     26checksums           rmd160  75cf8629445522a4f9bbfffdcec25e832c8ffc4e \
     27    sha256  8915e55456f1a7cc5c970ad157d094a5fb399737cf192dfe79b89c2d94d97a8a
    3128
    3229patchfiles          patch-make.include.diff
    3330
     
    3633build.target        dsdpapi
    3734build.env-append    DSDPROOT=${worksrcpath}
    3835
     36variant atlas description {Use ATLAS as BLAS, LAPACK library} {
     37    depends_lib-append port:atlas
     38}
     39
    3940variant octave description {Build DSDP with octave interface} {
    4041    build.target            all
    4142    depends_lib-append      path:bin/octave:octave
     
    4647        ${worksrcpath}/make.include
    4748    reinplace "s|@@MP_ARCHFLAGS@@|${configure.cc_archflags}|g" \
    4849        ${worksrcpath}/make.include
     50    if {[variant_isset atlas]} {
     51        reinplace "s|-Wl,-framework -Wl,Accelerate -lm|-ltatlas -lm|g" \
     52            ${worksrcpath}/make.include
     53    }
    4954}
    5055
    5156destroot {