# no documentation on i486
makedepends=(${makedepends[@]//graphviz/})
makedepends=(${makedepends[@]//doxygen/})
makedepends_i686+=(graphviz doxygen)
makedepends_pentium4=("${makedepends_i686[@]}")

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no documentation

  eval "$(
    declare -f build | \
      sed '
        s/arch-meson/arch-meson -Denable-docs=false/
      '
  )"

  eval "$(
    declare -f package_libxkbcommon | \
      sed '
        /mv.*doc/d
      '
  )"

  eval "$(
    declare -f package_libxkbcommon-doc | \
      sed '
        /mv.*doc/d
      '
  )"
  
  # uses MESA, xorg-xcb
  unset check
  unset checkdepends

  # disable X11 during bootstrapping
  eval "$(
    declare -f build | \
      sed '
        s/arch-meson/arch-meson -Denable-x11=false/
      '
  )"  
  
  eval "$(
    declare -f package_libxkbcommon | \
      sed '
        /x11/d
      '
  )"  
  
  eval "$(
    declare -f package_libxkbcommon-x11 | \
      sed '
        /mv/,/ln/d
      '
  )"  

fi