Skip to content

Commit

Permalink
math/libflame: allow Python > 3.8
Browse files Browse the repository at this point in the history
- Don’t limit to Python-3.8
- Also fix options.

PR:		274569
Approved by:	maintainer’s time-out (jmd@)
  • Loading branch information
thierry-FreeBSD committed Nov 2, 2023
1 parent 6da3ac7 commit dd77faf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
14 changes: 10 additions & 4 deletions math/libflame/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libflame
DISTVERSION= 5.2.0
PORTREVISION= 1
CATEGORIES= math

MAINTAINER= jmd@FreeBSD.org
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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>
8 changes: 0 additions & 8 deletions math/libflame/files/patch-build_flatten-headers_py.diff

This file was deleted.

0 comments on commit dd77faf

Please sign in to comment.