Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2023 16:03:32 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: dd77fafef462 - main - math/libflame: allow Python > 3.8
Message-ID:  <202311021603.3A2G3W9Y076337@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

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

commit dd77fafef462332229d0b325b71a3519fc05915f
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-10-18 19:53:29 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-11-02 16:02:05 +0000

    math/libflame: allow Python > 3.8
    
    - Don’t limit to Python-3.8
    - Also fix options.
    
    PR:             274569
    Approved by:    maintainer’s time-out (jmd@)
---
 math/libflame/Makefile                                  | 14 ++++++++++----
 math/libflame/files/patch-build_flatten-headers_py.diff |  8 --------
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/math/libflame/Makefile b/math/libflame/Makefile
index ed7af8d9d5f7..72a13cdae2d9 100644
--- a/math/libflame/Makefile
+++ b/math/libflame/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libflame
 DISTVERSION=	5.2.0
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	jmd@FreeBSD.org
@@ -14,8 +15,11 @@ ONLY_FOR_ARCHS_REASON=	make system does not support other architectures yet
 BUILD_DEPENDS=	bash:shells/bash
 
 GNU_CONFIGURE=	yes
-USES=		compiler:c11 gmake python:3.8
+USES=		compiler:c11 gmake python:build shebangfix
+SHEBANG_FILES=	build/flatten-headers.py
 USE_CSTD=	c99
+OPENMP_CFLAGS?=	-fopenmp
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	flame
 USE_LDCONFIG=	yes
@@ -46,12 +50,14 @@ CONFIGURE_ARGS+=	--enable-default-${b:tl}-blocksize=${${b}_BLOCKSIZE}
 .endif
 .endfor
 
-.include <bsd.port.options.mk>
+MAKE_ENV+=	PYTHON=${PYTHON_CMD}
+
+.include <bsd.port.pre.mk>
+
 .if ${PORT_OPTIONS:MOPENMP}
 .if ${CHOSEN_COMPILER_TYPE} == clang
 IGNORE=		clang does not support OPENMP, use THREADS instead
 .endif
-OPENMP_CFLAGS ?=	-fopenmp
 CFLAGS+=		${OPENMP_CFLAGS}
 LDFLAGS+=		${OPENMP_CFLAGS}
 CONFIGURE_ARGS+=	--enable-multithreading=openmp
@@ -70,4 +76,4 @@ CONFIGURE_ARGS+=	--disable-autodetect-f77-ldflags \
 #	@${MKDIR} ${STAGEDIR}${PREFIX}/include/libflame
 #	${INSTALL_DATA} ${WRKSRC}/include_local/* ${STAGEDIR}/${PREFIX}/include/libflame/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/math/libflame/files/patch-build_flatten-headers_py.diff b/math/libflame/files/patch-build_flatten-headers_py.diff
deleted file mode 100644
index 6739683a4280..000000000000
--- a/math/libflame/files/patch-build_flatten-headers_py.diff
+++ /dev/null
@@ -1,8 +0,0 @@
---- build/flatten-headers.py.orig	2020-05-02 16:30:41.773805000 -0500
-+++ build/flatten-headers.py	2020-05-02 16:30:49.511257000 -0500
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/env python3.8
- #
- #  BLIS    
- #  An object-based framework for developing high-performance BLAS-like



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311021603.3A2G3W9Y076337>