1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/audio/kaldi/Makefile
Yuri Victorovich c5001da196 audio/kaldi: Unbreak on i386
The build looks for the __SSE2_MATH__ macro that clang doesn't define.
2024-01-21 11:16:58 -08:00

35 lines
1010 B
Makefile

PORTNAME= kaldi
PORTVERSION= g20231112
PORTREVISION= 1
CATEGORIES= audio # machine-learning
MAINTAINER= yuri@FreeBSD.org
COMMENT= Kaldi speech recognition toolkit
WWW= https://kaldi-asr.org/
LICENSE= APACHE20
BROKEN_i386= compilation fails: compile with -msse -mfpmath=sse, or equivalent, when these flags are already provided, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276505
LIB_DEPENDS= libcblas.so:math/cblas \
libfst.so:math/openfst \
liblapack.so:math/lapack
USES= cmake compiler:c++17-lang localbase:ldflags python:build
USE_GITHUB= yes
GH_ACCOUNT= kaldi-asr
GH_TAGNAME= 21ae411
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= KALDI_BUILD_TEST
CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD} \
-DKALDI_VERSION=${PORTVERSION}
CXXFLAGS_i386= -msse -mfpmath=sse -D__SSE2_MATH__ # __SSE2_MATH__ is a gcc-specific macro that the code looks for: https://gcc.gnu.org/legacy-ml/gcc-patches/2002-08/msg01345.html
post-extract:
@${FIND} ${WRKSRC} -name "*.orig" -delete
.include <bsd.port.mk>