diff options
author | thor <thor@pkgsrc.org> | 2021-04-20 20:37:03 +0000 |
---|---|---|
committer | thor <thor@pkgsrc.org> | 2021-04-20 20:37:03 +0000 |
commit | 32380674e6e1348c44c2072ce38d814a875e3d48 (patch) | |
tree | d7e0cf3fde76c1eb4f276d3cc1346ee0d0d61680 | |
parent | 5a9d4119b38e1bd0bafceb3256034cb84ea414c5 (diff) | |
download | pkgsrc-32380674e6e1348c44c2072ce38d814a875e3d48.tar.gz |
math/cblas: import from wip
This will be used by math/py-numpy soon for proper matrix math.
-rw-r--r-- | math/Makefile | 3 | ||||
-rw-r--r-- | math/cblas/DESCR | 2 | ||||
-rw-r--r-- | math/cblas/Makefile | 15 | ||||
-rw-r--r-- | math/cblas/PLIST | 12 | ||||
-rw-r--r-- | math/cblas/buildlink3.mk | 15 |
5 files changed, 46 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile index 593c47f28ed..1acb4ea38e4 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.492 2021/04/09 11:00:28 nia Exp $ +# $NetBSD: Makefile,v 1.493 2021/04/20 20:37:03 thor Exp $ COMMENT= Mathematics @@ -140,6 +140,7 @@ SUBDIR+= calc SUBDIR+= calcoo SUBDIR+= cantor SUBDIR+= capc-calc +SUBDIR+= cblas SUBDIR+= cgal SUBDIR+= classias SUBDIR+= clisp-pari diff --git a/math/cblas/DESCR b/math/cblas/DESCR new file mode 100644 index 00000000000..e3232c7f034 --- /dev/null +++ b/math/cblas/DESCR @@ -0,0 +1,2 @@ +This is the C wrapper to the Basic Linear Algebra Support library +(CBLAS), extracted from the Netlib reference implementation of LAPACK. diff --git a/math/cblas/Makefile b/math/cblas/Makefile new file mode 100644 index 00000000000..926ecafecf8 --- /dev/null +++ b/math/cblas/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1 2021/04/20 20:37:03 thor Exp $ + +COMMENT= C interface to a BLAS library +LAPACK_COMPONENT= cblas +LAPACK_COMPONENT_CMAKE_ARGS= \ + -DUSE_OPTIMIZED_BLAS=ON \ + -DBLAS_LIBRARIES=${BLAS_LIBS:Q} \ + -DUSE_OPTIMIZED_LAPACK=ON \ + -DLAPACK_LIBRARIES=${LAPACK_LIBS:Q} \ + -DCBLAS=ON -DLAPACKE=OFF \ + -DCMAKE_VERBOSE=ON + +.include "../../mk/blas.buildlink3.mk" +.include "../../math/lapack/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/math/cblas/PLIST b/math/cblas/PLIST new file mode 100644 index 00000000000..9884fc2f344 --- /dev/null +++ b/math/cblas/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1 2021/04/20 20:37:03 thor Exp $ +include/cblas.h +include/cblas_f77.h +include/cblas_mangling.h +include/cblas_test.h +lib/cmake/cblas-${PKGVERSION}/cblas-config-version.cmake +lib/cmake/cblas-${PKGVERSION}/cblas-config.cmake +lib/libcblas.a +lib/libcblas.so +lib/libcblas.so.3 +lib/libcblas.so.${PKGVERSION} +lib/pkgconfig/cblas.pc diff --git a/math/cblas/buildlink3.mk b/math/cblas/buildlink3.mk new file mode 100644 index 00000000000..07c8a28fd32 --- /dev/null +++ b/math/cblas/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/04/20 20:37:03 thor Exp $ + +BUILDLINK_TREE+= cblas + +.if !defined(CBLAS_BUILDLINK3_MK) +CBLAS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.cblas+= cblas>=3.9.0 +BUILDLINK_PKGSRCDIR.cblas?= ../../math/cblas + +.include "../../mk/blas.buildlink3.mk" +.endif + + +BUILDLINK_TREE+= -cblas |