# $Id$ PNAME="kdrive" PVER="1.8.0" PBUILD="r1" PCATEGORIE="x11-base" STATE="unstable" DESCRIPTION="Modular X.Org X Server." HOMEPAGE="http://xorg.freedesktop.org" sminclude xorg mtools cleanutils mcore-split PROVIDE="virtual/x11" DEPEND=">= x11-libs/libXfont-1.4.1 >= x11-libs/libXau-1.0.5 >= x11-libs/libXext-1.1 >= x11-libs/libX11-1.3.1 >= x11-libs/libXdmcp-1.0.3 >= x11-libs/pixman-0.16.2 >= media-libs/freetype-2.3.9 >= media-fonts/font-misc-misc-1 >= media-fonts/font-cursor-misc-1" # >= x11-libs/libXv-1.0.5 SDEPEND=">= x11-libs/xtrans-1.2 >= x11-proto/randrproto-1.3 < x11-proto/renderproto-0.11 >= x11-proto/fixesproto-4.1 >= x11-proto/damageproto-1.2 >= x11-proto/xextproto-7.1.1 >= x11-proto/xproto-7.0.16 >= x11-proto/xf86dgaproto-2.1 >= x11-proto/xf86miscproto-0.9.3 >= x11-proto/xf86vidmodeproto-2.3 >= x11-proto/xf86bigfontproto-1.2.0 >= x11-proto/compositeproto-0.4.1 >= x11-proto/recordproto-1.14 >= x11-proto/resourceproto-1.1.0 >= x11-proto/videoproto-2.3.0 >= x11-proto/scrnsaverproto-1.2.0 >= x11-proto/evieext-1.1.0 >= x11-proto/xineramaproto-1.2 >= x11-proto/fontsproto-2.1.0 >= x11-proto/kbproto-1.0.4 >= x11-proto/inputproto-2.0 >= x11-proto/bigreqsproto-1.1.0 >= x11-proto/xcmiscproto-1.2.0 >= x11-apps/mkfontdir-1.0.5 >= x11-apps/mkfontscale-1.0.7" SRCFILE="xorg-server-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/xorg-server-${PVER}" SRC_URI=( http://ftp.x.org/pub/individual/xserver/${SRCFILE} mirror://xorg-server/${SRCFILE} mirror://xorg-server/xorg-server-1.4-fpic-libxf86config.patch mirror://xorg-server/xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch ) UP2SUBDIR="xserver" UP2DATE="updatecmd_xorg xorg-server" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes fpic issues with libxf86config on 64bit systems mpatch xorg-server-1.4-fpic-libxf86config.patch || die # adopted from redhat; use a black background mpatch xorg-server-1.2.0-die-ugly-pattern-die-die-die.patch || die # fix build issues, some wrapper files which should be generated # at build time exist and the makefile doesn't whipe them. we patch # the makefile to clean them and whipe these wrapper files rm -f ${SRCDIR}/hw/xprint/*-wrapper.c || die autoreconf --install --force || die } src_compile() { cd ${SRCDIR} xorg_src_configure \ --sysconfdir=/etc/X11 \ --localstatedir=/var \ --with-default-font-path=built-ins \ --enable-install-setuid \ --enable-ipv6 \ --enable-kdrive \ --disable-xephyr \ --disable-static \ --disable-dmx \ --disable-xvfb \ --disable-xnest \ --disable-install-libxf86config \ --disable-dri \ --disable-dri2 \ --disable-xorg \ --disable-xprint \ --disable-glx-tls \ --disable-glx \ --disable-composite \ --disable-xorgcfg \ --disable-screensaver \ --disable-xdmcp \ --disable-xinerama \ --disable-dga \ --disable-xkb \ --disable-xevie \ --disable-xprint \ --disable-xtrap \ --disable-w100 \ --disable-xsdl \ --disable-config-dbus \ --disable-config-hal \ --enable-config-udev \ || die mmake || die } src_install() { cd ${SRCDIR} xorg_src_install # suid all tinyX servers mchmod 4755 /usr/bin/X\* || die # cleanup zapmost ${BINDIR}/usr bin share/man || die if [[ -e ${BINDIR}/usr/bin/Xephyr ]] then rm ${BINDIR}/usr/bin/Xephyr || die fi if [[ -e ${BINDIR}/usr/share/man1/Xephyr.1 ]] then rm ${BINDIR}/usr/share/man1/Xephyr.1 || die fi # needed directory mkeepdir /usr/share/X11/xkb/compiled || die }