internal/rosa/package: migrate mesa
All checks were successful
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 2m50s
Test / ShareFS (push) Successful in 3m44s
Test / Hakurei (push) Successful in 3m51s
Test / Sandbox (race detector) (push) Successful in 5m25s
Test / Hakurei (race detector) (push) Successful in 6m29s
Test / Flake checks (push) Successful in 1m20s
All checks were successful
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 2m50s
Test / ShareFS (push) Successful in 3m44s
Test / Hakurei (push) Successful in 3m51s
Test / Sandbox (race detector) (push) Successful in 5m25s
Test / Hakurei (race detector) (push) Successful in 6m29s
Test / Flake checks (push) Successful in 1m20s
This has many dependencies. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -1,140 +0,0 @@
|
|||||||
package rosa
|
|
||||||
|
|
||||||
import (
|
|
||||||
"strings"
|
|
||||||
|
|
||||||
"hakurei.app/internal/pkg"
|
|
||||||
)
|
|
||||||
|
|
||||||
func (t Toolchain) newMesa() (pkg.Artifact, string) {
|
|
||||||
const (
|
|
||||||
version = "26.1.0"
|
|
||||||
checksum = "zU0fjqevySBaoi_5SLW3e2UffmGeBdxOuHmAHTH68n2hV-sjYoqg30koLqFXuk5y"
|
|
||||||
)
|
|
||||||
return t.NewPackage("mesa", version, newFromGitLab(
|
|
||||||
"gitlab.freedesktop.org",
|
|
||||||
"mesa/mesa",
|
|
||||||
"mesa-"+version,
|
|
||||||
checksum,
|
|
||||||
), nil, &MesonHelper{
|
|
||||||
Setup: []KV{
|
|
||||||
{"Dplatforms", "x11,wayland"},
|
|
||||||
{"Dvideo-codecs", "all"},
|
|
||||||
|
|
||||||
{"Dglvnd", "enabled"},
|
|
||||||
{"Dgbm", "enabled"},
|
|
||||||
|
|
||||||
{"Dgallium-drivers", strings.Join([]string{
|
|
||||||
"asahi", // Apple AGX
|
|
||||||
"crocus", // Intel legacy
|
|
||||||
"etnaviv", // Vivante GPU designs (mostly NXP/Marvell SoCs)
|
|
||||||
"freedreno", // Qualcomm Adreno (all Qualcomm SoCs)
|
|
||||||
"i915", // Intel extra legacy
|
|
||||||
"iris", // new Intel (Broadwell+)
|
|
||||||
"lima", // ARM Mali 4xx
|
|
||||||
"llvmpipe", // software renderer
|
|
||||||
"nouveau", // Nvidia
|
|
||||||
"panfrost", // ARM Mali Midgard and up (T/G series)
|
|
||||||
"r300", // very old AMD
|
|
||||||
"r600", // less old AMD
|
|
||||||
"radeonsi", // new AMD (GCN+)
|
|
||||||
"softpipe", // older software renderer
|
|
||||||
"svga", // VMWare virtualized GPU
|
|
||||||
"tegra", // Nvidia Tegra SoCs
|
|
||||||
"v3d", // Broadcom VC5 (Raspberry Pi 4)
|
|
||||||
"vc4", // Broadcom VC4 (Raspberry Pi 0-3)
|
|
||||||
"virgl", // QEMU virtualized GPU (aka VirGL)
|
|
||||||
"zink", // generic OpenGL over Vulkan, experimental
|
|
||||||
|
|
||||||
// d3d12: WSL emulated GPU (aka Dozen)
|
|
||||||
// ethosu: accelerator
|
|
||||||
// rocket: accelerator
|
|
||||||
}, ",")},
|
|
||||||
|
|
||||||
{"Dvulkan-drivers", strings.Join([]string{
|
|
||||||
"amd", // AMD (aka RADV)
|
|
||||||
"broadcom", // Broadcom VC5 (Raspberry Pi 4, aka V3D)
|
|
||||||
"freedreno", // Qualcomm Adreno (all Qualcomm SoCs)
|
|
||||||
"intel", // new Intel (aka ANV)
|
|
||||||
"intel_hasvk", // Intel Haswell/Broadwell, "legacy" Vulkan driver (https://www.phoronix.com/news/Intel-HasVK-Drop-Dead-Code)
|
|
||||||
"panfrost", // ARM Mali Midgard and up (T/G series)
|
|
||||||
"swrast", // software renderer (aka Lavapipe)
|
|
||||||
"virtio", // QEMU virtualized GPU (aka VirGL)
|
|
||||||
"imagination", // PowerVR Rogue
|
|
||||||
"asahi", // Apple AGX
|
|
||||||
"gfxstream", // Android virtualized GPU
|
|
||||||
|
|
||||||
// nouveau: Nouveau (aka NVK), requires rust
|
|
||||||
// microsoft-experimental: WSL virtualized GPU (aka DZN/Dozen)
|
|
||||||
// kosmickrisp: macOS-specific
|
|
||||||
}, ",")},
|
|
||||||
{"Dvulkan-layers", strings.Join([]string{
|
|
||||||
"device-select",
|
|
||||||
"intel-nullhw",
|
|
||||||
"overlay",
|
|
||||||
"screenshot",
|
|
||||||
"anti-lag",
|
|
||||||
"vram-report-limit",
|
|
||||||
}, ",")},
|
|
||||||
|
|
||||||
{"Dfreedreno-kmds", "msm,virtio"},
|
|
||||||
{"Damdgpu-virtio", "true"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
M4,
|
|
||||||
PythonPackaging,
|
|
||||||
PythonMako,
|
|
||||||
PythonPyYAML,
|
|
||||||
PythonPycparser,
|
|
||||||
Glslang,
|
|
||||||
SPIRVLLVMTranslator,
|
|
||||||
|
|
||||||
Zlib,
|
|
||||||
Zstd,
|
|
||||||
Gzip,
|
|
||||||
Ncurses,
|
|
||||||
Libglvnd,
|
|
||||||
Libexpat,
|
|
||||||
Libva,
|
|
||||||
Libdrm,
|
|
||||||
Elfutils,
|
|
||||||
Bison,
|
|
||||||
Flex,
|
|
||||||
LMSensors,
|
|
||||||
Libconfig,
|
|
||||||
LibdisplayInfo,
|
|
||||||
Wayland,
|
|
||||||
WaylandProtocols,
|
|
||||||
Libxshmfence,
|
|
||||||
LibXxf86vm,
|
|
||||||
LibXrandr,
|
|
||||||
LibxcbUtilKeysyms,
|
|
||||||
Libpng,
|
|
||||||
Libarchive,
|
|
||||||
KernelHeaders,
|
|
||||||
), version
|
|
||||||
}
|
|
||||||
func init() {
|
|
||||||
native.mustRegister(Toolchain.newMesa, &Metadata{
|
|
||||||
Name: "mesa",
|
|
||||||
Description: "open source implementations of OpenGL, OpenGL ES, Vulkan, OpenCL, and more",
|
|
||||||
Website: "https://mesa3d.org",
|
|
||||||
|
|
||||||
Dependencies: P{
|
|
||||||
Libdrm,
|
|
||||||
Elfutils,
|
|
||||||
LMSensors,
|
|
||||||
LibdisplayInfo,
|
|
||||||
Wayland,
|
|
||||||
Libxshmfence,
|
|
||||||
LibXxf86vm,
|
|
||||||
LibXrandr,
|
|
||||||
LibxcbUtilKeysyms,
|
|
||||||
Libpng,
|
|
||||||
},
|
|
||||||
|
|
||||||
ID: 1970,
|
|
||||||
|
|
||||||
latest: (*Versions).getStable,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
137
internal/rosa/package/mesa.az
Normal file
137
internal/rosa/package/mesa.az
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
package mesa {
|
||||||
|
description = "open source implementations of OpenGL, OpenGL ES, Vulkan, OpenCL, and more";
|
||||||
|
website = "https://mesa3d.org";
|
||||||
|
anitya = 1970;
|
||||||
|
latest = anityaFallback;
|
||||||
|
|
||||||
|
version* = "26.1.0";
|
||||||
|
source = remoteGitLab {
|
||||||
|
domain = "gitlab.freedesktop.org";
|
||||||
|
suffix = "mesa/mesa";
|
||||||
|
ref = "mesa-"+version;
|
||||||
|
checksum = "zU0fjqevySBaoi_5SLW3e2UffmGeBdxOuHmAHTH68n2hV-sjYoqg30koLqFXuk5y";
|
||||||
|
};
|
||||||
|
|
||||||
|
exec = meson {
|
||||||
|
setup = {
|
||||||
|
"Dplatforms": "x11,wayland";
|
||||||
|
"Dvideo-codecs": "all";
|
||||||
|
|
||||||
|
"Dglvnd": "enabled";
|
||||||
|
"Dgbm": "enabled";
|
||||||
|
|
||||||
|
"Dgallium-drivers": join {
|
||||||
|
elems = [
|
||||||
|
"asahi", // Apple AGX
|
||||||
|
"crocus", // Intel legacy
|
||||||
|
"etnaviv", // Vivante GPU designs (mostly NXP/Marvell SoCs)
|
||||||
|
"freedreno", // Qualcomm Adreno (all Qualcomm SoCs)
|
||||||
|
"i915", // Intel extra legacy
|
||||||
|
"iris", // new Intel (Broadwell+)
|
||||||
|
"lima", // ARM Mali 4xx
|
||||||
|
"llvmpipe", // software renderer
|
||||||
|
"nouveau", // Nvidia
|
||||||
|
"panfrost", // ARM Mali Midgard and up (T/G series)
|
||||||
|
"r300", // very old AMD
|
||||||
|
"r600", // less old AMD
|
||||||
|
"radeonsi", // new AMD (GCN+)
|
||||||
|
"softpipe", // older software renderer
|
||||||
|
"svga", // VMWare virtualized GPU
|
||||||
|
"tegra", // Nvidia Tegra SoCs
|
||||||
|
"v3d", // Broadcom VC5 (Raspberry Pi 4)
|
||||||
|
"vc4", // Broadcom VC4 (Raspberry Pi 0-3)
|
||||||
|
"virgl", // QEMU virtualized GPU (aka VirGL)
|
||||||
|
"zink", // generic OpenGL over Vulkan, experimental
|
||||||
|
|
||||||
|
// d3d12: WSL emulated GPU (aka Dozen)
|
||||||
|
// ethosu: accelerator
|
||||||
|
// rocket: accelerator
|
||||||
|
];
|
||||||
|
sep = ",";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Dvulkan-drivers": join {
|
||||||
|
elems = [
|
||||||
|
"amd", // AMD (aka RADV)
|
||||||
|
"broadcom", // Broadcom VC5 (Raspberry Pi 4, aka V3D)
|
||||||
|
"freedreno", // Qualcomm Adreno (all Qualcomm SoCs)
|
||||||
|
"intel", // new Intel (aka ANV)
|
||||||
|
"intel_hasvk", // Intel Haswell/Broadwell, "legacy" Vulkan driver (https://www.phoronix.com/news/Intel-HasVK-Drop-Dead-Code)
|
||||||
|
"panfrost", // ARM Mali Midgard and up (T/G series)
|
||||||
|
"swrast", // software renderer (aka Lavapipe)
|
||||||
|
"virtio", // QEMU virtualized GPU (aka VirGL)
|
||||||
|
"imagination", // PowerVR Rogue
|
||||||
|
"asahi", // Apple AGX
|
||||||
|
"gfxstream", // Android virtualized GPU
|
||||||
|
|
||||||
|
// nouveau: Nouveau (aka NVK), requires rust
|
||||||
|
// microsoft-experimental: WSL virtualized GPU (aka DZN/Dozen)
|
||||||
|
// kosmickrisp: macOS-specific
|
||||||
|
];
|
||||||
|
sep = ",";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Dvulkan-layers": join {
|
||||||
|
elems = [
|
||||||
|
"device-select",
|
||||||
|
"intel-nullhw",
|
||||||
|
"overlay",
|
||||||
|
"screenshot",
|
||||||
|
"anti-lag",
|
||||||
|
"vram-report-limit",
|
||||||
|
];
|
||||||
|
sep = ",";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Dfreedreno-kmds": "msm,virtio";
|
||||||
|
"Damdgpu-virtio": "true";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
m4,
|
||||||
|
python-packaging,
|
||||||
|
python-mako,
|
||||||
|
python-pyyaml,
|
||||||
|
python-pycparser,
|
||||||
|
glslang,
|
||||||
|
spirv-llvm-translator,
|
||||||
|
|
||||||
|
zlib,
|
||||||
|
zstd,
|
||||||
|
gzip,
|
||||||
|
ncurses,
|
||||||
|
libglvnd,
|
||||||
|
libexpat,
|
||||||
|
libva,
|
||||||
|
libdrm,
|
||||||
|
elfutils,
|
||||||
|
bison,
|
||||||
|
flex,
|
||||||
|
lm_sensors,
|
||||||
|
libconfig,
|
||||||
|
libdisplay-info,
|
||||||
|
wayland,
|
||||||
|
wayland-protocols,
|
||||||
|
libxshmfence,
|
||||||
|
libXxf86vm,
|
||||||
|
libXrandr,
|
||||||
|
libxcb-util-keysyms,
|
||||||
|
libpng,
|
||||||
|
libarchive,
|
||||||
|
kernel-headers,
|
||||||
|
];
|
||||||
|
|
||||||
|
runtime = [
|
||||||
|
libdrm,
|
||||||
|
elfutils,
|
||||||
|
lm_sensors,
|
||||||
|
libdisplayInfo,
|
||||||
|
wayland,
|
||||||
|
libxshmfence,
|
||||||
|
libXxf86vm,
|
||||||
|
libXrandr,
|
||||||
|
libxcb-util-keysyms,
|
||||||
|
libpng,
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -15,7 +15,6 @@ var (
|
|||||||
DBus = H("dbus")
|
DBus = H("dbus")
|
||||||
DTC = H("dtc")
|
DTC = H("dtc")
|
||||||
Diffutils = H("diffutils")
|
Diffutils = H("diffutils")
|
||||||
Elfutils = H("elfutils")
|
|
||||||
Findutils = H("findutils")
|
Findutils = H("findutils")
|
||||||
Flex = H("flex")
|
Flex = H("flex")
|
||||||
FontUtil = H("font-util")
|
FontUtil = H("font-util")
|
||||||
@@ -26,7 +25,6 @@ var (
|
|||||||
Gawk = H("gawk")
|
Gawk = H("gawk")
|
||||||
GenInitCPIO = H("gen_init_cpio")
|
GenInitCPIO = H("gen_init_cpio")
|
||||||
Gettext = H("gettext")
|
Gettext = H("gettext")
|
||||||
Glslang = H("glslang")
|
|
||||||
Go = H("go")
|
Go = H("go")
|
||||||
Gzip = H("gzip")
|
Gzip = H("gzip")
|
||||||
Hakurei = H("hakurei")
|
Hakurei = H("hakurei")
|
||||||
@@ -37,29 +35,20 @@ var (
|
|||||||
LibXdmcp = H("libXdmcp")
|
LibXdmcp = H("libXdmcp")
|
||||||
LibXext = H("libXext")
|
LibXext = H("libXext")
|
||||||
LibXfont2 = H("libXfont2")
|
LibXfont2 = H("libXfont2")
|
||||||
LibXrandr = H("libXrandr")
|
|
||||||
LibXrender = H("libXrender")
|
LibXrender = H("libXrender")
|
||||||
LibXxf86vm = H("libXxf86vm")
|
|
||||||
Libarchive = H("libarchive")
|
|
||||||
Libbsd = H("libbsd")
|
Libbsd = H("libbsd")
|
||||||
Libconfig = H("libconfig")
|
|
||||||
LibdisplayInfo = H("libdisplay-info")
|
|
||||||
Libdrm = H("libdrm")
|
|
||||||
Libepoxy = H("libepoxy")
|
Libepoxy = H("libepoxy")
|
||||||
Libexpat = H("libexpat")
|
Libexpat = H("libexpat")
|
||||||
Libffi = H("libffi")
|
Libffi = H("libffi")
|
||||||
Libfontenc = H("libfontenc")
|
Libfontenc = H("libfontenc")
|
||||||
Libglvnd = H("libglvnd")
|
|
||||||
Libmd = H("libmd")
|
Libmd = H("libmd")
|
||||||
Libmnl = H("libmnl")
|
Libmnl = H("libmnl")
|
||||||
Libnftnl = H("libnftnl")
|
Libnftnl = H("libnftnl")
|
||||||
Libpciaccess = H("libpciaccess")
|
Libpciaccess = H("libpciaccess")
|
||||||
Libpng = H("libpng")
|
|
||||||
Libseccomp = H("libseccomp")
|
Libseccomp = H("libseccomp")
|
||||||
Libtasn1 = H("libtasn1")
|
Libtasn1 = H("libtasn1")
|
||||||
Libtirpc = H("libtirpc")
|
Libtirpc = H("libtirpc")
|
||||||
Libtool = H("libtool")
|
Libtool = H("libtool")
|
||||||
Libva = H("libva")
|
|
||||||
LibxcbRenderUtil = H("libxcb-render-util")
|
LibxcbRenderUtil = H("libxcb-render-util")
|
||||||
LibxcbUtil = H("libxcb-util")
|
LibxcbUtil = H("libxcb-util")
|
||||||
LibxcbUtilImage = H("libxcb-util-image")
|
LibxcbUtilImage = H("libxcb-util-image")
|
||||||
@@ -70,7 +59,6 @@ var (
|
|||||||
Libxml2 = H("libxml2")
|
Libxml2 = H("libxml2")
|
||||||
Libxshmfence = H("libxshmfence")
|
Libxshmfence = H("libxshmfence")
|
||||||
Libxtrans = H("libxtrans")
|
Libxtrans = H("libxtrans")
|
||||||
LMSensors = H("lm_sensors")
|
|
||||||
M4 = H("m4")
|
M4 = H("m4")
|
||||||
NSS = H("nss")
|
NSS = H("nss")
|
||||||
NSSCACert = H("nss-cacert")
|
NSSCACert = H("nss-cacert")
|
||||||
@@ -80,16 +68,11 @@ var (
|
|||||||
Patch = H("patch")
|
Patch = H("patch")
|
||||||
Pixman = H("pixman")
|
Pixman = H("pixman")
|
||||||
PkgConfig = H("pkg-config")
|
PkgConfig = H("pkg-config")
|
||||||
PythonMako = H("python-mako")
|
|
||||||
PythonPackaging = H("python-packaging")
|
|
||||||
PythonPyTest = H("python-pytest")
|
PythonPyTest = H("python-pytest")
|
||||||
PythonPyYAML = H("python-pyyaml")
|
|
||||||
PythonPycparser = H("python-pycparser")
|
|
||||||
PythonSetuptools = H("python-setuptools")
|
PythonSetuptools = H("python-setuptools")
|
||||||
PythonWheel = H("python-wheel")
|
PythonWheel = H("python-wheel")
|
||||||
QEMU = H("qemu")
|
QEMU = H("qemu")
|
||||||
Sed = H("sed")
|
Sed = H("sed")
|
||||||
SPIRVLLVMTranslator = H("spirv-llvm-translator")
|
|
||||||
SquashfsTools = H("squashfs-tools")
|
SquashfsTools = H("squashfs-tools")
|
||||||
Toybox = H("toybox")
|
Toybox = H("toybox")
|
||||||
toyboxEarly = H("toybox-early")
|
toyboxEarly = H("toybox-early")
|
||||||
|
|||||||
Reference in New Issue
Block a user