diff --git a/math/suitesparse-umfpack/Makefile b/math/suitesparse-umfpack/Makefile new file mode 100644 index 0000000000000..9e1e4bf6d660f --- /dev/null +++ b/math/suitesparse-umfpack/Makefile @@ -0,0 +1,26 @@ +# Created by: Thierry Thomas () + +PORTNAME= UMFPACK +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} +USE_LDCONFIG= yes + +.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" +.include diff --git a/math/suitesparse-umfpack/files/patch-UMFPACK_Demo_Makefile b/math/suitesparse-umfpack/files/patch-UMFPACK_Demo_Makefile new file mode 100644 index 0000000000000..df69a4e05eac1 --- /dev/null +++ b/math/suitesparse-umfpack/files/patch-UMFPACK_Demo_Makefile @@ -0,0 +1,16 @@ +--- UMFPACK/Demo/Makefile.orig 2021-05-17 01:04:52 UTC ++++ UMFPACK/Demo/Makefile +@@ -31,13 +31,7 @@ LIBS = $(LDLIBS) -L../../lib -lumfpack -lamd -lsuitesp + $(LIB_WITH_CHOLMOD) $(LAPACK) $(BLAS) + + libs: metis +- ( cd ../../SuiteSparse_config ; $(MAKE) ) +- ( cd ../../AMD ; $(MAKE) library ) + ( cd ../Lib ; $(MAKE) ) +- - ( cd ../../CHOLMOD && $(MAKE) library ) +- - ( cd ../../COLAMD && $(MAKE) library ) +- - ( cd ../../CCOLAMD ; $(MAKE) library ) +- - ( cd ../../CAMD ; $(MAKE) library ) + + metis: ../../include/metis.h + diff --git a/math/suitesparse-umfpack/pkg-descr b/math/suitesparse-umfpack/pkg-descr new file mode 100644 index 0000000000000..b820d3992ef71 --- /dev/null +++ b/math/suitesparse-umfpack/pkg-descr @@ -0,0 +1,5 @@ +This port installs the module UMFPACK of SuiteSparse. + +UMFPACK is a set of routines solving sparse linear systems via LU factorization. + +WWW: http://faculty.cse.tamu.edu/davis/suitesparse.html diff --git a/math/suitesparse-umfpack/pkg-plist b/math/suitesparse-umfpack/pkg-plist new file mode 100644 index 0000000000000..6e4a239ac24c2 --- /dev/null +++ b/math/suitesparse-umfpack/pkg-plist @@ -0,0 +1,39 @@ +include/suitesparse/umfpack.h +include/suitesparse/umfpack_col_to_triplet.h +include/suitesparse/umfpack_defaults.h +include/suitesparse/umfpack_free_numeric.h +include/suitesparse/umfpack_free_symbolic.h +include/suitesparse/umfpack_get_determinant.h +include/suitesparse/umfpack_get_lunz.h +include/suitesparse/umfpack_get_numeric.h +include/suitesparse/umfpack_get_symbolic.h +include/suitesparse/umfpack_global.h +include/suitesparse/umfpack_load_numeric.h +include/suitesparse/umfpack_load_symbolic.h +include/suitesparse/umfpack_numeric.h +include/suitesparse/umfpack_qsymbolic.h +include/suitesparse/umfpack_report_control.h +include/suitesparse/umfpack_report_info.h +include/suitesparse/umfpack_report_matrix.h +include/suitesparse/umfpack_report_numeric.h +include/suitesparse/umfpack_report_perm.h +include/suitesparse/umfpack_report_status.h +include/suitesparse/umfpack_report_symbolic.h +include/suitesparse/umfpack_report_triplet.h +include/suitesparse/umfpack_report_vector.h +include/suitesparse/umfpack_save_numeric.h +include/suitesparse/umfpack_save_symbolic.h +include/suitesparse/umfpack_scale.h +include/suitesparse/umfpack_solve.h +include/suitesparse/umfpack_symbolic.h +include/suitesparse/umfpack_tictoc.h +include/suitesparse/umfpack_timer.h +include/suitesparse/umfpack_transpose.h +include/suitesparse/umfpack_triplet_to_col.h +include/suitesparse/umfpack_wsolve.h +lib/libumfpack.so +lib/libumfpack.so.5 +lib/libumfpack.so.5.7.9 +%%PORTDOCS%%%%DOCSDIR%%/UMFPACK_QuickStart.pdf +%%PORTDOCS%%%%DOCSDIR%%/UMFPACK_README.txt +%%PORTDOCS%%%%DOCSDIR%%/UMFPACK_UserGuide.pdf