pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import blis-0.9.0, a framework for blas libraries
Module Name: pkgsrc-wip
Committed By: Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By: matthewd
Date: Thu Feb 9 15:29:55 2023 -0800
Changeset: 058452171cce4dfa82a8da8b55c4fa4b005c482b
Added Files:
blis/DESCR
blis/Makefile
blis/Makefile.common
blis/PLIST
blis/buildlink3.mk
blis/distinfo
blis/version.mk
Log Message:
Import blis-0.9.0, a framework for blas libraries
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=058452171cce4dfa82a8da8b55c4fa4b005c482b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
blis/DESCR | 10 +++++++
blis/Makefile | 4 +++
blis/Makefile.common | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++
blis/PLIST | 11 +++++++
blis/buildlink3.mk | 13 +++++++++
blis/distinfo | 5 ++++
blis/version.mk | 5 ++++
7 files changed, 130 insertions(+)
diffs:
diff --git a/blis/DESCR b/blis/DESCR
new file mode 100644
index 0000000000..56fc4ae251
--- /dev/null
+++ b/blis/DESCR
@@ -0,0 +1,10 @@
+BLIS is an award-winning portable software framework for instantiating
+high-performance BLAS-like dense linear algebra libraries. The
+framework was designed to isolate essential kernels of computation that,
+when optimized, immediately enable optimized implementations of most
+of its commonly used and computationally intensive operations. BLIS is
+written in ISO C99 and available under a new/modified/3-clause BSD
+license. While BLIS exports a new BLAS-like API, it also includes
+a BLAS compatibility layer which gives application developers access
+to BLIS implementations via traditional BLAS routine calls. An
+object-based API unique to BLIS is also available.
diff --git a/blis/Makefile b/blis/Makefile
new file mode 100644
index 0000000000..7c9778fdb9
--- /dev/null
+++ b/blis/Makefile
@@ -0,0 +1,4 @@
+# $NetBSD$
+BLIS_VARIANT=blis
+.include "../../wip/blis/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/blis/Makefile.common b/blis/Makefile.common
new file mode 100644
index 0000000000..81917d9e95
--- /dev/null
+++ b/blis/Makefile.common
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile,v 1.39 2019/10/05 06:14:05 ryoon Exp $
+# used by wip/blis_openmp/Makefile
+# used by wip/blis_pthread/Makefile
+
+DISTNAME=blis
+.include "../../wip/blis/version.mk"
+PKGNAME= ${BLIS_VARIANT}-${BLIS_VERSION}
+GITHUB_TAG=${BLIS_COMMIT}
+MASTER_SITES=${MASTER_SITE_GITHUB:=flame/}
+LICENSE= modified-bsd
+COMMENT= Framework for instantiating BLAS libraries
+WRKSRC=${WRKDIR}/blis-${GITHUB_TAG}
+
+CATEGORIES= math
+
+CONFIGURE_SCRIPT= ./configure
+HAS_CONFIGURE= yes
+USE_LANGUAGES= c c++ fortran
+
+USE_TOOLS= perl
+USE_TOOLS+= bash
+USE_TOOLS+= gmake
+
+CONFIG_SHELL= bash
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+#CONFIGURE_ARGS+= --exec-prefix=${PREFIX}/lib
+#CONFIGURE_ARGS+= --includedir=${PREFIX}/include/${BLIS_VARIANT}
+#CONFIGURE_ARGS+= --sharedir=${PREFIX}/share/${BLIS_VARIANT}
+CONFIGURE_ARGS+= --enable-blas
+CONFIGURE_ARGS+= --enable-cblas
+CONFIGURE_ARGS+= --enable-threading=${BLIS_VARIANT}
+CONFIGURE_ARGS+= --enable-verbose-make
+
+
+MAKE_ENV= V=1
+
+.if ${BLIS_VARIANT} == "blis_openmp"
+CONFIGURE_ARGS+= --enable-threading=openmp
+.elif ${BLIS_VARIANT} == "blis_pthread"
+CONFIGURE_ARGS+= --enable-threading=pthreads
+.elif ${BLIS_VARIANT} == "blis"
+CONFIGURE_ARGS+= --enable-threading=no
+.endif
+
+# needs to be the last
+#CONFIGURE_ARGS+= generic
+CONFIGURE_ARGS+= auto
+
+SUBST_CLASSES+= libblis
+SUBST_STAGE.libblis= pre-build
+SUBST_SED.libblis+= -e "s|libblis|lib${BLIS_VARIANT}|g"
+SUBST_FILES.libblis+= common.mk
+
+.if ${BLIS_VARIANT} != "blis"
+SUBST_CLASSES+= sharedir
+SUBST_STAGE.sharedir= pre-build
+SUBST_SED.sharedir+= -e "s|\${INSTALL_SHAREDIR}/blis|\${INSTALL_SHAREDIR}/${BLIS_VARIANT}|g"
+SUBST_FILES.sharedir+= Makefile
+
+SUBST_CLASSES+= package_config
+SUBST_STAGE.package_config= pre-build
+SUBST_SED.package_config+= -e "s|PC_OUT_FILE := blis.pc|PC_OUT_FILE := ${BLIS_VARIANT}.pc|g"
+SUBST_FILES.package_config+= Makefile
+
+SUBST_CLASSES+= pc_in
+SUBST_STAGE.pc_in= pre-build
+SUBST_SED.pc_in+= -e "s|-lblis|-l${BLIS_VARIANT}|g"
+SUBST_SED.pc_in+= -e "s|/blis|/${BLIS_VARIANT}|g"
+SUBST_FILES.pc_in+= blis.pc.in
+.endif
+PLIST_SUBST+= BLIS_VARIANT=${BLIS_VARIANT}
+PLIST_SRC= ${.CURDIR}/../../wip/blis/PLIST
+
+# This is a bit of a hack
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/share/${BLIS_VARIANT}/config/* ${DESTDIR}${PREFIX}/share/${BLIS_VARIANT}/config/arch
+
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} gmake test
+
+.include "../../lang/python/tool.mk"
diff --git a/blis/PLIST b/blis/PLIST
new file mode 100644
index 0000000000..40c20dfde0
--- /dev/null
+++ b/blis/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+include/${BLIS_VARIANT}/blis.h
+include/${BLIS_VARIANT}/cblas.h
+lib/lib${BLIS_VARIANT}.a
+lib/lib${BLIS_VARIANT}.so
+lib/lib${BLIS_VARIANT}.so.4
+lib/lib${BLIS_VARIANT}.so.4.0.0
+share/${BLIS_VARIANT}/common.mk
+share/${BLIS_VARIANT}/config.mk
+share/${BLIS_VARIANT}/config/arch/make_defs.mk
+share/pkgconfig/${BLIS_VARIANT}.pc
diff --git a/blis/buildlink3.mk b/blis/buildlink3.mk
new file mode 100644
index 0000000000..68d4c59649
--- /dev/null
+++ b/blis/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.9 2009/03/20 19:24:57 joerg Exp $
+
+BUILDLINK_TREE+= blis
+
+.if !defined(BLIS_BUILDLINK3_MK)
+BLIS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.blis+= blis>=0.9.0
+BUILDLINK_ABI_DEPENDS.blis+= blis>=0.9.0
+BUILDLINK_PKGSRCDIR.blis?= ../../wip/blis
+.endif # BLIS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -blis
diff --git a/blis/distinfo b/blis/distinfo
new file mode 100644
index 0000000000..a93d5b4440
--- /dev/null
+++ b/blis/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.21 2017/09/11 20:56:28 wiz Exp $
+
+BLAKE2s (blis-dc5d00a6ce0350cd82859d8c24f23d98f205d8db.tar.gz) = 4d026e2a340a9714b10e30bc9c979379f0839e34f9fc9f5c4d39534c450bf62b
+SHA512 (blis-dc5d00a6ce0350cd82859d8c24f23d98f205d8db.tar.gz) = 13284870ebdbbf638699315622aaad5009139ad574021dae6cf18164deb3de09d9384ded8cae1a6bd90cf04e89c9d75a768b8cc27f72db77698fb9d9d5eabcfa
+Size (blis-dc5d00a6ce0350cd82859d8c24f23d98f205d8db.tar.gz) = 15167962 bytes
diff --git a/blis/version.mk b/blis/version.mk
new file mode 100644
index 0000000000..40122bb60f
--- /dev/null
+++ b/blis/version.mk
@@ -0,0 +1,5 @@
+# $NetBSD: version.mk,v 1.2 2021/03/25 23:22:35 thor Exp $
+
+BLIS_VERSION= 0.9.0
+PKGREVISION= 1
+BLIS_COMMIT= dc5d00a6ce0350cd82859d8c24f23d98f205d8db
Home |
Main Index |
Thread Index |
Old Index