# libglvnd missing on i486
if [ "$CARCH" = 'i486' ]; then
  makedepends+=(libglvnd)
fi

# no wayland on i486
if [ "$CARCH" = 'i486' ]; then
  eval "$(
    declare -f build | \
      sed '
        s/--enable-{kms,wayland}-egl-platform/--enable-kms/
        s/--enable-wayland-egl-server//
      '
  )"
fi