diff --git a/x11/wm/muffin/actions.py b/x11/wm/muffin/actions.py
index 0c53fe1e2a..8c1363a4d1 100644
--- a/x11/wm/muffin/actions.py
+++ b/x11/wm/muffin/actions.py
@@ -10,7 +10,9 @@ def setup():
mesontools.configure("--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/muffin \
- --localstatedir=/var")
+ --localstatedir=/var \
+ -Degl_device=true \
+ -Dwayland_eglstream=true")
def build():
mesontools.build()
diff --git a/x11/wm/muffin/pspec.xml b/x11/wm/muffin/pspec.xml
index b4d31ebf1a..73fb1ac047 100644
--- a/x11/wm/muffin/pspec.xml
+++ b/x11/wm/muffin/pspec.xml
@@ -33,6 +33,7 @@
libXfixes-devel
libXi-devel
libXrandr-devel
+ egl-wayland-devel
startup-notification-devel
libcanberra-devel
libwacom-devel