# $Header: /alx-cvs/smage-eglibc/xorg-server/xorg-server-1.4.99.902-r2.smage2,v 1.8 2008/06/25 12:00:15 niro Exp $ PNAME="xorg-server" PVER="1.4.99.902" PBUILD="r2" PCATEGORIE="x11-base" STATE="unstable" DESCRIPTION="Modular X.Org X Server." HOMEPAGE="http://xorg.freedesktop.org" PROVIDE="virtual/x11" DEPEND=">= x11-libs/libXfont-1.3.1 >= x11-libs/libXau-1.0.3 >= x11-libs/libXext-1.0.3 >= x11-libs/libX11-1.1.3 >= x11-libs/libxkbfile-1.0.4 >= x11-libs/libXdmcp-1.0.2 >= x11-libs/libXmu-1.0.4 >= x11-libs/libXrender-0.9.4 >= x11-libs/libXi-1.1.3 >= media-libs/freetype-2.3.5 >= media-fonts/font-misc-misc-1 >= media-fonts/font-cursor-misc-1 >= x11-libs/libXpm-3.5.7 >= x11-libs/libXxf86misc-1.0.1 >= x11-libs/libXxf86vm-1.0.1 >= x11-libs/libXtst-1.0.3 >= x11-libs/libXres-1.0.3 >= x11-libs/libxkbui-1.0.2 >= x11-libs/liblbxutil-1.0.1 >= x11-libs/pixman-0.10 >= x11-libs/libpciaccess-0.10 >= x11-misc/xkeyboard-config-1.2" # >= x11-misc/xbitmaps-1.0.1 # >= x11-apps/iceauth-1.0.2 # >= x11-apps/rgb-1.0.1 # >= x11-apps/xauth-1.0.2 # >= x11-apps/xinit-1.0.7 SDEPEND=">= x11-libs/xtrans-1.2 >= x11-proto/randrproto-1.2.1 >= x11-proto/renderproto-0.9.3 >= x11-proto/fixesproto-4 >= x11-proto/damageproto-1.1 >= x11-proto/xextproto-7.0.2 >= x11-proto/xproto-7.0.11 >= x11-proto/xf86dgaproto-2.0.3 >= x11-proto/xf86miscproto-0.9.2 >= x11-proto/xf86rushproto-1.1.2 >= x11-proto/xf86vidmodeproto-2.2.2 >= x11-proto/xf86bigfontproto-1.1.2 >= x11-proto/recordproto-1.13.2 >= x11-proto/resourceproto-1.0.2 >= x11-proto/videoproto-2.2.2 >= x11-proto/scrnsaverproto-1.1.0 >= x11-proto/evieext-1.0.2 >= x11-proto/trapproto-3.4.3 >= x11-proto/xineramaproto-1.1.2 >= x11-proto/fontsproto-2.0.2 >= x11-proto/kbproto-1.0.3 >= x11-proto/inputproto-1.4.2.1 >= x11-proto/bigreqsproto-1.0.2 >= x11-proto/xcmiscproto-1.1.2 >= x11-apps/mkfontdir-1.0.3 >= x11-apps/mkfontscale-1.0.3 >= x11-misc/xbitmaps-1.0.1 >= x11-libs/libXv-1" sminclude xorg mtools alx SRC_URI=( ${SRC_URI[*]} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.4-fpic-libxf86config.patch mirror://${PNAME}/${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch mirror://${PNAME}/${PNAME}-1.4.99.901-no-evdev-keyboards.patch mirror://${PNAME}/${PNAME}-${PVER}-fix-xaa-dependencies-to-build-without-composite-2.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes fpic issues with libxf86config on 64bit systems mpatch ${PNAME}-1.4-fpic-libxf86config.patch || die # adopted from redhat; use a black background mpatch ${PNAME}-1.2.0-die-ugly-pattern-die-die-die.patch || die # no evdev keyboarding; it is just too broken mpatch ${PNAME}-1.4.99.901-no-evdev-keyboards.patch || die # alx only: # fix xaa dependencies - do not depend on composite wrappers # see: http://article.gmane.org/gmane.comp.embedded.ptxdist.devel/3858 mpatch ${PNAME}-${PVER}-fix-xaa-dependencies-to-build-without-composite-2.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 --verbose --install --force || die } src_compile() { cd ${SRCDIR} xorg_src_configure \ --sysconfdir=/etc/X11 \ --localstatedir=/var \ --with-xkb-output=/var/lib/xkb \ --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \ --enable-install-setuid \ --disable-ipv6 \ --disable-dmx \ --disable-xvfb \ --disable-xnest \ --disable-dri \ --disable-dri2 \ --enable-xorg \ --enable-xtrap \ --enable-xevie \ --disable-xprint \ --disable-glx-tls \ --disable-glx \ --disable-static \ --disable-config-dbus \ --disable-config-hal \ --disable-composite \ || die mmake || die } src_install() { xorg_src_install || die # missing symlink mlink Xorg /usr/bin/X || die }