Skip to content

Commit

Permalink
math/superlu: fix pkg-config usage and hence BLAS usage
Browse files Browse the repository at this point in the history
  • Loading branch information
thor committed Dec 19, 2023
1 parent 3f1397f commit 025a518
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions math/superlu/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.34 2023/12/19 10:34:09 thor Exp $
# $NetBSD: Makefile,v 1.35 2023/12/19 11:53:01 thor Exp $

DISTNAME= superlu-6.0.1
PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=xiaoyeli/}
GITHUB_TAG= v${PKGVERSION_NOREV}
Expand All @@ -9,18 +10,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://portal.nersc.gov/project/sparse/superlu/
COMMENT= Library for solving large, sparse, nonsymmetric systems of linear equations

USE_TOOLS= cmake pkg-config
USE_CMAKE= yes
USE_LANGUAGES= c fortran
TEST_TARGET= test

CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
# Does not use C interface, also somehow has broken FindBLAS usage.
CMAKE_ARGS+= -DTPL_ENABLE_INTERNAL_BLASLIB=OFF
CMAKE_ARGS+= -DTPL_BLAS_LIBRARIES=${BLAS_LIBS:Q}
# Keeping those here. In future, that should work and replace the
# above. Need upstream bug report.
#CMAKE_ARGS+= -DBLA_PREFER_PKGCONFIG=ON
#CMAKE_ARGS+= -DBLA_PKGCONFIG_BLAS=${BLAS_PC}
CMAKE_ARGS+= -DBLA_PREFER_PKGCONFIG=ON
CMAKE_ARGS+= -DBLA_PKGCONFIG_BLAS=${BLAS_PC}

.include "../../mk/blas.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

0 comments on commit 025a518

Please sign in to comment.