PKGNAME=mangohud
PKGSEC=utils
PKGDEP="libglvnd glslang mesa dbus x11-lib wayland libxkbcommon glfw"
PKGDEP__AMD64="${PKGDEP} libxnvctrl"
PKGDEP__ARM64="${PKGDEP__AMD64}"
BUILDDEP="mako nlohmann-json spdlog vulkan-headers"
PKGDES="A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more"

ABTYPE=meson
MESON_AFTER=(
    '-Dappend_libdir_mangohud=false'
    '-Ddynamic_string_tokens=false'
    '-Dwith_xnvctrl=disabled'
    '-Dmangoapp=true'
    '-Dmangohudctl=true'
    '-Dmangoplot=enabled'
    '-Dtests=disabled'
)
MESON_AFTER__AMD64=(
    "${MESON_AFTER[@]}"
    '-Dwith_xnvctrl=enabled'
)
MESON_AFTER__ARM64=(
    "${MESON_AFTER__AMD64[@]}"
)
