pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math math/lapack, blas, cblas, lapacke: update to vers...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a4f028c2ad7
branches: trunk
changeset: 452537:8a4f028c2ad7
user: thor <thor%pkgsrc.org@localhost>
date: Wed May 12 14:32:51 2021 +0000
description:
math/lapack, blas, cblas, lapacke: update to version 3.9.1
This includes a rework of the build system patches, which I'll try
to push upstream …
diffstat:
math/blas/Makefile | 4 +-
math/lapack/Makefile | 3 +-
math/lapack/distinfo | 26 +-
math/lapack/patches/patch-BLAS_SRC_CMakeLists.txt | 18 +-
math/lapack/patches/patch-CBLAS_cblas.pc.in | 8 +-
math/lapack/patches/patch-CBLAS_src_CMakeLists.txt | 32 +--
math/lapack/patches/patch-CMakeLists.txt | 108 ++++-----------
math/lapack/patches/patch-LAPACKE_CMakeLists.txt | 49 +++---
math/lapack/patches/patch-LAPACKE_lapacke.pc.in | 8 +-
math/lapack/patches/patch-SRC_CMakeLists.txt | 26 +-
math/lapack/patches/patch-TESTING_MATGEN_CMakeLists.txt | 20 +-
math/lapack/version.mk | 4 +-
12 files changed, 124 insertions(+), 182 deletions(-)
diffs (truncated from 515 to 300 lines):
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/blas/Makefile
--- a/math/blas/Makefile Wed May 12 14:24:27 2021 +0000
+++ b/math/blas/Makefile Wed May 12 14:32:51 2021 +0000
@@ -1,9 +1,7 @@
-# $NetBSD: Makefile,v 1.38 2020/10/12 21:51:57 bacon Exp $
+# $NetBSD: Makefile,v 1.39 2021/05/12 14:32:52 thor Exp $
.include "../../math/lapack/Makefile.common"
-PKGREVISION= 1
-
COMMENT= Basic Linear Algebra System (Netlib reference implementation)
LAPACK_COMPONENT= blas
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/lapack/Makefile
--- a/math/lapack/Makefile Wed May 12 14:24:27 2021 +0000
+++ b/math/lapack/Makefile Wed May 12 14:32:51 2021 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.42 2021/03/25 08:32:48 thor Exp $
+# $NetBSD: Makefile,v 1.43 2021/05/12 14:32:51 thor Exp $
MAINTAINER= thomas.orgis%uni-hamburg.de@localhost
COMMENT= Linear Algebra PACKage (Netlib reference implementation)
-PKGREVISION= 2
LAPACK_COMPONENT= lapack
LAPACK_COMPONENT_CMAKE_ARGS= \
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/lapack/distinfo
--- a/math/lapack/distinfo Wed May 12 14:24:27 2021 +0000
+++ b/math/lapack/distinfo Wed May 12 14:32:51 2021 +0000
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.24 2021/04/21 13:53:18 ryoon Exp $
+$NetBSD: distinfo,v 1.25 2021/05/12 14:32:51 thor Exp $
-SHA1 (lapack-3.9.0.tar.gz) = 0451d180eed2b12b94aaae77e772d7573e87bec4
-RMD160 (lapack-3.9.0.tar.gz) = 333bf17b3e2503c26cdd2139566fdc788be1d0c3
-SHA512 (lapack-3.9.0.tar.gz) = 424956ad941a60a4b71e0d451ad48db12a692f8a71a90f3ca7f71d6ecc1922f392746ea84df1c47a46577ed2db32e9e47ec44ad248207c5ac7da179becb712ef
-Size (lapack-3.9.0.tar.gz) = 7534567 bytes
-SHA1 (patch-BLAS_SRC_CMakeLists.txt) = c8c69e6e0c67337af999863c4f5c64618d1374d7
-SHA1 (patch-CBLAS_cblas.pc.in) = 3befb18c1b7f2f82c6da83ea10f913c817acf09f
-SHA1 (patch-CBLAS_src_CMakeLists.txt) = ee309360ff4ad487be60156900c62c960d07daf3
-SHA1 (patch-CMakeLists.txt) = ea2bec54dd2c283a96862ef760826bf6e633613e
-SHA1 (patch-LAPACKE_CMakeLists.txt) = b5d4fb36550e1ae47e7e68ffec0e10afa3ac8864
-SHA1 (patch-LAPACKE_lapacke.pc.in) = 7f0d91aaceac7f9980650ec90dbda95cf09b768f
-SHA1 (patch-SRC_CMakeLists.txt) = 2908cdeb0d94f51ec16b02b8a6426dd6cde7e10f
-SHA1 (patch-TESTING_MATGEN_CMakeLists.txt) = 84d4cde8fef49c6efc9f50a3219b0299375934d5
+SHA1 (lapack-3.9.1.tar.gz) = ccb1e9cb6e7fa7db8a680292457d7d990f25d286
+RMD160 (lapack-3.9.1.tar.gz) = 380a2072eb7d8358ec8bf100e3d114600fc71444
+SHA512 (lapack-3.9.1.tar.gz) = 1c70892ce22eb1f5c0be1e0384d00dc876622e6254e853616eb7c0379c5d1ecf2f1f94d06389dbfba06b78484daf625d899306a9dc0b31a0646320c814022fdb
+Size (lapack-3.9.1.tar.gz) = 7543209 bytes
+SHA1 (patch-BLAS_SRC_CMakeLists.txt) = 8773f93b1f907ed02d41677a3819f5bb655a331a
+SHA1 (patch-CBLAS_cblas.pc.in) = cc97fbab08024220739929b5ad95c266965da06d
+SHA1 (patch-CBLAS_src_CMakeLists.txt) = c174bb5d790e5f7e50226d0b7a758d0417d90100
+SHA1 (patch-CMakeLists.txt) = 3c8e9125f164625198fb7197982746f43bf4aab5
+SHA1 (patch-LAPACKE_CMakeLists.txt) = 13e4662585088aa53f61f7079d103fdfcf985c4e
+SHA1 (patch-LAPACKE_lapacke.pc.in) = 6bbd72205120501cd60daf0b22b00ef7979fb329
+SHA1 (patch-SRC_CMakeLists.txt) = 4031bb41100f1fde71c70aa53fc55bee7a852fb7
+SHA1 (patch-TESTING_MATGEN_CMakeLists.txt) = 07946678945dba3a7752849791f12e0666345983
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/lapack/patches/patch-BLAS_SRC_CMakeLists.txt
--- a/math/lapack/patches/patch-BLAS_SRC_CMakeLists.txt Wed May 12 14:24:27 2021 +0000
+++ b/math/lapack/patches/patch-BLAS_SRC_CMakeLists.txt Wed May 12 14:32:51 2021 +0000
@@ -1,18 +1,20 @@
-$NetBSD: patch-BLAS_SRC_CMakeLists.txt,v 1.1 2020/10/12 21:51:57 bacon Exp $
+$NetBSD: patch-BLAS_SRC_CMakeLists.txt,v 1.2 2021/05/12 14:32:51 thor Exp $
Support combined build of shared and static libraries.
---- BLAS/SRC/CMakeLists.txt.orig 2017-11-13 04:15:54.000000000 +0000
+--- BLAS/SRC/CMakeLists.txt.orig 2021-03-25 18:25:15.000000000 +0000
+++ BLAS/SRC/CMakeLists.txt
-@@ -104,3 +104,11 @@ set_target_properties(
+@@ -104,3 +104,13 @@ set_target_properties(
SOVERSION ${LAPACK_MAJOR_VERSION}
)
- lapack_install_library(blas)
+ lapack_install_library(${BLASLIB})
+if(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
-+ add_library(blas_static STATIC ${SOURCES})
++ add_library(${BLASLIB}_static STATIC ${SOURCES})
+ set_target_properties(
-+ blas_static PROPERTIES
-+ OUTPUT_NAME blas
++ ${BLASLIB}_static PROPERTIES
++ OUTPUT_NAME ${BLASLIB}
+ )
-+ lapack_install_library(blas_static)
++ lapack_install_library(${BLASLIB}_static)
+endif()
++
++
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/lapack/patches/patch-CBLAS_cblas.pc.in
--- a/math/lapack/patches/patch-CBLAS_cblas.pc.in Wed May 12 14:24:27 2021 +0000
+++ b/math/lapack/patches/patch-CBLAS_cblas.pc.in Wed May 12 14:32:51 2021 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-CBLAS_cblas.pc.in,v 1.1 2020/10/12 21:51:57 bacon Exp $
+$NetBSD: patch-CBLAS_cblas.pc.in,v 1.2 2021/05/12 14:32:51 thor Exp $
Install BLAS libs here rather than from a separate package
---- CBLAS/cblas.pc.in.orig 2019-03-27 14:34:40.823289167 +0000
+--- CBLAS/cblas.pc.in.orig 2021-03-25 18:25:15.000000000 +0000
+++ CBLAS/cblas.pc.in
@@ -6,5 +6,5 @@ Description: C Standard Interface to BLA
Version: @LAPACK_VERSION@
URL: http://www.netlib.org/blas/#_cblas
- Libs: -L${libdir} -lcblas
+ Libs: -L${libdir} -l@CBLASLIB@
+Libs.private: @BLAS_LIBRARIES@
Cflags: -I${includedir}
--Requires.private: blas
+-Requires.private: @BLASLIB@
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/lapack/patches/patch-CBLAS_src_CMakeLists.txt
--- a/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt Wed May 12 14:24:27 2021 +0000
+++ b/math/lapack/patches/patch-CBLAS_src_CMakeLists.txt Wed May 12 14:32:51 2021 +0000
@@ -1,32 +1,26 @@
-$NetBSD: patch-CBLAS_src_CMakeLists.txt,v 1.2 2021/04/21 13:53:19 ryoon Exp $
+$NetBSD: patch-CBLAS_src_CMakeLists.txt,v 1.3 2021/05/12 14:32:51 thor Exp $
Support combined build of shared and static libraries.
---- CBLAS/src/CMakeLists.txt.orig 2019-11-21 07:57:43.000000000 +0000
+--- CBLAS/src/CMakeLists.txt.orig 2021-03-25 18:25:15.000000000 +0000
+++ CBLAS/src/CMakeLists.txt
-@@ -116,7 +116,6 @@ list(REMOVE_DUPLICATES SOURCES)
- add_library(cblas ${SOURCES})
- set_target_properties(
- cblas PROPERTIES
-- LINKER_LANGUAGE C
- VERSION ${LAPACK_VERSION}
- SOVERSION ${LAPACK_MAJOR_VERSION}
- )
-@@ -126,3 +125,17 @@ target_include_directories(cblas PUBLIC
+@@ -129,3 +129,19 @@ target_include_directories(${CBLASLIB} P
)
- target_link_libraries(cblas PRIVATE ${BLAS_LIBRARIES})
- lapack_install_library(cblas)
+ target_link_libraries(${CBLASLIB} PRIVATE ${BLAS_LIBRARIES})
+ lapack_install_library(${CBLASLIB})
+
+if(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
-+ add_library(cblas_static STATIC ${SOURCES})
++ add_library(${CBLASLIB}_static STATIC ${SOURCES})
+ set_target_properties(
-+ cblas_static PROPERTIES
-+ OUTPUT_NAME cblas
++ ${CBLASLIB}_static PROPERTIES
++ LINKER_LANGUAGE C
++ OUTPUT_NAME ${CBLASLIB}
+ )
-+ target_include_directories(cblas_static PUBLIC
++ target_include_directories(${CBLASLIB}_static PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
+ $<INSTALL_INTERFACE:include>
+ )
-+ target_link_libraries(cblas_static PRIVATE ${BLAS_LIBRARIES})
-+ lapack_install_library(cblas_static)
++ target_link_libraries(${CBLASLIB}_static PRIVATE ${BLAS_LIBRARIES})
++ lapack_install_library(${CBLASLIB}_static)
+endif()
++
diff -r 1bcb87e1fbc2 -r 8a4f028c2ad7 math/lapack/patches/patch-CMakeLists.txt
--- a/math/lapack/patches/patch-CMakeLists.txt Wed May 12 14:24:27 2021 +0000
+++ b/math/lapack/patches/patch-CMakeLists.txt Wed May 12 14:32:51 2021 +0000
@@ -1,24 +1,22 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2020/10/12 21:51:57 bacon Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2021/05/12 14:32:51 thor Exp $
Avoid installation of LAPACK CMake and pkg-config files when not installing
LAPACK, also allowing explicitly to switch off LAPACK build for BLAS-only
packaging.
---- CMakeLists.txt.orig 2020-03-03 15:36:43.155560348 +0100
-+++ CMakeLists.txt 2020-03-03 15:36:34.827560837 +0100
-@@ -112,8 +112,10 @@
+--- CMakeLists.txt.orig 2021-03-25 18:25:15.000000000 +0000
++++ CMakeLists.txt
+@@ -160,6 +160,9 @@ endif()
# --------------------------------------------------
--set(LAPACK_INSTALL_EXPORT_NAME lapack-targets)
-
++
+if(LAPACK)
+
-+set(LAPACK_INSTALL_EXPORT_NAME lapack-targets)
+ set(LAPACK_INSTALL_EXPORT_NAME ${LAPACKLIB}-targets)
+
macro(lapack_install_library lib)
- install(TARGETS ${lib}
- EXPORT ${LAPACK_INSTALL_EXPORT_NAME}
-@@ -123,6 +125,18 @@
+@@ -171,6 +174,18 @@ macro(lapack_install_library lib)
)
endmacro()
@@ -37,7 +35,7 @@
set(PKG_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
# --------------------------------------------------
-@@ -252,6 +266,10 @@
+@@ -301,6 +316,10 @@ endif()
option(USE_OPTIMIZED_LAPACK "Whether or not to use an optimized LAPACK library instead of included netlib LAPACK" OFF)
@@ -48,7 +46,7 @@
# --------------------------------------------------
# LAPACK
# User did not provide a LAPACK Library but specified to search for one
-@@ -293,6 +311,8 @@
+@@ -342,6 +361,8 @@ else()
CACHE STRING "Linker flags for shared libs" FORCE)
endif()
@@ -57,26 +55,26 @@
if(BUILD_TESTING)
add_subdirectory(TESTING)
endif()
-@@ -374,14 +394,18 @@
- set(ALL_TARGETS ${ALL_TARGETS} blas)
+@@ -450,14 +471,18 @@ if(NOT BLAS_FOUND)
+ set(ALL_TARGETS ${ALL_TARGETS} ${BLASLIB})
endif()
+if(LAPACK)
if(NOT LATESTLAPACK_FOUND)
- set(ALL_TARGETS ${ALL_TARGETS} lapack)
+ set(ALL_TARGETS ${ALL_TARGETS} ${LAPACKLIB})
+ set(BUILD_LAPACK ON)
+endif()
endif()
if(BUILD_TESTING OR LAPACKE_WITH_TMG)
- set(ALL_TARGETS ${ALL_TARGETS} tmglib)
+ set(ALL_TARGETS ${ALL_TARGETS} ${TMGLIB})
endif()
+if(LAPACK)
# Export lapack targets, not including lapacke, from the
# install tree, if any.
set(_lapack_config_install_guard_target "")
-@@ -395,6 +419,7 @@
+@@ -471,6 +496,7 @@ if(ALL_TARGETS)
# lapack-config.cmake to load targets from the install tree.
list(GET ALL_TARGETS 0 _lapack_config_install_guard_target)
endif()
@@ -84,70 +82,22 @@
# Include cblas in targets exported from the build tree.
if(CBLAS)
-@@ -406,6 +431,7 @@
- set(ALL_TARGETS ${ALL_TARGETS} lapacke)
+@@ -482,6 +508,8 @@ if(LAPACKE)
+ set(ALL_TARGETS ${ALL_TARGETS} ${LAPACKELIB})
endif()
-+if(LAPACK)
++if(BUILD_LAPACK)
++
# Export lapack and lapacke targets from the build tree, if any.
set(_lapack_config_build_guard_target "")
if(ALL_TARGETS)
-@@ -415,32 +441,34 @@
- # for lapack-config.cmake to load targets from the build tree.
- list(GET ALL_TARGETS 0 _lapack_config_build_guard_target)
- endif()
-+endif()
-
--configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-build.cmake.in
-- ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)
--
-+if(BUILD_LAPACK)
-+ configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-build.cmake.in
-+ ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)
-
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY)
-+ 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}
-- COMPONENT Development
-- )
-+ ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc
-+ DESTINATION ${PKG_CONFIG_DIR}
-+ COMPONENT Development
-+ )
-
--configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-install.cmake.in
-- ${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake @ONLY)
-+ configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-install.cmake.in
-+ ${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake @ONLY)
-
--include(CMakePackageConfigHelpers)
--write_basic_package_version_file(
-- ${LAPACK_BINARY_DIR}/lapack-config-version.cmake
-- VERSION ${LAPACK_VERSION}
-- COMPATIBILITY SameMajorVersion
-- )
-+ include(CMakePackageConfigHelpers)
-+ write_basic_package_version_file(
Home |
Main Index |
Thread Index |
Old Index