PKG_NAME="xorg-server"
PKG_VERSION="1.9.3"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://www.X.org"
PKG_URL="http://xorg.freedesktop.org/archive/individual/xserver/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="libpciaccess freetype openssl libX11 libXfont libdrm Mesa pixman udev"
PKG_BUILD_DEPENDS="toolchain util-macros font-util fontsproto randrproto renderproto scrnsaverproto videoproto inputproto xf86dgaproto xf86driproto xf86miscproto glproto libpciaccess libX11 libXfont libxkbfile libdrm Mesa-GL openssl freetype pixman fontsproto udev"
PKG_PRIORITY="optional"
PKG_SECTION="x11/xserver"
PKG_SHORTDESC="xorg-server: The Xorg X server"
PKG_LONGDESC="Xorg is a full featured X server that was originally designed for UNIX and UNIX-like operating systems running on Intel x86 hardware."
PKG_IS_ADDON="no"

PKG_AUTORECONF="yes"

get_graphicdrivers
if [ "$XINERAMA_SUPPORT" = "yes" ]; then
  PKG_DEPENDS="$PKG_DEPENDS libXinerama"
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libXinerama"
fi

# Additional packages we need for using xorg-server:
# Fonts
  PKG_DEPENDS="$PKG_DEPENDS encodings font-xfree86-type1 font-bitstream-type1 font-misc-misc"

# Server
  PKG_DEPENDS="$PKG_DEPENDS xkeyboard-config xkbcomp"

# Drivers
  PKG_DEPENDS="$PKG_DEPENDS xf86-input-evdev"

  for drv in $XORG_DRIVERS; do
    PKG_DEPENDS="$PKG_DEPENDS xf86-video-$drv"
  done

# Tools
  PKG_DEPENDS="$PKG_DEPENDS pciutils ratpoison xrandr"
