aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-12 21:27:30 +0900
committerOphestra <cat@gensokyo.uk>2026-04-12 21:27:30 +0900
commit27a1b8fe0a48dbd9b409ed2d33c5fbc233cc56d4 (patch)
tree7350ec31f4dc15f01a112596048e74900c96c87d /internal
parentb2141a41d78a1bc9c507b03c0a916152254e5e16 (diff)
internal/rosa/mesa: libglvnd artifact
Required by mesa. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go1
-rw-r--r--internal/rosa/mesa.go29
2 files changed, 30 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 14165698..ecb764e2 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -80,6 +80,7 @@ const (
Libexpat
Libffi
Libgd
+ Libglvnd
Libiconv
Libmd
Libmnl
diff --git a/internal/rosa/mesa.go b/internal/rosa/mesa.go
new file mode 100644
index 00000000..2e1596fe
--- /dev/null
+++ b/internal/rosa/mesa.go
@@ -0,0 +1,29 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newLibglvnd() (pkg.Artifact, string) {
+ const (
+ version = "1.7.0"
+ checksum = "eIQJK2sgFQDHdeFkQO87TrSUaZRFG4y2DrwA8Ut-sGboI59uw1OOiIVqq2AIwnGY"
+ )
+ return t.NewPackage("libglvnd", version, pkg.NewHTTPGetTar(
+ nil, "https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/"+
+ "v"+version+"/libglvnd-v"+version+".tar.bz2",
+ mustDecode(checksum),
+ pkg.TarBzip2,
+ ), nil, (*MesonHelper)(nil),
+ Binutils, // symbols check fail with llvm nm
+ ), version
+}
+func init() {
+ artifactsM[Libglvnd] = Metadata{
+ f: Toolchain.newLibglvnd,
+
+ Name: "libglvnd",
+ Description: "The GL Vendor-Neutral Dispatch library",
+ Website: "https://gitlab.freedesktop.org/glvnd/libglvnd",
+
+ ID: 12098,
+ }
+}