[146856] trunk/dports/math
takeshi at macports.org
takeshi at macports.org
Fri Mar 18 23:19:31 PDT 2016
Revision: 146856
https://trac.macports.org/changeset/146856
Author: takeshi at macports.org
Date: 2016-03-18 23:19:31 -0700 (Fri, 18 Mar 2016)
Log Message:
-----------
lapack: add to MacPorts
Added Paths:
-----------
trunk/dports/math/lapack/
trunk/dports/math/lapack/Portfile
trunk/dports/math/lapack/files/
trunk/dports/math/lapack/files/patch-BLAS-CMakeLists.txt.diff
trunk/dports/math/lapack/files/patch-BLAS-blas.pc.in.diff
trunk/dports/math/lapack/files/patch-CBLAS-CMakeLists.txt.diff
trunk/dports/math/lapack/files/patch-CBLAS-cblas.pc.in.diff
trunk/dports/math/lapack/files/patch-CMakeLists.txt.diff
trunk/dports/math/lapack/files/patch-LAPACKE-CMakeLists.txt.diff
trunk/dports/math/lapack/files/patch-LAPACKE-lapacke.pc.in.diff
trunk/dports/math/lapack/files/patch-lapack.pc.in.diff
Added: trunk/dports/math/lapack/Portfile
===================================================================
--- trunk/dports/math/lapack/Portfile (rev 0)
+++ trunk/dports/math/lapack/Portfile 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,51 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup cmake 1.0
+PortGroup compilers 1.0
+
+name lapack
+version 3.6.0
+categories math devel science
+platforms darwin
+license BSD
+maintainers takeshi openmaintainer
+description Linear Algebra PACKage
+long_description \
+ LAPACK is written in Fortran 90 and provides routines \
+ for solving systems of simultaneous linear equations, \
+ least-squares solutions of linear systems of equations, \
+ eigenvalue problems, and singular value problems.
+homepage http://www.netlib.org/${name}/
+master_sites ${homepage}
+
+checksums rmd160 a92d0d869e42cf5835039b043e613e323b069f04 \
+ sha256 a9a0082c918fe14e377bbd570057616768dca76cbdc713457d8199aaa233ffc3
+extract.suffix .tgz
+
+compilers.choose cc fc f77 f90
+compilers.setup require_fortran -clang -llvm -dragonegg
+
+cmake.out_of_source yes
+
+patchfiles patch-lapack.pc.in.diff \
+ patch-BLAS-CMakeLists.txt.diff \
+ patch-BLAS-blas.pc.in.diff \
+ patch-CBLAS-CMakeLists.txt.diff \
+ patch-CBLAS-cblas.pc.in.diff \
+ patch-CMakeLists.txt.diff \
+ patch-LAPACKE-CMakeLists.txt.diff \
+ patch-LAPACKE-lapacke.pc.in.diff
+
+configure.args-append \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCBLAS=ON \
+ -DLAPACKE=ON \
+ -DCMAKE_INSTALL_LIBDIR=${prefix}/lib/${name}
+
+variant accelerate description {use BLAS in Accelerate.framework} {
+ depends_lib-append port:vecLibFort
+ configure.args-append -DUSE_OPTIMIZED_BLAS=ON
+ configure.ldflags-append -lvecLibFort
+}
Property changes on: trunk/dports/math/lapack/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/math/lapack/files/patch-BLAS-CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-BLAS-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-BLAS-CMakeLists.txt.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,11 @@
+--- BLAS/CMakeLists.txt.orig 2010-12-16 03:44:42.000000000 +0900
++++ BLAS/CMakeLists.txt 2016-03-13 17:51:33.000000000 +0900
+@@ -2,7 +2,7 @@
+ if(BUILD_TESTING)
+ add_subdirectory(TESTING)
+ endif(BUILD_TESTING)
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc)
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY)
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/blas.pc
+ DESTINATION ${PKG_CONFIG_DIR}
Added: trunk/dports/math/lapack/files/patch-BLAS-blas.pc.in.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-BLAS-blas.pc.in.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-BLAS-blas.pc.in.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,12 @@
+--- BLAS/blas.pc.in.orig 2010-12-16 03:44:42.000000000 +0900
++++ BLAS/blas.pc.in 2016-03-19 12:19:36.000000000 +0900
+@@ -1,5 +1,7 @@
+-prefix=@prefix@
+-libdir=@libdir@
++prefix=@CMAKE_INSTALL_PREFIX@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib/lapack
++includedir=${prefix}/include/lapack
+
+ Name: blas
+ Description: Basic Linear Algebra Subprograms F77 reference implementations
Added: trunk/dports/math/lapack/files/patch-CBLAS-CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-CBLAS-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-CBLAS-CMakeLists.txt.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,20 @@
+--- CBLAS/CMakeLists.txt.orig 2014-08-23 10:53:37.000000000 +0900
++++ CBLAS/CMakeLists.txt 2016-03-19 12:11:46.000000000 +0900
+@@ -32,7 +32,7 @@
+ endmacro()
+
+ append_subdir_files(CBLAS_INCLUDE "include")
+-INSTALL( FILES ${CBLAS_INCLUDE} DESTINATION include )
++INSTALL( FILES ${CBLAS_INCLUDE} DESTINATION include/lapack )
+
+ # --------------------------------------------------
+ if(BUILD_TESTING)
+@@ -71,7 +71,7 @@
+ ${LAPACK_BINARY_DIR}/cblas-config.cmake @ONLY)
+
+
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc)
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc @ONLY)
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc
+ DESTINATION ${PKG_CONFIG_DIR}
Added: trunk/dports/math/lapack/files/patch-CBLAS-cblas.pc.in.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-CBLAS-cblas.pc.in.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-CBLAS-cblas.pc.in.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,12 @@
+--- CBLAS/cblas.pc.in.orig 2014-08-23 10:21:57.000000000 +0900
++++ CBLAS/cblas.pc.in 2016-03-19 12:16:31.000000000 +0900
+@@ -1,5 +1,7 @@
+-prefix=@prefix@
+-libdir=@libdir@
++prefix=@CMAKE_INSTALL_PREFIX@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib/lapack
++includedir=${prefix}/include/lapack
+
+ Name: lapacke
+ Description: C Standard Interface to BLAS Linear Algebra PACKage
Added: trunk/dports/math/lapack/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-CMakeLists.txt.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,36 @@
+--- CMakeLists.txt.orig 2015-11-16 05:33:40.000000000 +0900
++++ CMakeLists.txt 2016-03-19 12:08:17.000000000 +0900
+@@ -110,7 +110,7 @@
+
+ set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_${TIME_FUNC}.f)
+ set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_${TIME_FUNC}.f)
+-set(PKG_CONFIG_DIR ${LIBRARY_DIR}/pkgconfig)
++set(PKG_CONFIG_DIR lib/pkgconfig)
+
+ # --------------------------------------------------
+ # Precision to build
+@@ -302,7 +302,7 @@
+ set(_lapack_config_install_guard_target "")
+ if(ALL_TARGETS)
+ install(EXPORT lapack-targets
+- DESTINATION ${LIBRARY_DIR}/cmake/lapack-${LAPACK_VERSION})
++ DESTINATION lib/cmake/lapack-${LAPACK_VERSION})
+
+ # Choose one of the lapack targets to use as a guard for
+ # lapack-config.cmake to load targets from the install tree.
+@@ -333,7 +333,7 @@
+ ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)
+
+
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc)
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY)
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc
+ DESTINATION ${PKG_CONFIG_DIR}
+@@ -352,5 +352,5 @@
+ install(FILES
+ ${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake
+ ${LAPACK_BINARY_DIR}/lapack-config-version.cmake
+- DESTINATION ${LIBRARY_DIR}/cmake/lapack-${LAPACK_VERSION}
++ DESTINATION lib/cmake/lapack-${LAPACK_VERSION}
+ )
Added: trunk/dports/math/lapack/files/patch-LAPACKE-CMakeLists.txt.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-LAPACKE-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-LAPACKE-CMakeLists.txt.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,19 @@
+--- LAPACKE/CMakeLists.txt.orig 2014-08-23 10:53:37.000000000 +0900
++++ LAPACKE/CMakeLists.txt 2016-03-19 12:12:33.000000000 +0900
+@@ -58,14 +58,14 @@
+ endif(USE_XBLAS)
+
+ lapack_install_library(lapacke)
+-INSTALL( FILES ${LAPACKE_INCLUDE} DESTINATION include )
++INSTALL( FILES ${LAPACKE_INCLUDE} DESTINATION include/lapack )
+
+ if(BUILD_TESTING)
+ add_subdirectory(example)
+ endif(BUILD_TESTING)
+
+
+-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc)
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY)
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc
+ DESTINATION ${PKG_CONFIG_DIR}
Added: trunk/dports/math/lapack/files/patch-LAPACKE-lapacke.pc.in.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-LAPACKE-lapacke.pc.in.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-LAPACKE-lapacke.pc.in.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,12 @@
+--- LAPACKE/lapacke.pc.in.orig 2011-12-09 13:09:29.000000000 +0900
++++ LAPACKE/lapacke.pc.in 2016-03-19 12:16:53.000000000 +0900
+@@ -1,5 +1,7 @@
+-prefix=@prefix@
+-libdir=@libdir@
++prefix=@CMAKE_INSTALL_PREFIX@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib/lapack
++includedir=${prefix}/include/lapack
+
+ Name: lapacke
+ Description: C Standard Interface to LAPACK Linear Algebra PACKage
Added: trunk/dports/math/lapack/files/patch-lapack.pc.in.diff
===================================================================
--- trunk/dports/math/lapack/files/patch-lapack.pc.in.diff (rev 0)
+++ trunk/dports/math/lapack/files/patch-lapack.pc.in.diff 2016-03-19 06:19:31 UTC (rev 146856)
@@ -0,0 +1,12 @@
+--- lapack.pc.in.orig 2010-12-16 03:44:42.000000000 +0900
++++ lapack.pc.in 2016-03-19 12:20:17.000000000 +0900
+@@ -1,5 +1,7 @@
+-prefix=@prefix@
+-libdir=@libdir@
++prefix=@CMAKE_INSTALL_PREFIX@
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib/lapack
++includedir=${prefix}/include/lapack
+
+ Name: lapack
+ Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160318/1d59ae83/attachment.html>
More information about the macports-changes
mailing list