summaryrefslogtreecommitdiff
path: root/math/cblas
diff options
context:
space:
mode:
authorthor <thor@pkgsrc.org>2021-04-20 20:37:03 +0000
committerthor <thor@pkgsrc.org>2021-04-20 20:37:03 +0000
commit32380674e6e1348c44c2072ce38d814a875e3d48 (patch)
treed7e0cf3fde76c1eb4f276d3cc1346ee0d0d61680 /math/cblas
parent5a9d4119b38e1bd0bafceb3256034cb84ea414c5 (diff)
downloadpkgsrc-32380674e6e1348c44c2072ce38d814a875e3d48.tar.gz
math/cblas: import from wip
This will be used by math/py-numpy soon for proper matrix math.
Diffstat (limited to 'math/cblas')
-rw-r--r--math/cblas/DESCR2
-rw-r--r--math/cblas/Makefile15
-rw-r--r--math/cblas/PLIST12
-rw-r--r--math/cblas/buildlink3.mk15
4 files changed, 44 insertions, 0 deletions
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