[145974] trunk/dports/math/OpenBLAS/Portfile
michaelld at macports.org
michaelld at macports.org
Tue Feb 23 07:21:33 PST 2016
Revision: 145974
https://trac.macports.org/changeset/145974
Author: michaelld at macports.org
Date: 2016-02-23 07:21:33 -0800 (Tue, 23 Feb 2016)
Log Message:
-----------
OpenBLAS*: dynamically determine whether the 'lapacke' directory name inside ${worksrcdir}/lapack-netlib is all lower or all caps. The release uses one while the devel uses the other. Addresses tickets #50653 and #50232.
Modified Paths:
--------------
trunk/dports/math/OpenBLAS/Portfile
Modified: trunk/dports/math/OpenBLAS/Portfile
===================================================================
--- trunk/dports/math/OpenBLAS/Portfile 2016-02-23 15:11:30 UTC (rev 145973)
+++ trunk/dports/math/OpenBLAS/Portfile 2016-02-23 15:21:33 UTC (rev 145974)
@@ -201,13 +201,15 @@
delete file ${destroot}-${arch}/${prefix}/lib/cmake
if {[variant_isset lapack]} {
#Install lapacke headers too
- xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/lapacke/include/lapacke_config.h \
+ set LAPACKE_DIR [exec /bin/ls ${worksrcpath}/lapack-netlib | \
+ grep -i lapacke]
+ xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/${LAPACKE_DIR}/include/lapacke_config.h \
${destroot}-${arch}${prefix}/include/lapacke_config.h
- xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/lapacke/include/lapacke_mangling.h \
+ xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/${LAPACKE_DIR}/include/lapacke_mangling.h \
${destroot}-${arch}${prefix}/include/lapacke_mangling.h
- xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/lapacke/include/lapacke_utils.h \
+ xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/${LAPACKE_DIR}/include/lapacke_utils.h \
${destroot}-${arch}${prefix}/include/lapacke_utils.h
- xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/lapacke/include/lapacke.h \
+ xinstall -m 755 ${worksrcpath}-${arch}/lapack-netlib/${LAPACKE_DIR}/include/lapacke.h \
${destroot}-${arch}${prefix}/include/lapacke.h
}
}
@@ -224,13 +226,15 @@
delete file ${destroot}/${prefix}/lib/cmake
if {[variant_isset lapack]} {
#Install lapacke headers too
- xinstall -m 755 ${worksrcpath}/lapack-netlib/lapacke/include/lapacke_config.h \
+ set LAPACKE_DIR [exec /bin/ls ${worksrcpath}/lapack-netlib | \
+ grep -i lapacke]
+ xinstall -m 755 ${worksrcpath}/lapack-netlib/${LAPACKE_DIR}/include/lapacke_config.h \
${destroot}${prefix}/include/lapacke_config.h
- xinstall -m 755 ${worksrcpath}/lapack-netlib/lapacke/include/lapacke_mangling.h \
+ xinstall -m 755 ${worksrcpath}/lapack-netlib/${LAPACKE_DIR}/include/lapacke_mangling.h \
${destroot}${prefix}/include/lapacke_mangling.h
- xinstall -m 755 ${worksrcpath}/lapack-netlib/lapacke/include/lapacke_utils.h \
+ xinstall -m 755 ${worksrcpath}/lapack-netlib/${LAPACKE_DIR}/include/lapacke_utils.h \
${destroot}${prefix}/include/lapacke_utils.h
- xinstall -m 755 ${worksrcpath}/lapack-netlib/lapacke/include/lapacke.h \
+ xinstall -m 755 ${worksrcpath}/lapack-netlib/${LAPACKE_DIR}/include/lapacke.h \
${destroot}${prefix}/include/lapacke.h
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160223/31f71927/attachment.html>
More information about the macports-changes
mailing list