git: 581d55bb1742 - main - math/libxsmm: Update 1.16.3 -> 1.17

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 13 Jul 2022 05:45:57 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=581d55bb174297d34146368e5bb5cfea4d5e6bbe

commit 581d55bb174297d34146368e5bb5cfea4d5e6bbe
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-13 05:45:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-13 05:45:37 +0000

    math/libxsmm: Update 1.16.3 -> 1.17
---
 math/libxsmm/Makefile             |  6 +++---
 math/libxsmm/distinfo             |  6 +++---
 math/libxsmm/files/patch-Makefile | 17 ++++-------------
 math/libxsmm/pkg-plist            | 14 +++++++++-----
 4 files changed, 19 insertions(+), 24 deletions(-)

diff --git a/math/libxsmm/Makefile b/math/libxsmm/Makefile
index 381aa4ab3fd5..5023ffb5fbf2 100644
--- a/math/libxsmm/Makefile
+++ b/math/libxsmm/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libxsmm
-DISTVERSION=	1.16.3
+DISTVERSION=	1.17
 CATEGORIES=	math science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -32,7 +32,7 @@ BINARY_ALIAS=	python=${PYTHON_CMD}
 MAKE_ARGS+=	PLATFORM=1
 .endif
 
-post-install: # https://github.com/hfp/libxsmm/issues/413
-	${RMDIR} ${STAGEDIR}${PREFIX}/share/modules
+post-install:
+	@${RM} ${STAGEDIR}${PREFIX}/include/libxsmm/libxsmm_timer.c.orig
 
 .include <bsd.port.mk>
diff --git a/math/libxsmm/distinfo b/math/libxsmm/distinfo
index 7730839da658..e9d3d8920ec4 100644
--- a/math/libxsmm/distinfo
+++ b/math/libxsmm/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1634870729
-SHA256 (hfp-libxsmm-1.16.3_GH0.tar.gz) = e491ccadebc5cdcd1fc08b5b4509a0aba4e2c096f53d7880062a66b82a0baf84
-SIZE (hfp-libxsmm-1.16.3_GH0.tar.gz) = 2977450
+TIMESTAMP = 1657690125
+SHA256 (hfp-libxsmm-1.17_GH0.tar.gz) = 8b642127880e92e8a75400125307724635ecdf4020ca4481e5efe7640451bb92
+SIZE (hfp-libxsmm-1.17_GH0.tar.gz) = 2528419
diff --git a/math/libxsmm/files/patch-Makefile b/math/libxsmm/files/patch-Makefile
index 307e238c1555..29857aa7cc3c 100644
--- a/math/libxsmm/files/patch-Makefile
+++ b/math/libxsmm/files/patch-Makefile
@@ -1,20 +1,11 @@
---- Makefile.orig	2020-06-26 14:58:46 UTC
+--- Makefile.orig	2021-12-02 20:45:19 UTC
 +++ Makefile
-@@ -27,6 +27,8 @@ CFLAGS = $(RPM_OPT_FLAGS)
- CXXFLAGS = $(RPM_OPT_FLAGS)
- FCFLAGS = $(RPM_OPT_FLAGS)
+@@ -27,6 +27,8 @@ CFLAGS := $(RPM_OPT_FLAGS)
+ CXXFLAGS := $(RPM_OPT_FLAGS)
+ FCFLAGS := $(RPM_OPT_FLAGS)
  
 +CFLAGS += -fcommon # multiple definition of `libxsmm_scratch_pools' (and other symbols) https://github.com/hfp/libxsmm/issues/412
 +
  # THRESHOLD problem size (M x N x K) determining when to use BLAS
  # A value of zero (0) populates a default threshold
  THRESHOLD ?= 0
-@@ -1611,7 +1613,7 @@ endif
- endif
- 
- .PHONY: install-all
--install-all: install samples
-+install-all: install
- ifneq ($(PREFIX),$(ABSDIR))
- 	@echo
- 	@echo "LIBXSMM installing samples..."
diff --git a/math/libxsmm/pkg-plist b/math/libxsmm/pkg-plist
index eabc7294288d..11179b2c216d 100644
--- a/math/libxsmm/pkg-plist
+++ b/math/libxsmm/pkg-plist
@@ -284,19 +284,19 @@ include/libxsmm_typedefs.h
 include/libxsmm_version.h
 lib/libxsmm.so
 lib/libxsmm.so.1
-lib/libxsmm.so.1.16.3
+lib/libxsmm.so.1.17.0
 lib/libxsmmext.so
 lib/libxsmmext.so.1
-lib/libxsmmext.so.1.16.3
+lib/libxsmmext.so.1.17.0
 lib/libxsmmf.so
 lib/libxsmmf.so.1
-lib/libxsmmf.so.1.16.3
+lib/libxsmmf.so.1.17.0
 lib/libxsmmgen.so
 lib/libxsmmgen.so.1
-lib/libxsmmgen.so.1.16.3
+lib/libxsmmgen.so.1.17.0
 lib/libxsmmnoblas.so
 lib/libxsmmnoblas.so.1
-lib/libxsmmnoblas.so.1.16.3
+lib/libxsmmnoblas.so.1.17.0
 libdata/pkgconfig/libxsmm.pc
 libdata/pkgconfig/libxsmmext.pc
 libdata/pkgconfig/libxsmmf.pc
@@ -309,16 +309,20 @@ libdata/pkgconfig/libxsmmnoblas.pc
 %%DATADIR%%/cp2k.md
 %%DATADIR%%/gxm.md
 %%DATADIR%%/index.md
+%%DATADIR%%/libxsmm.env
 %%DATADIR%%/libxsmm.pdf
 %%DATADIR%%/libxsmm_aux.md
 %%DATADIR%%/libxsmm_be.md
+%%DATADIR%%/libxsmm_compat.md
 %%DATADIR%%/libxsmm_dl.md
 %%DATADIR%%/libxsmm_fortran.md
 %%DATADIR%%/libxsmm_mm.md
 %%DATADIR%%/libxsmm_prof.md
+%%DATADIR%%/libxsmm_qna.md
 %%DATADIR%%/libxsmm_samples.md
 %%DATADIR%%/libxsmm_samples.pdf
 %%DATADIR%%/libxsmm_tune.md
+%%DATADIR%%/libxsmm_valid.md
 %%DATADIR%%/tensorflow.md
 %%DATADIR%%/tensorflow.pdf
 %%DATADIR%%/version.txt