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@)
2024Q1
Thierry Thomas 2023-10-18 21:53:29 +02:00
parent 6da3ac76ad
commit dd77fafef4
2 changed files with 10 additions and 12 deletions

View File

@ -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>

View File

@ -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