PKGNAME=gamescope
PKGSEC=x11
PKGDEP="gcc-runtime glibc libavif libcap libdecor libdrm libei libinput \
        libxkbcommon luajit pipewire pixman sdl2 seatd systemd wayland x11-lib \
        xwayland mangohud"
BUILDDEP="benchmark cmake glm glslang meson xcb-util-errors"
PKGDES="Micro-compositor for video games on Wayland"

ABTYPE=meson
MESON_AFTER=(
    '-Dpipewire=enabled'
    '-Drt_cap=enabled'
    '-Ddrm_backend=enabled'
    '-Dsdl2_backend=enabled'
    '-Davif_screenshots=enabled'
    '-Dinput_emulation=enabled'
    '-Denable_gamescope=true'
    '-Denable_gamescope_wsi_layer=true'
    '-Denable_openvr_support=true'
    '-Dbenchmark=enabled'
    '-Dforce_fallback_for=stb,libdisplay-info,libliftoff,vkroots,wlroots'
)

# Note: Architectures supported by LuaJIT
FAIL_ARCH="!(amd64|armv4|armv6hf|armv7hf|arm64|i486|loongson2f|loongson3|loongarch64|loongarch64_nosimd)"
