commit f59077fa646127cdf1b0d3c6e5314df403158005 Author: Xavier Beaudouin Date: Mon Jan 22 17:11:29 2024 +0100 First commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..1d45d16 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Klara's ports diff --git a/math/blis/Makefile b/math/blis/Makefile new file mode 100644 index 0000000..7e96202 --- /dev/null +++ b/math/blis/Makefile @@ -0,0 +1,74 @@ +PORTNAME= blis +PORTVERSION= 0.9.0 +PORTREVISION= 3 +CATEGORIES= math +PKGNAMEPREFIX= ${PYHON_PKGNAMEPREFIX} + +MAINTAINER= jmd@FreeBSD.org +COMMENT= Software framework for high-performance BLAS-like libraries +WWW= https://github.com/flame/blis + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= bash:shells/bash + +USES= compiler gmake perl5 python shebangfix +USE_PYTHON= flavors + +USE_GITHUB= yes +GH_ACCOUNT= flame +USE_LDCONFIG= yes +USE_PERL5= build +SHEBANG_FILES= build/flatten-headers.py + +OPTIONS_DEFINE= PARA CBLAS +PARA_DESC= use pthread parallelization +CBLAS_DESC= build the CBLAS compatibility layer +OPTIONS_DEFAULT= PARA CBLAS +OPTIONS_SUB= yes + +CFLAGS_riscv64= -mno-relax +HAS_CONFIGURE= yes + +TEST_TARGET= test + +.include + +# enable BLAS and static/shared libs by default +CONFIGURE_ARGS+= --enable-blas \ + --prefix=${PREFIX} \ + --enable-shared \ + --enable-static +#--prefix=PREFIX + +.if ${PORT_OPTIONS:MPARA} +CONFIGURE_ARGS+= -t pthreads +.endif + +.if ${PORT_OPTIONS:MCBLAS} +CONFIGURE_ARGS+= --enable-cblas +.endif + +.if ${ARCH} == amd64 +CONFIGURE_ARGS+= x86_64 +PLIST_SUB+= ARCH="x86_64" +.elif ${ARCH:Mpowerpc64*} +CONFIGURE_ARGS+= power9 +PLIST_SUB+= ARCH="power9" +USE_GCC= yes +.else +CONFIGURE_ARGS+= generic +PLIST_SUB+= ARCH="generic" +.endif + +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +USE_GCC= yes +.endif + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libblis.so.4.0.0 + +.include diff --git a/math/blis/distinfo b/math/blis/distinfo new file mode 100644 index 0000000..4ca433b --- /dev/null +++ b/math/blis/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672884949 +SHA256 (flame-blis-0.9.0_GH0.tar.gz) = 1135f664be7355427b91025075562805cdc6cc730d3173f83533b2c5dcc2f308 +SIZE (flame-blis-0.9.0_GH0.tar.gz) = 15078619 diff --git a/math/blis/pkg-descr b/math/blis/pkg-descr new file mode 100644 index 0000000..c58e5c1 --- /dev/null +++ b/math/blis/pkg-descr @@ -0,0 +1,7 @@ +software framework for high-performance BLAS-like libraries + +BLIS is a 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. diff --git a/math/blis/pkg-plist b/math/blis/pkg-plist new file mode 100644 index 0000000..80727e9 --- /dev/null +++ b/math/blis/pkg-plist @@ -0,0 +1,10 @@ +include/blis/blis.h +%%CBLAS%%include/blis/cblas.h +lib/libblis.a +lib/libblis.so +lib/libblis.so.4 +lib/libblis.so.4.0.0 +share/pkgconfig/blis.pc +%%DATADIR%%/common.mk +%%DATADIR%%/config.mk +%%DATADIR%%/config/%%ARCH%%/make_defs.mk