forked from Lainports/freebsd-ports
Update to 5.2.0.
PR: 209298 Submitted by: tkato432 yahoo com Sponsored by: Absolight
This commit is contained in:
parent
2fc6fe3088
commit
56081eabe2
3 changed files with 13 additions and 25 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= superlu
|
||||
PORTVERSION= 5.1.1
|
||||
PORTVERSION= 5.2.0
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ \
|
||||
http://crd-legacy.lbl.gov/~xiaoye/:doc
|
||||
|
|
@ -13,22 +13,21 @@ MAINTAINER= ports@FreeBSD.org
|
|||
COMMENT= Library of routines for performing sparse factorization
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKDIR}/LICENSE
|
||||
LICENSE_FILE= ${WRKSRC}/License.txt
|
||||
|
||||
USES= cmake:outsource fortran
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/SuperLU_${PORTVERSION}
|
||||
PLIST_SUB= P_VERSION="${PORTVERSION}" P_VER="${P_VER}"
|
||||
PLIST_SUB= P_VERSION="${P_VERSION}" P_VER="${P_VER}"
|
||||
|
||||
CMAKE_ARGS= -DUSE_XSDK_DEFAULTS:BOOL=ON \
|
||||
-Denable_examples:BOOL=OFF \
|
||||
-Denable_tests:BOOL=OFF
|
||||
-Denable_examples:BOOL=OFF
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_DEFINE= DOCS TEST
|
||||
OPTIONS_SINGLE= BLAS
|
||||
OPTIONS_SINGLE_BLAS= ATLAS GOTOBLAS REFERENCE
|
||||
OPTIONS_DEFAULT= REFERENCE
|
||||
|
|
@ -44,26 +43,19 @@ GOTOBLAS_CMAKE_ARGS= -DBLA_VENDOR:STRING="Goto"
|
|||
REFERENCE_DESC= Reference blas implementation
|
||||
REFERENCE_USES= blaslapack
|
||||
REFERENCE_CMAKE_ARGS= -DBLA_VENDOR:STRING="Generic"
|
||||
TEST_CMAKE_ARGS= -Denable_tests:BOOL=ON
|
||||
|
||||
P_VER= ${PORTVERSION:C/^([[:alnum:]]+).*/\1/}
|
||||
P_VERSION= 5.1.1
|
||||
P_VER= ${P_VERSION:C/^([[:alnum:]]+).*/\1/}
|
||||
SLU_DOCS= SLU_general.ps.gz simax-29176.pdf
|
||||
|
||||
post-extract:
|
||||
@${HEAD} -32 ${WRKSRC}/README > ${LICENSE_FILE}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/CMAKE_C_FLAGS_RELEASE/s|^|#|' ${WRKSRC}/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/FFLAGS/s|FATAL_ERROR|WARNING|' ${WRKSRC}/XSDKDefaults.cmake
|
||||
'/FFLAGS/s|FATAL_ERROR|WARNING|' ${WRKSRC}/cmake/XSDKDefaults.cmake
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|\(/include\)$$|/\1/superlu|' ${WRKSRC}/SRC/CMakeLists.txt
|
||||
|
||||
post-install:
|
||||
${LN} -sf libsuperlu_${PORTVERSION}.so \
|
||||
${STAGEDIR}${PREFIX}/lib/libsuperlu.so.${P_VER}
|
||||
${LN} -sf libsuperlu_${PORTVERSION}.so \
|
||||
${STAGEDIR}${PREFIX}/lib/libsuperlu.so
|
||||
's|\(/include\)$$|\1/superlu|' ${WRKSRC}/SRC/CMakeLists.txt
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
|
|
@ -72,8 +64,4 @@ post-install-DOCS-on:
|
|||
(cd ${WRKSRC}/DOC && ${COPYTREE_SHARE} "html ug.pdf" \
|
||||
${STAGEDIR}${DOCSDIR})
|
||||
|
||||
do-test:
|
||||
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} testing )
|
||||
(cd ${WRKSRC}/TESTING && ${CAT} *.out )
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
SHA256 (superlu/superlu_5.1.1.tar.gz) = cec5022c8dc16e38e5c8bc92ed196144fe58864bd1c5ad73fb698398308f8065
|
||||
SIZE (superlu/superlu_5.1.1.tar.gz) = 2746173
|
||||
SHA256 (superlu/superlu_5.2.0.tar.gz) = 065bb8bfea79f5d3ec09c2d091ec79050fcfc123fb2f38818d95f4d8f9e7ff6c
|
||||
SIZE (superlu/superlu_5.2.0.tar.gz) = 2542410
|
||||
SHA256 (superlu/SLU_general.ps.gz) = 00d00cedfadd96a42014d22b30c0cc451a575d8d309774519068b11d4be1ebe5
|
||||
SIZE (superlu/SLU_general.ps.gz) = 89463
|
||||
SHA256 (superlu/simax-29176.pdf) = 1411a3976b932a834157064dbaf0cdda10763f321bae10eb6f18925432250226
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ include/superlu/superlu_enum_consts.h
|
|||
include/superlu/supermatrix.h
|
||||
lib/libsuperlu.so
|
||||
lib/libsuperlu.so.%%P_VER%%
|
||||
lib/libsuperlu_%%P_VERSION%%.so
|
||||
lib/libsuperlu.so.%%P_VERSION%%
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue