diff --git a/math/superlu-mt/Makefile b/math/superlu-mt/Makefile index 09ebd1ce6685..92b4878557ac 100644 --- a/math/superlu-mt/Makefile +++ b/math/superlu-mt/Makefile @@ -1,56 +1,61 @@ PORTNAME= superlu-mt DISTVERSIONPREFIX= v DISTVERSION= 4.0.2 +PORTREVISION= 1 CATEGORIES= math -MAINTAINER= siva@FreeBSD.org +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= b121cf0fcafbd10a1ca18c8d062d54cd68bbae9d.patch:-p1 # add THREAD_API cmake option + +MAINTAINER= yuri@FreeBSD.org COMMENT= Library of routines for performing sparse factorization WWW= https://portal.nersc.gov/project/sparse/superlu/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/License.txt USES= cmake pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= xiaoyeli GH_PROJECT= superlu_mt CMAKE_ON= BUILD_SHARED_LIBS USE_XSDK_DEFAULTS CMAKE_OFF= enable_fortran \ enable_tests \ enable_examples +CMAKE_ARGS= -DTHREAD_API=BOTH LDFLAGS+= -lpthread \ -lm \ ${LAPACKLIB} \ ${BLASLIB} OPTIONS_DEFAULT= REFERENCE OPTIONS_SINGLE= BLAS OPTIONS_SINGLE_BLAS= ATLAS OPENBLAS REFERENCE REFERENCE_DESC= Reference BLAS implementation ATLAS_USES= blaslapack:atlas ATLAS_CMAKE_ON= -DBLA_VENDOR:STRING="ATLAS" OPENBLAS_USES= blaslapack:openblas OPENBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="OpenBLAS" REFERENCE_USES= blaslapack REFERENCE_CMAKE_ON= -DBLA_VENDOR:STRING="Generic" post-patch: @${RM} ${WRKSRC}/SRC/sp_coletree.c.orig @${CP} ${FILESDIR}/xerbla.c ${WRKSRC}/TESTING/MATGEN/ do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ -Denable_tests:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test # tests as of 4.0.2: 100% tests passed, 0 tests failed out of 48 .include diff --git a/math/superlu-mt/distinfo b/math/superlu-mt/distinfo index cf5f87e75761..bb1b48c6d112 100644 --- a/math/superlu-mt/distinfo +++ b/math/superlu-mt/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1780719262 +TIMESTAMP = 1780814452 SHA256 (xiaoyeli-superlu_mt-v4.0.2_GH0.tar.gz) = bc6659b145347fa77f90902827c140204c779f297ecb0dddb02a9d71dd2963a9 SIZE (xiaoyeli-superlu_mt-v4.0.2_GH0.tar.gz) = 1800129 +SHA256 (b121cf0fcafbd10a1ca18c8d062d54cd68bbae9d.patch) = e17ef42ea1534f29e70af725f192b389fdab943d60a855133d214b82badce8be +SIZE (b121cf0fcafbd10a1ca18c8d062d54cd68bbae9d.patch) = 4472 diff --git a/math/superlu-mt/pkg-plist b/math/superlu-mt/pkg-plist index 01e15bd187e2..339ce71cb6a9 100644 --- a/math/superlu-mt/pkg-plist +++ b/math/superlu-mt/pkg-plist @@ -1,13 +1,14 @@ include/superlu_mt/colamd.h include/superlu_mt/pxgstrf_synch.h include/superlu_mt/slu_dcomplex.h include/superlu_mt/slu_mt_Cnames.h include/superlu_mt/slu_mt_cdefs.h include/superlu_mt/slu_mt_ddefs.h include/superlu_mt/slu_mt_machines.h include/superlu_mt/slu_mt_sdefs.h include/superlu_mt/slu_mt_util.h include/superlu_mt/slu_mt_zdefs.h include/superlu_mt/slu_scomplex.h include/superlu_mt/supermatrix.h +lib/libsuperlu_mt_OPENMP.so lib/libsuperlu_mt_PTHREAD.so