mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
math/suitesparse*: force PORTNAME in lowercase
Force PORTNAME in lowercase, even if upstream uses uppercases. Requested by: sunpoet@ and danfe@
This commit is contained in:
parent
7f2f962b4a
commit
38e42a5646
19 changed files with 83 additions and 73 deletions
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= AMD
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.4.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -11,7 +11,7 @@ LICENSE= BSD3CLAUSE
|
|||
USES= fortran localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= AMD
|
||||
ALL_TARGET+= fortran
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= BTF
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 1.2.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -11,7 +11,7 @@ LICENSE= LGPL21+
|
|||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= BTF
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= CAMD
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.4.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -11,7 +11,7 @@ LICENSE= BSD3CLAUSE
|
|||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= CAMD
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= CCOLAMD
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.9.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -11,7 +11,7 @@ LICENSE= BSD3CLAUSE
|
|||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= CCOLAMD
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= CHOLMOD
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 3.0.14
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -17,7 +17,8 @@ LIB_DEPENDS= libmetis.so:math/metis \
|
|||
USES= localbase:ldflags
|
||||
BLAS_NEEDED= yes
|
||||
OMP_NEEDED= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
|
||||
MPORTNAME= CHOLMOD
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= COLAMD
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.9.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -11,7 +11,7 @@ LICENSE= BSD3CLAUSE
|
|||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= COLAMD
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= config
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= ${SSPVERSION}
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -10,7 +10,7 @@ LICENSE= GPLv2+
|
|||
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/SuiteSparse_config
|
||||
MPORTNAME= config
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= CSparse
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 3.2.0
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -10,7 +10,7 @@ LICENSE= LGPL21+
|
|||
|
||||
USES= localbase:ldflags
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= CSparse
|
||||
USE_LDCONFIG= yes
|
||||
PLIST_FILES= # empty
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= CXSparse
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 3.2.0
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -11,7 +11,7 @@ LICENSE= LGPL21+
|
|||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= CXSparse
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= GraphBLAS
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 5.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math
|
||||
|
@ -11,7 +11,8 @@ LICENSE= APACHE20
|
|||
|
||||
USES= cmake:insource localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
|
||||
MPORTNAME= GraphBLAS
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PORTDOCS= CSC20_OpenMP_GraphBLAS.pdf GraphBLAS_API_C_v13.pdf \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= KLU
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 1.3.9
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -18,7 +18,8 @@ LIB_DEPENDS= libmetis.so:math/metis \
|
|||
|
||||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
|
||||
MPORTNAME= KLU
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= LDL
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.2.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -12,7 +12,8 @@ LIB_DEPENDS= libamd.so:math/suitesparse-amd
|
|||
|
||||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
|
||||
MPORTNAME= LDL
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= Mongoose
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.0.4
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -10,7 +10,7 @@ LICENSE= GPLv3
|
|||
|
||||
USES= cmake:insource localbase:ldflags
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= Mongoose
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CONFLICTS_INSTALL= mongoose # bin/mongoose
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= RBio
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.2.6
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -10,7 +10,7 @@ LICENSE= GPLv2+
|
|||
|
||||
USES= localbase:ldflags
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= RBio
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= SLIP_LU
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 1.0.2
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -18,7 +18,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \
|
|||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= SLIP_LU
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= SPQR
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 2.0.9
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -15,12 +15,12 @@ LIB_DEPENDS= libamd.so:math/suitesparse-amd \
|
|||
libcholmod.so:math/suitesparse-cholmod
|
||||
|
||||
USES= localbase:ldflags
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
USE_LDCONFIG= yes
|
||||
BLAS_NEEDED= yes
|
||||
OMP_NEEDED= yes
|
||||
|
||||
MPORTNAME= SPQR
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
# See https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/72 and PR 252651
|
||||
#OPTIONS_DEFINE+= TBB
|
||||
#OPTIONS_DEFAULT+= TBB
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= UMFPACK
|
||||
PORTNAME= ${MPORTNAME:tl}
|
||||
PORTVERSION= 5.7.9
|
||||
CATEGORIES= math
|
||||
|
||||
|
@ -19,7 +19,7 @@ USES= localbase:ldflags
|
|||
BLAS_NEEDED= yes
|
||||
OMP_NEEDED= yes
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
MPORTNAME= UMFPACK
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
|
|
|
@ -9,23 +9,23 @@ COMMENT= Set of packages for sparse matrix calculation
|
|||
|
||||
LICENSE= GPLv2+
|
||||
|
||||
RUN_DEPENDS= suitesparse-AMD>0:math/suitesparse-amd \
|
||||
suitesparse-BTF>0:math/suitesparse-btf \
|
||||
suitesparse-CCOLAMD>0:math/suitesparse-ccolamd \
|
||||
suitesparse-CHOLMOD>0:math/suitesparse-cholmod \
|
||||
suitesparse-COLAMD>0:math/suitesparse-colamd \
|
||||
RUN_DEPENDS= suitesparse-amd>0:math/suitesparse-amd \
|
||||
suitesparse-btf>0:math/suitesparse-btf \
|
||||
suitesparse-ccolamd>0:math/suitesparse-ccolamd \
|
||||
suitesparse-cholmod>0:math/suitesparse-cholmod \
|
||||
suitesparse-colamd>0:math/suitesparse-colamd \
|
||||
suitesparse-config>0:math/suitesparse-config \
|
||||
suitesparse-CXSparse>0:math/suitesparse-cxsparse \
|
||||
suitesparse-GraphBLAS>0:math/suitesparse-graphblas \
|
||||
suitesparse-KLU>0:math/suitesparse-klu \
|
||||
suitesparse-LDL>0:math/suitesparse-ldl \
|
||||
suitesparse-Mongoose>0:math/suitesparse-mongoose \
|
||||
suitesparse-RBio>0:math/suitesparse-rbio \
|
||||
suitesparse-SLIP_LU>0:math/suitesparse-slip_lu \
|
||||
suitesparse-SPQR>0:math/suitesparse-spqr \
|
||||
suitesparse-UMFPACK>0:math/suitesparse-umfpack
|
||||
suitesparse-cxsparse>0:math/suitesparse-cxsparse \
|
||||
suitesparse-graphblas>0:math/suitesparse-graphblas \
|
||||
suitesparse-klu>0:math/suitesparse-klu \
|
||||
suitesparse-ldl>0:math/suitesparse-ldl \
|
||||
suitesparse-mongoose>0:math/suitesparse-mongoose \
|
||||
suitesparse-rbio>0:math/suitesparse-rbio \
|
||||
suitesparse-slip_lu>0:math/suitesparse-slip_lu \
|
||||
suitesparse-spqr>0:math/suitesparse-spqr \
|
||||
suitesparse-umfpack>0:math/suitesparse-umfpack
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
RUN_DEPENDS+= suitesparse-CSparse>0:math/suitesparse-csparse
|
||||
RUN_DEPENDS+= suitesparse-csparse>0:math/suitesparse-csparse
|
||||
.endif
|
||||
|
||||
USES= metaport
|
||||
|
|
|
@ -18,14 +18,20 @@ DISTNAME= ${DISTVERSIONPREFIX}${SSPVERSION}
|
|||
DIST_SUBDIR= ${SSPNAME}
|
||||
WRKSRC= ${WRKDIR}/${GH_PROJECT}-${SSPVERSION}
|
||||
|
||||
.if ${PORTNAME} != config && \
|
||||
${PORTNAME} != CSparse && \
|
||||
${PORTNAME} != ssget
|
||||
.if ${MPORTNAME} != config
|
||||
BUILD_WRKSRC= ${WRKSRC}/${MPORTNAME}
|
||||
.else
|
||||
BUILD_WRKSRC= ${WRKSRC}/SuiteSparse_config
|
||||
.endif
|
||||
|
||||
.if ${MPORTNAME} != config && \
|
||||
${MPORTNAME} != CSparse && \
|
||||
${MPORTNAME} != ssget
|
||||
LIB_DEPENDS+= libsuitesparseconfig.so:math/suitesparse-config
|
||||
.endif
|
||||
.if ${PORTNAME} != config && \
|
||||
${PORTNAME} != BTF && \
|
||||
${PORTNAME} != ssget
|
||||
.if ${MPORTNAME} != config && \
|
||||
${MPORTNAME} != BTF && \
|
||||
${MPORTNAME} != ssget
|
||||
OPTIONS_DEFINE+=DEMOS
|
||||
.else
|
||||
ALL_TARGET= library
|
||||
|
@ -80,7 +86,7 @@ OPENMP_VARS= OPENMP=gcc-
|
|||
.endif
|
||||
|
||||
DEMOS_DESC= Build the demonstrations
|
||||
.if ${PORTNAME} == Mongoose
|
||||
.if ${MPORTNAME} == Mongoose
|
||||
DEMOS_ALL_TARGET= default
|
||||
.else
|
||||
DEMOS_ALL_TARGET= all
|
||||
|
@ -95,20 +101,20 @@ LDFLAGS+= -s
|
|||
post-extract:
|
||||
${RM} -r ${WRKSRC}/metis-*
|
||||
|
||||
.if ${PORTNAME} == AMD || \
|
||||
${PORTNAME} == CAMD || \
|
||||
${PORTNAME} == CCOLAMD || \
|
||||
${PORTNAME} == CHOLMOD || \
|
||||
${PORTNAME} == COLAMD || \
|
||||
${PORTNAME} == CSparse || \
|
||||
${PORTNAME} == CXSparse_newfiles || \
|
||||
${PORTNAME} == CXSparse || \
|
||||
${PORTNAME} == GPUQREngine || \
|
||||
${PORTNAME} == KLU || \
|
||||
${PORTNAME} == LDL || \
|
||||
${PORTNAME} == RBio || \
|
||||
${PORTNAME} == SPQR || \
|
||||
${PORTNAME} == UMFPACK
|
||||
.if ${MPORTNAME} == AMD || \
|
||||
${MPORTNAME} == CAMD || \
|
||||
${MPORTNAME} == CCOLAMD || \
|
||||
${MPORTNAME} == CHOLMOD || \
|
||||
${MPORTNAME} == COLAMD || \
|
||||
${MPORTNAME} == CSparse || \
|
||||
${MPORTNAME} == CXSparse_newfiles || \
|
||||
${MPORTNAME} == CXSparse || \
|
||||
${MPORTNAME} == GPUQREngine || \
|
||||
${MPORTNAME} == KLU || \
|
||||
${MPORTNAME} == LDL || \
|
||||
${MPORTNAME} == RBio || \
|
||||
${MPORTNAME} == SPQR || \
|
||||
${MPORTNAME} == UMFPACK
|
||||
pre-configure:
|
||||
${REINPLACE_CMD} -e 's|-I../../include|-I${STAGEDIR}${PREFIX}/include/suitesparse -I../../SuiteSparse_config -I../../AMD/Include -I../../COLAMD/Include -I../../BTF/Include -I../../CHOLMOD/Include|;\
|
||||
s|-lsuitesparseconfig|-lsuitesparseconfig -L${LOCALBASE}/lib|' \
|
||||
|
@ -118,7 +124,7 @@ pre-configure:
|
|||
do-configure: # skip USES=cmake
|
||||
|
||||
post-install:
|
||||
.if ! ${PORTNAME} == config
|
||||
.if ! ${MPORTNAME} == config
|
||||
@${RM} ${STAGEDIR}${DOCSDIR}/SUITESPARSECONFIG_README.txt \
|
||||
${STAGEDIR}${PREFIX}/include/suitesparse/SuiteSparse_config.h
|
||||
.endif
|
||||
|
|
Loading…
Add table
Reference in a new issue