Files
ports/math/flexiblas/Makefile
T
Robert Clausecker b9b8097cb0 math/flexiblas: fix build on platforms without OpenMP (armv7)
On such platforms, openblas uses pthreads over OpenMP.  Add some more
switches to pkg-plist to address this.

Fix a typo in pkg-descr while we are at it.

Approved by:	portmgr (build fix blanket)
MFH:		2026Q2
2026-06-26 14:07:55 +02:00

61 lines
1.5 KiB
Makefile

PORTNAME= flexiblas
PORTVERSION= 3.5.0
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= math
#MASTER_SITES= https://csc.mpi-magdeburg.mpg.de/mpcsc/software/flexiblas/
MAINTAINER= thierry@FreeBSD.org
COMMENT= BLAS and LAPACK wrapper library with runtime exchangable backends
WWW= https://www.mpi-magdeburg.mpg.de/projects/flexiblas
LICENSE= LGPL3
LIB_DEPENDS= libblas.so:math/blas \
libblis.so:math/blis \
liblapack.so:math/lapack
USES= cmake:testing fortran python tar:xz
CMAKE_ARGS= -DLTO:BOOL=OFF
USE_GITLAB= yes
GL_SITE= https://gitlab.mpi-magdeburg.mpg.de/
GL_ACCOUNT= software
GL_PROJECT= ${PORTNAME}-release
CONFIGURE_ENV= PYTHON_EXECUTABLE=${PYTHON_CMD}
USE_LDCONFIG= yes
PLIST_SUB= VE=${PORTVERSION:R}
.if defined(WITH_DEBUG)
CMAKE_ARGS+= -DFIND_DEBUG:BOOL=ON
.endif
OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_CMAKE_ON= -DEXAMPLES:BOOL=ON
EXAMPLES_CMAKE_OFF= -DEXAMPLES:BOOL=OFF
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libatlas.so)
LIB_DEPENDS+= libatlas.so:math/atlas
PLIST_SUB+= OPENBLASOPENMP="@comment " OPENBLASPTHREAD="@comment " ATLAS=""
.else
LIB_DEPENDS+= libcblas.so:math/cblas \
libopenblas.so:math/openblas
PLIST_SUB+= ATLAS="@comment "
.if exists(/usr/include/omp.h)
PLIST_SUB+= OPENBLASOPENMP="" OPENBLASPTHREAD="@comment " ATLAS="@comment "
.else
PLIST_SUB+= OPENBLASOPENMP="@comment " OPENBLASPTHREAD="" ATLAS="@comment "
.endif
.endif
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/flexiblasrc \
${STAGEDIR}${PREFIX}/etc/flexiblasrc.sample
.include <bsd.port.post.mk>