povray: model mkl dependency correctly (#20265)

Added the correct depends_on directive if the mkl variant is active.
Added conflicts for archs that don't support mkl
This commit is contained in:
ketsubouchi 2020-12-07 23:45:56 +09:00 committed by GitHub
parent af9bf816fe
commit b4ed4fb226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,17 @@ class Povray(AutotoolsPackage):
depends_on('libpng@1.2.5:', when='+libpng')
depends_on('jpeg', when='+jpeg')
depends_on('libtiff@3.6.1:', when='+libtiff')
depends_on('mkl', when='+mkl')
depends_on('openexr@1.2:', when='+openexr')
# MKL conflicts
conflicts('+mkl', when='target=aarch64:',
msg='Intel MKL only runs on x86')
conflicts('+mkl', when='target=ppc64:',
msg='Intel MKL only runs on x86')
conflicts('+mkl', when='target=ppc64le:',
msg='Intel MKL only runs on x86')
# This patch enables prebuild.sh to be invoked from any directory
# (it immediately cds to the directory containing prebuild.sh)
# This is better than a broken check that it was called from the