Fix pixman macOS build and add missing build deps (#36982)

This commit is contained in:
Seth R. Johnson 2023-05-08 11:47:51 -04:00 committed by GitHub
parent b605cd0151
commit 947445ccdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@ class Pixman(AutotoolsPackage):
version("0.32.6", sha256="3dfed13b8060eadabf0a4945c7045b7793cc7e3e910e748a8bb0f0dc3e794904")
depends_on("pkgconfig", type="build")
depends_on("flex", type="build")
depends_on("bison@3:", type="build")
depends_on("libpng")
# As discussed here:
@ -62,6 +64,12 @@ def configure_args(self):
args = ["--enable-libpng", "--disable-gtk"]
if sys.platform == "darwin":
args.append("--disable-mmx")
args += ["--disable-mmx", "--disable-silent-rules"]
# From homebrew, see:
# https://gitlab.freedesktop.org/pixman/pixman/-/issues/59
# https://gitlab.freedesktop.org/pixman/pixman/-/issues/69
if self.spec.target.family == "aarch64":
args.append("--disable-arm-a64-neon")
return args