Ticket #46175: Portfile-petsc.diff

File Portfile-petsc.diff, 1.7 KB (added by johannes.feist@…, 10 years ago)
  • Portfile

    old new  
    2828
    2929depends_build-append \
    3030                    port:sowing \
    31                     port:c2html \
    32                     port:hwloc
     31                    port:c2html
    3332
    3433patchfiles-append   patch-env.diff
    3534
     
    7675                    --with-fc=0 \
    7776                    --with-shared-libraries \
    7877                    --with-c2html-dir=${prefix} \
    79                     --without-x \
    80                     --with-hwloc-dir=${prefix}
     78                    --without-x
    8179
    8280variant accelerate description {Use Accelerate framework for LAPACK} conflicts atlas {
    8381    configure.args-append --with-blas-lapack-lib=/System/Library/Frameworks/Accelerate.framework/Versions/Current/Accelerate
     
    8785    configure.args-append --with-blas-lapack-lib=${prefix}/lib/libtatlas.dylib
    8886}
    8987
    90 variant complex description {Build with support for complex numbers} conflicts sundials {
     88variant complex description {Build with support for complex numbers} conflicts sundials hwloc {
    9189    configure.args-append --with-scalar-type=complex
    9290    configure.args-append --with-clanguage=C++
    9391}
    9492
     93variant hwloc description {Build with hwloc} conflicts complex {
     94    depends_build-append  port:hwloc
     95    configure.args-append --with-hwloc-dir=${prefix}
     96}
     97
    9598variant suitesparse description {Build with CHOLDMOD and UMFPACK} {
    9699    depends_lib-append    port:SuiteSparse
    97100    configure.args-append --with-suitesparse-dir=${prefix}
     
    184187    default_variants +accelerate
    185188}
    186189
     190if {![variant_isset complex]} {
     191    default_variants +hwloc
     192}
     193
    187194destroot.destdir    DESTDIR=${destroot}${prefix}/lib/${name}