Ticket #64379: lapack_proposal_v1.patch

File lapack_proposal_v1.patch, 1.4 KB (added by lepus2589 (Tim Kaune), 3 years ago)

A patch removing the port name 'lapack' from the install paths. Also removes the unnecessery variable CMAKE_INSTALL_NAME_DIR.

  • math/lapack/Portfile

    diff --git a/math/lapack/Portfile b/math/lapack/Portfile
    index 5ca8fe4a87c..39da73cffa7 100644
    a b configure.args-append \ 
    4141                    -DBUILD_SHARED_LIBS=ON \
    4242                    -DCBLAS=ON \
    4343                    -DLAPACKE=ON \
    44                     -DCMAKE_INSTALL_INCLUDEDIR=${prefix}/include/${name} \
    45                     -DCMAKE_INSTALL_LIBDIR=${prefix}/lib/${name} \
    46                     -DCMAKE_INSTALL_RPATH=${prefix}/lib/${name} \
    47                     -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/${name}
     44                    -DCMAKE_INSTALL_INCLUDEDIR=${prefix}/include \
     45                    -DCMAKE_INSTALL_LIBDIR=${prefix}/lib \
     46                    -DCMAKE_INSTALL_RPATH=${prefix}/lib \
    4847
    4948if {${subport} eq ${name}} {
    5049    if {[variant_isset gfortran]} {
    if {${subport} eq ${name}} { 
    6261    if {[variant_isset accelerate] || [variant_isset openblas]} {
    6362       configure.args-append       -DUSE_OPTIMIZED_BLAS=ON
    6463    }
    65     post-destroot {
    66         # move CMake scripts to the directory cmake expects to find them in
    67         xinstall -m 755 -d ${destroot}${cmake_share_module_dir}
    68         file delete -force ${destroot}${cmake_share_module_dir}
    69         move ${destroot}${prefix}/lib/${name}/cmake \
    70             ${destroot}${cmake_share_module_dir}
    71     }
    7264}
    7365
    7466notes "C headers are installed in ${prefix}/include/${name}."