mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
math/*: upgrade blas, lapack, cblas, xlapack and lapacke to 3.12.0
Release notes at <https://github.com/Reference-LAPACK/lapack/releases/tag/v3.12.0> PR: 275860 Exp-run by: antoine@
This commit is contained in:
parent
3eba17d824
commit
cc1715e889
4 changed files with 22 additions and 14 deletions
|
@ -1,15 +1,15 @@
|
|||
PORTNAME?= lapack
|
||||
PORTVERSION= 3.11.0
|
||||
PORTVERSION= 3.12.0
|
||||
.if !(defined(BLAS_SLAVEPORT) || defined(CBLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT))
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 0
|
||||
.else
|
||||
PORTREVISION?= 1 # Never remove this line, keep PORTREVISION?=0 in case.
|
||||
PORTREVISION?= 0 # Never remove this line, keep PORTREVISION?=0 in case.
|
||||
.endif
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= https://github.com/Reference-LAPACK/lapack/archive/refs/tags/:src \
|
||||
http://www.netlib.org/lapack/:man \
|
||||
LOCAL/thierry/lapack-${PORTVERSION}/:man
|
||||
DISTFILES= v${PORTVERSION:R}${EXTRACT_SUFX}:src
|
||||
DISTFILES= v${PORTVERSION}${EXTRACT_SUFX}:src
|
||||
.if make(makesum) || !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT))
|
||||
DISTFILES+= manpages.tgz:man
|
||||
.endif
|
||||
|
@ -22,7 +22,7 @@ WWW?= https://www.netlib.org/lapack/
|
|||
LICENSE?= BSD3CLAUSE
|
||||
|
||||
USES= cmake:testing cpe fortran
|
||||
WRKSRC= ${WRKDIR}/lapack-${PORTVERSION:R}
|
||||
WRKSRC= ${WRKDIR}/lapack-${PORTVERSION}
|
||||
# The actual math/scilab needs deprecated functions - to be removed later
|
||||
CMAKE_ON= BUILD_SHARED_LIBS BUILD_DEPRECATED
|
||||
USE_LDCONFIG= yes
|
||||
|
@ -73,6 +73,7 @@ PLIST_SUB+= BLAS="@comment " CBLAS="@comment " LAPACK="@comment " XLAPACK="" LA
|
|||
LIB_DEPENDS+= libblas.so:math/blas
|
||||
. if defined(MAINTAINER_MODE)
|
||||
USES+= python:build,test
|
||||
BINARY_ALIAS+= python3=${PYTHON_CMD}
|
||||
. endif
|
||||
CMAKE_ON+= USE_OPTIMIZED_BLAS BUILD_TESTING
|
||||
CMAKE_ARGS+= -DBLAS_LIBRARIES="${LOCALBASE}/lib/libblas.so"
|
||||
|
@ -101,10 +102,6 @@ pre-configure:
|
|||
${WRKSRC}/Makefile
|
||||
${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
|
||||
${SED} -i ".bak" -e 's|^ifdef|.ifdef|;s|^endif|.endif|'
|
||||
.if defined(MAINTAINER_MODE)
|
||||
${REINPLACE_CMD} -e 's|PythonInterp 2.7|PythonInterp ${PYTHON_VER}|' \
|
||||
${WRKSRC}/CMakeLists.txt
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
.if defined(BLAS_SLAVEPORT)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
TIMESTAMP = 1668549742
|
||||
SHA256 (lapack-3.11.0/v3.11.tar.gz) = 5a5b3bac27709d8c66286b7a0d1d7bf2d7170ec189a1a756fdf812c97aa7fd10
|
||||
SIZE (lapack-3.11.0/v3.11.tar.gz) = 7723909
|
||||
SHA256 (lapack-3.11.0/manpages.tgz) = 6e3aff37f95c6a5af48b9395af2ade102213ad391d1cbe1a1638c815925950c2
|
||||
SIZE (lapack-3.11.0/manpages.tgz) = 2478363
|
||||
TIMESTAMP = 1703076157
|
||||
SHA256 (lapack-3.12.0/v3.12.0.tar.gz) = eac9570f8e0ad6f30ce4b963f4f033f0f643e7c3912fc9ee6cd99120675ad48b
|
||||
SIZE (lapack-3.12.0/v3.12.0.tar.gz) = 7933607
|
||||
SHA256 (lapack-3.12.0/manpages.tgz) = 342db80461de2c0f10848a3f338ee6e7511b417f459600a7e75ad4dc4bf05f5a
|
||||
SIZE (lapack-3.12.0/manpages.tgz) = 5396817
|
||||
|
|
10
math/lapack/files/patch-CMakeLists.txt
Normal file
10
math/lapack/files/patch-CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- CMakeLists.txt.orig 2023-11-24 20:41:15 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -223,6 +223,7 @@ if(BLAS_LIBRARIES)
|
||||
|
||||
# Check the usage of the user provided BLAS libraries
|
||||
if(BLAS_LIBRARIES)
|
||||
+ enable_language(Fortran)
|
||||
include(CheckFortranFunctionExists)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES})
|
||||
CHECK_FORTRAN_FUNCTION_EXISTS("dgemm" BLAS_FOUND)
|
|
@ -1,4 +1,5 @@
|
|||
%%CBLAS%%include/cblas/cblas.h
|
||||
%%CBLAS%%include/cblas/cblas_64.h
|
||||
%%CBLAS%%include/cblas/cblas_f77.h
|
||||
%%CBLAS%%include/cblas/cblas_mangling.h
|
||||
%%LAPACKE%%include/lapacke/lapack.h
|
||||
|
|
Loading…
Add table
Reference in a new issue