speexdsp: update to use oneapi packages (#49434)

Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Massimiliano Culpo 2025-03-13 03:26:32 +01:00 committed by GitHub
parent fe00c13afa
commit cc6ab75063
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,17 +41,17 @@ def autoreconf(self, spec, prefix):
def configure_args(self): def configure_args(self):
args = [] args = []
if self.spec.satisfies("^[virtuals=fftw-api] intel-oneapi-mkl"):
if "intel-mkl" in self.spec:
# get the blas libs explicitly to avoid scalapack getting returned # get the blas libs explicitly to avoid scalapack getting returned
args.extend( args.extend(
[ [
"--with-fft=proprietary-intel-mkl", "--with-fft=proprietary-intel-mkl",
"CPPFLAGS={0}".format(self.spec["intel-mkl"].headers.cpp_flags), f"CPPFLAGS={self.spec['intel-oneapi-mkl'].headers.cpp_flags}",
"LDFLAGS={0}".format(self.spec["blas"].libs.ld_flags), f"LDFLAGS={self.spec['intel-oneapi-mkl'].libs.ld_flags}",
] ]
) )
elif "fftw" in self.spec:
elif self.spec.satisfies("^[virtuals=fftw-api] fftw"):
args.append("--with-fft=gpl-fftw3") args.append("--with-fft=gpl-fftw3")
return args return args