summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-11-11 19:26:29 -0600
committerGitHub <noreply@github.com>2024-11-11 17:26:29 -0800
commitb748907a61543572d794509d4b1537c58f9d0a50 (patch)
treed992df2ac03a769d2d367ccc722a80ea61484de3 /var
parentcbd9fad66e711c91219e481f2c2613edbf10f5e9 (diff)
downloadspack-b748907a61543572d794509d4b1537c58f9d0a50.tar.gz
spack-b748907a61543572d794509d4b1537c58f9d0a50.tar.bz2
spack-b748907a61543572d794509d4b1537c58f9d0a50.tar.xz
spack-b748907a61543572d794509d4b1537c58f9d0a50.zip
pixman: add v0.44.0 (switch to meson) (#47529)
* pixman: add v0.44.0 (switch to meson)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pixman/package.py37
1 files changed, 36 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pixman/package.py b/var/spack/repos/builtin/packages/pixman/package.py
index a1abb45bba..e84ff0a48a 100644
--- a/var/spack/repos/builtin/packages/pixman/package.py
+++ b/var/spack/repos/builtin/packages/pixman/package.py
@@ -18,6 +18,7 @@ class Pixman(AutotoolsPackage):
license("MIT")
+ version("0.44.0", sha256="89a4c1e1e45e0b23dffe708202cb2eaffde0fe3727d7692b2e1739fec78a7dac")
version("0.42.2", sha256="ea1480efada2fd948bc75366f7c349e1c96d3297d09a3fe62626e38e234a625e")
version("0.42.0", sha256="07f74c8d95e4a43eb2b08578b37f40b7937e6c5b48597b3a0bb2c13a53f46c13")
version("0.40.0", sha256="6d200dec3740d9ec4ec8d1180e25779c00bc749f94278c8b9021f5534db223fc")
@@ -26,11 +27,19 @@ class Pixman(AutotoolsPackage):
version("0.34.0", sha256="21b6b249b51c6800dc9553b65106e1e37d0e25df942c90531d4c3997aa20a88e")
version("0.32.6", sha256="3dfed13b8060eadabf0a4945c7045b7793cc7e3e910e748a8bb0f0dc3e794904")
- depends_on("c", type="build") # generated
+ build_system(
+ conditional("autotools", when="@:0.42"),
+ conditional("meson", when="@0.38:"),
+ default="meson",
+ )
+ depends_on("c", type="build")
+ with when("build_system=meson"):
+ depends_on("meson@0.52:", type="build")
depends_on("pkgconfig", type="build")
depends_on("flex", type="build")
depends_on("bison@3:", type="build")
+
depends_on("libpng")
variant("shared", default=True, description="Build shared library")
@@ -68,6 +77,32 @@ class Pixman(AutotoolsPackage):
"libpixman-1", self.prefix, shared=self.spec.satisfies("+shared"), recursive=True
)
+
+class MesonBuilder(spack.build_systems.meson.MesonBuilder):
+ def meson_args(self):
+ args = ["-Dlibpng=enabled", "-Dgtk=disabled", "-Db_staticpic=true"]
+
+ if sys.platform == "darwin":
+ args += ["-Dmmx=disabled"]
+
+ # 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("-Da64-neon=disabled")
+
+ # The Fujitsu compiler does not support assembler macros.
+ if self.spec.satisfies("%fj"):
+ args.append("-Da64-neon=disabled")
+
+ args.append(
+ "-Ddefault_library=" + ("shared" if self.spec.satisfies("+shared") else "static")
+ )
+
+ return args
+
+
+class AutotoolsBuilder(spack.build_systems.autotools.AutotoolsBuilder):
def configure_args(self):
args = ["--enable-libpng", "--disable-gtk", "--with-pic"]