aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2023-10-18 19:53:29 +0000
committerThierry Thomas <thierry@FreeBSD.org>2023-11-02 16:02:05 +0000
commitdd77fafef462332229d0b325b71a3519fc05915f (patch)
tree3feda17cce932aaff3e1ad5efab2a9ba3cd52ed8
parent6da3ac76ad247b2bce5778d46ea6924b84a1a7e4 (diff)
downloadports-dd77fafef462332229d0b325b71a3519fc05915f.tar.gz
ports-dd77fafef462332229d0b325b71a3519fc05915f.zip
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@)
-rw-r--r--math/libflame/Makefile14
-rw-r--r--math/libflame/files/patch-build_flatten-headers_py.diff8
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