diff --git a/math/suitesparse-amd/Makefile b/math/suitesparse-amd/Makefile index d48318342f9a..c4f38f62d1b4 100644 --- a/math/suitesparse-amd/Makefile +++ b/math/suitesparse-amd/Makefile @@ -1,24 +1,24 @@ # Created by: Thierry Thomas () -PORTNAME= AMD +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.4.6 CATEGORIES= math COMMENT= Symmetric approximate minimum degree LICENSE= BSD3CLAUSE USES= fortran localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= AMD ALL_TARGET+= fortran USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage: ${INSTALL_DATA} ${BUILD_WRKSRC}/Lib/libamdf77.a \ ${STAGEDIR}${PREFIX}/lib/ .include diff --git a/math/suitesparse-btf/Makefile b/math/suitesparse-btf/Makefile index f6bcb1f8b5a9..32940f4706c4 100644 --- a/math/suitesparse-btf/Makefile +++ b/math/suitesparse-btf/Makefile @@ -1,18 +1,18 @@ # Created by: Thierry Thomas () -PORTNAME= BTF +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 1.2.6 CATEGORIES= math COMMENT= Permutation to block triangular form LICENSE= LGPL21+ USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= BTF USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-camd/Makefile b/math/suitesparse-camd/Makefile index 9e4658b42030..640c37d84c22 100644 --- a/math/suitesparse-camd/Makefile +++ b/math/suitesparse-camd/Makefile @@ -1,18 +1,18 @@ # Created by: Thierry Thomas () -PORTNAME= CAMD +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.4.6 CATEGORIES= math COMMENT= Symmetric approximate minimum degree LICENSE= BSD3CLAUSE USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= CAMD USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-ccolamd/Makefile b/math/suitesparse-ccolamd/Makefile index 252880b3bded..c731e3589701 100644 --- a/math/suitesparse-ccolamd/Makefile +++ b/math/suitesparse-ccolamd/Makefile @@ -1,18 +1,18 @@ # Created by: Thierry Thomas () -PORTNAME= CCOLAMD +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.9.6 CATEGORIES= math COMMENT= Constrained column approximate minimum degree ordering LICENSE= BSD3CLAUSE USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= CCOLAMD USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-cholmod/Makefile b/math/suitesparse-cholmod/Makefile index 682d15ea7e2a..12688bb23b65 100644 --- a/math/suitesparse-cholmod/Makefile +++ b/math/suitesparse-cholmod/Makefile @@ -1,24 +1,25 @@ # Created by: Thierry Thomas () -PORTNAME= CHOLMOD +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 3.0.14 CATEGORIES= math COMMENT= Sparse CHOLesky MODification package LICENSE= LGPL21+ LIB_DEPENDS= libmetis.so:math/metis \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd 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" .include diff --git a/math/suitesparse-colamd/Makefile b/math/suitesparse-colamd/Makefile index 1417606fa072..fdd6765eeca3 100644 --- a/math/suitesparse-colamd/Makefile +++ b/math/suitesparse-colamd/Makefile @@ -1,18 +1,18 @@ # Created by: Thierry Thomas () -PORTNAME= COLAMD +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.9.6 CATEGORIES= math COMMENT= Column approximate minimum degree ordering algorithm LICENSE= BSD3CLAUSE USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= COLAMD USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-config/Makefile b/math/suitesparse-config/Makefile index ef426c7cf8ae..62af94ee1f31 100644 --- a/math/suitesparse-config/Makefile +++ b/math/suitesparse-config/Makefile @@ -1,23 +1,23 @@ # Created by: Thierry Thomas () -PORTNAME= config +PORTNAME= ${MPORTNAME:tl} PORTVERSION= ${SSPVERSION} CATEGORIES= math COMMENT= Common library for SuiteSparse LICENSE= GPLv2+ OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/SuiteSparse_config +MPORTNAME= config USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md \ ${STAGEDIR}${DOCSDIR}/SuiteSparse_README.md .include diff --git a/math/suitesparse-csparse/Makefile b/math/suitesparse-csparse/Makefile index a42b1365bf37..701eb4317adc 100644 --- a/math/suitesparse-csparse/Makefile +++ b/math/suitesparse-csparse/Makefile @@ -1,26 +1,26 @@ # Created by: Thierry Thomas () -PORTNAME= CSparse +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 3.2.0 CATEGORIES= math COMMENT= Concise Sparse Matrix package LICENSE= LGPL21+ USES= localbase:ldflags -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= CSparse USE_LDCONFIG= yes PLIST_FILES= # empty # For system-wide installation, the author recommends that you install # CXSparse instead. # The CSparse library is meant for personal experimentation. The 'make # install' in this Makefile only installs a static compiled library in # CSparse/Lib. It does not install it for system-wide usage. do-install: ${DO_NADA} .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-cxsparse/Makefile b/math/suitesparse-cxsparse/Makefile index 8b3c347a8ae3..a470c2b850d0 100644 --- a/math/suitesparse-cxsparse/Makefile +++ b/math/suitesparse-cxsparse/Makefile @@ -1,18 +1,18 @@ # Created by: Thierry Thomas () -PORTNAME= CXSparse +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 3.2.0 CATEGORIES= math COMMENT= Extended version of CSparse LICENSE= LGPL21+ USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= CXSparse USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-graphblas/Makefile b/math/suitesparse-graphblas/Makefile index 092e10bda4ef..b5b418ac284e 100644 --- a/math/suitesparse-graphblas/Makefile +++ b/math/suitesparse-graphblas/Makefile @@ -1,33 +1,34 @@ # Created by: Thierry Thomas () -PORTNAME= GraphBLAS +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 5.0.5 PORTREVISION= 1 CATEGORIES= math COMMENT= Graph algorithms in the language of linear algebra 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 \ GraphBLAS_UserGuide.pdf HPEC19.pdf lagraph-grapl19.pdf \ toms_graphblas.pdf .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" pre-configure-OPENMP-off: ${REINPLACE_CMD} -e '/find_package.*OpenMP/d' \ ${WRKSRC}/GraphBLAS/CMakeLists.txt post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/${doc} ${STAGEDIR}${DOCSDIR} .endfor .include diff --git a/math/suitesparse-klu/Makefile b/math/suitesparse-klu/Makefile index f1096b2dcc5e..bf8aa4b2306f 100644 --- a/math/suitesparse-klu/Makefile +++ b/math/suitesparse-klu/Makefile @@ -1,25 +1,26 @@ # Created by: Thierry Thomas () -PORTNAME= KLU +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 1.3.9 CATEGORIES= math COMMENT= Sparse LU factorization, for circuit simulation LICENSE= LGPL21+ LIB_DEPENDS= libmetis.so:math/metis \ libamd.so:math/suitesparse-amd \ libbtf.so:math/suitesparse-btf \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} + +MPORTNAME= KLU USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-ldl/Makefile b/math/suitesparse-ldl/Makefile index ca297ced70d6..570ab4b8c216 100644 --- a/math/suitesparse-ldl/Makefile +++ b/math/suitesparse-ldl/Makefile @@ -1,19 +1,20 @@ # Created by: Thierry Thomas () -PORTNAME= LDL +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.2.6 CATEGORIES= math COMMENT= Simple LDL^T factorization LICENSE= LGPL21+ 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" .include diff --git a/math/suitesparse-mongoose/Makefile b/math/suitesparse-mongoose/Makefile index d78518b7aa6a..a36c8b521fb9 100644 --- a/math/suitesparse-mongoose/Makefile +++ b/math/suitesparse-mongoose/Makefile @@ -1,25 +1,25 @@ # Created by: Thierry Thomas () -PORTNAME= Mongoose +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.0.4 CATEGORIES= math COMMENT= Symmetric approximate minimum degree LICENSE= GPLv3 USES= cmake:insource localbase:ldflags -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= Mongoose USE_LDCONFIG= yes CONFLICTS_INSTALL= mongoose # bin/mongoose .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/Mongoose_UserGuide.pdf \ ${STAGEDIR}${DOCSDIR} .include diff --git a/math/suitesparse-rbio/Makefile b/math/suitesparse-rbio/Makefile index 9d83c4ffcd96..7a43cd304632 100644 --- a/math/suitesparse-rbio/Makefile +++ b/math/suitesparse-rbio/Makefile @@ -1,17 +1,17 @@ # Created by: Thierry Thomas () -PORTNAME= RBio +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.2.6 CATEGORIES= math COMMENT= Read/write sparse matrices LICENSE= GPLv2+ USES= localbase:ldflags -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= RBio USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-slip_lu/Makefile b/math/suitesparse-slip_lu/Makefile index ca39f6955bd9..6aec6b174780 100644 --- a/math/suitesparse-slip_lu/Makefile +++ b/math/suitesparse-slip_lu/Makefile @@ -1,25 +1,25 @@ # Created by: Thierry Thomas () -PORTNAME= SLIP_LU +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 1.0.2 CATEGORIES= math COMMENT= Sparse Left-looking Integer-Preserving LU Factorization LICENSE= GPLv2+ LGPL3+ LICENSE_COMB= dual LICENSE_FILE= ${BUILD_WRKSRC}/License/license.txt LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libamd.so:math/suitesparse-amd \ libcolamd.so:math/suitesparse-colamd USES= localbase:ldflags OMP_NEEDED= yes -BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +MPORTNAME= SLIP_LU USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-spqr/Makefile b/math/suitesparse-spqr/Makefile index 9d0995c8a0ec..9cab4c94bee9 100644 --- a/math/suitesparse-spqr/Makefile +++ b/math/suitesparse-spqr/Makefile @@ -1,32 +1,32 @@ # Created by: Thierry Thomas () -PORTNAME= SPQR +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 2.0.9 CATEGORIES= math COMMENT= Sparse QR factorization LICENSE= GPLv2+ LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd \ 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 #TBB_DESC= Intel threading building blocks #TBB_LIB_DEPENDS= libtbb.so:devel/tbb #TBB_MAKE_ENV= TBB="-ltbb" SPQR_CONFIG="-DHAVE_TBB" .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" .include diff --git a/math/suitesparse-umfpack/Makefile b/math/suitesparse-umfpack/Makefile index 9e1e4bf6d660..9aef333a568a 100644 --- a/math/suitesparse-umfpack/Makefile +++ b/math/suitesparse-umfpack/Makefile @@ -1,26 +1,26 @@ # Created by: Thierry Thomas () -PORTNAME= UMFPACK +PORTNAME= ${MPORTNAME:tl} PORTVERSION= 5.7.9 CATEGORIES= math COMMENT= Sparse multifrontal LU factorization LICENSE= GPLv2+ LIB_DEPENDS= libmetis.so:math/metis \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod 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" .include diff --git a/math/suitesparse/Makefile b/math/suitesparse/Makefile index 67274847faa0..59a3989a8094 100644 --- a/math/suitesparse/Makefile +++ b/math/suitesparse/Makefile @@ -1,33 +1,33 @@ # Created by: Maho Nakata PORTNAME= suitesparse PORTVERSION= 5.10.1 CATEGORIES= math MAINTAINER= fortran@FreeBSD.org 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 .include diff --git a/math/suitesparse/bsd.suitesparse.mk b/math/suitesparse/bsd.suitesparse.mk index 1138901747f1..6d812ba10cfd 100644 --- a/math/suitesparse/bsd.suitesparse.mk +++ b/math/suitesparse/bsd.suitesparse.mk @@ -1,136 +1,142 @@ # Created by: Maho Nakata # # Common elements used by the SuiteSparse modules PKGNAMEPREFIX= suitesparse- SSPNAME= suitesparse SSPVERSION= 5.10.1 DISTVERSIONPREFIX= v MAINTAINER= fortran@FreeBSD.org #USE_GITHUB= yes # Does not work with different versions for modules GH_ACCOUNT= DrTimothyAldenDavis GH_PROJECT= SuiteSparse GH_TAGNAME= ${SSPVERSION} MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/refs/tags/ 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 .endif USES+= gmake DOCSDIR= ${PREFIX}/share/doc/${SSPNAME} MAKE_ENV= BLAS="${BLASLIB}" LAPACK="${LAPACKLIB}" \ OPTIMIZATION="${OPTIMIZATION}" \ MY_METIS_LIB="-lmetis" \ JOBS="${MAKE_JOBS_NUMBER}" \ CMAKE_OPTIONS='${CMAKE_ARGS}' \ INSTALL="${STAGEDIR}${PREFIX}" \ INSTALL_DOC="${STAGEDIR}${DOCSDIR}" \ INSTALL_INCLUDE="${STAGEDIR}${PREFIX}/include/${SSPNAME}" CMAKE_ARGS= -DCMAKE_INSTALL_INCLUDEDIR:PATH="include/${SSPNAME}" \ -DBUILD_GRB_STATIC_LIBRARY:BOOL=ON LDFLAGS+= -L${WRKSRC}/lib # prevent linking with shared libs from the preinstalled older versions INSTALL_TARGET= install # skip USES=cmake INSTALL_WRKSRC= ${BUILD_WRKSRC} # FIXME: wont work if .CURDIR contains spaces DISTINFO_FILE= ${.CURDIR}/../../math/suitesparse/distinfo OPTIONS_DEFINE+= DOCS OPTIMIZED_CFLAGS OPTIONS_DEFAULT+= OPTIMIZED_CFLAGS .if defined(BLAS_NEEDED) OPTIONS_RADIO+= BLAS OPTIONS_RADIO_BLAS+= ATLAS GOTOBLAS NETLIB OPENBLAS OPTIONS_DEFAULT+= OPENBLAS ATLAS_USES= blaslapack:atlas GOTOBLAS_DESC= Goto blas implementation GOTOBLAS_USES= blaslapack:gotoblas NETLIB_USES= blaslapack:netlib OPENBLAS_USES= blaslapack:openblas .endif .if defined(OMP_NEEDED) OPTIONS_DEFINE+= OPENMP OPTIONS_EXCLUDE_aarch64= OPENMP OPTIONS_DEFAULT+= OPENMP OPENMP_MAKE_ENV_OFF= CFOPENMP= . if !exists(/usr/include/omp.h) # XXX ports/199603: LLVM openmp in base doesn't support armv6, armv7 yet OPENMP_VARS= OPENMP=gcc- . endif .endif DEMOS_DESC= Build the demonstrations -.if ${PORTNAME} == Mongoose +.if ${MPORTNAME} == Mongoose DEMOS_ALL_TARGET= default .else DEMOS_ALL_TARGET= all .endif DEMOS_ALL_TARGET_OFF= library .if !defined(WITH_DEBUG) OPTIMIZED_CFLAGS_VARS= OPTIMIZATION="-O3" LDFLAGS+= -s .endif 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|' \ ${BUILD_WRKSRC}/Demo/Makefile .endif 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 .include .if ${ARCH} == i386 # See PR 230888 : Missing 64 bit atomic functions for i386 USE_GCC= yes LDFLAGS+= -latomic .elif defined(PPC_ABI) && ${PPC_ABI} == ELFv1 USE_GCC= yes .else USES+= compiler:c++11-lib .endif