# $Id$ PNAME="kdrive" PVER="1.6.1" PBUILD="r1" PCATEGORIE="x11-base" STATE="broken" DESCRIPTION="Modular X.Org X Server." HOMEPAGE="http://xorg.freedesktop.org" sminclude xorg mtools PROVIDE="virtual/x11" DEPEND=">= x11-libs/libXfont-1 >= x11-libs/libXau-1 >= x11-libs/libXext-1 >= x11-libs/libX11-1 >= x11-libs/libXdmcp-1 >= x11-libs/pixman-0.9 >= media-libs/freetype-2 >= media-fonts/font-misc-misc-1 >= media-fonts/font-cursor-misc-1" # >= x11-proto/renderproto-0.9.3 only works with >= xorg-server-1.4 SDEPEND=">= x11-libs/xtrans-1 >= x11-proto/randrproto-1 < x11-proto/renderproto-0.9.3 >= x11-proto/fixesproto-1 >= x11-proto/damageproto-1 >= x11-proto/xextproto-1 >= x11-proto/xproto-1 >= x11-proto/xf86dgaproto-1 >= x11-proto/xf86miscproto-1 >= x11-proto/xf86rushproto-1 >= x11-proto/xf86vidmodeproto-1 >= x11-proto/xf86bigfontproto-1 >= x11-proto/compositeproto-1 >= x11-proto/recordproto-1 >= x11-proto/resourceproto-1 >= x11-proto/videoproto-1 >= x11-proto/scrnsaverproto-1 >= x11-proto/evieext-1 >= x11-proto/trapproto-1 >= x11-proto/xineramaproto-1.1 >= x11-proto/fontsproto-1 >= x11-proto/kbproto-1.0 >= x11-proto/inputproto-1 >= x11-proto/bigreqsproto-1 >= x11-proto/xcmiscproto-1 >= x11-proto/printproto-1 >= x11-apps/mkfontdir-1 >= x11-apps/mkfontscale-1" # >= x11-proto/xf86driproto-1" 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 mirror://xorg-server/xorg-server-1.4.99.906-no-evdev-keyboards.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 # no evdev keyboarding; it is just too broken mpatch xorg-server-1.4.99.906-no-evdev-keyboards.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} # fixes compilation on x86_64; kdrive cannot build natively on 64bit # the drivers are using 32bit-only asm and does not build. # fbdev only works on 64bit hosts and that does not satisfy us. if [[ ${ARCH} = x86_64 ]] then export CC="gcc -m32" export CXX="g++ -m32" fi xorg_src_configure \ --sysconfdir=/etc/X11 \ --localstatedir=/var \ --with-default-font-path=built-ins \ --enable-install-setuid \ --enable-ipv6 \ --enable-kdrive \ --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 \ || die mmake || die } src_install() { cd ${SRCDIR} xorg_src_install # suid all tinyX servers mchmod 4755 /usr/bin/X\* || die }