git: a551a619c230 - main - math/arpack-ng: OPTIONalize blas dependency
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Dec 2024 18:33:06 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a551a619c2300b8ffa5492d4a4ab7b2471db7e04
commit a551a619c2300b8ffa5492d4a4ab7b2471db7e04
Author: Mikhail T. <freebsd-2024@virtual-estates.net>
AuthorDate: 2024-12-19 18:29:18 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-12-19 18:32:59 +0000
math/arpack-ng: OPTIONalize blas dependency
Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
PR: 246938
Approved by: maintainer timeout
---
math/arpack-ng/Makefile | 37 ++++++++++++-------------------------
1 file changed, 12 insertions(+), 25 deletions(-)
diff --git a/math/arpack-ng/Makefile b/math/arpack-ng/Makefile
index bc65a2136fa8..787fece07ecb 100644
--- a/math/arpack-ng/Makefile
+++ b/math/arpack-ng/Makefile
@@ -1,6 +1,6 @@
PORTNAME= arpack-ng
DISTVERSION= 3.9.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
@@ -12,16 +12,15 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libmpich.so:net/mpich # MPI is incremental: it adds the libparpack.so lib, it is a candidate for a sub-package
-USES= autoreconf fortran libtool pkgconfig
+USES= autoreconf fortran libtool localbase pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= opencollab
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-blas="${BLAS}" \
- --with-lapack="${LAPACK}" \
+CONFIGURE_ARGS= --with-blas="${BLASLIB}" \
+ --with-lapack="${LAPACKLIB}" \
--enable-mpi \
--disable-static \
--enable-icb
-LDFLAGS+= -L${LOCALBASE}/lib
TEST_TARGET= check
USE_LDCONFIG= yes
@@ -32,29 +31,17 @@ PORTEXAMPLES= *
CONFLICTS_INSTALL= arpack
-OPTIONS_DEFINE= DOCS EXAMPLES
+OPTIONS_DEFINE= DOCS EXAMPLES
+OPTIONS_SINGLE= BLASLIB
-WITH_BLAS?= blas
-
-.if ${WITH_BLAS} == "gotoblas"
-BLAS= -lgoto2p
-LAPACK= -lgoto2p
-LIB_DEPENDS+= libgoto2p.so:math/gotoblas
-.elif ${WITH_BLAS} == "atlas"
-BLAS= -lptf77blas
-LAPACK= -lalapack -lptcblas
-LIB_DEPENDS+= libptf77blas.so:math/atlas
-.elif ${WITH_BLAS} == "blas"
-BLAS= -lblas
-LAPACK= -llapack
-LIB_DEPENDS+= libblas.so:math/blas \
- liblapack.so:math/lapack
-.else
-IGNORE= unknown value of WITH_BLAS: ${WITH_BLAS}
-.endif
+OPTIONS_SINGLE_BLASLIB= ATLAS NETLIB OPENBLAS
+OPTIONS_DEFAULT= NETLIB
+ATLAS_USES= blaslapack:atlas
+NETLIB_USES= blaslapack:netlib
+OPENBLAS_USES= blaslapack:openblas
pre-configure:
- @cd ${WRKSRC}; ./bootstrap
+ cd ${WRKSRC} && ./bootstrap
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*arpack.so.*.*