--- xorg-x11-6.7.0-r1.ebuild.orig 2004-06-16 13:17:32.875179376 +0100 +++ xorg-x11-6.7.0-r1.ebuild 2004-06-16 13:16:51.314497560 +0100 @@ -76,6 +76,8 @@ #MGADRV_VER="1_3_0beta" #VIADRV_VER="0.1" XFSFT_ENC_VER="0.1" +UNICHROME_VER="r20" +LIBVIAXvMC_VER="0.9.3" S="${WORKDIR}/xc" @@ -113,6 +115,10 @@ doc? ( http://freedesktop.org/~xorg/X11R${PV}/src//X11R${PV}-src6.tar.gz http://freedesktop.org/~xorg/X11R${PV}/src//X11R${PV}-src7.tar.gz + ) + unichrome? ( + mirror://sourceforge/unichrome/unichrome-X-${UNICHROME_VER}.tar.gz + mirror://sourceforge/unichrome/XFree86-4.4-libviaXvMC-${LIBVIAXvMC_VER}-patch.bz2 )" # SRC_URI="${SRC_URI} # ${XLIBS}" @@ -684,6 +690,21 @@ done fi + # Use unichrome via drivers http://unichrome.sourceforge.net/ + if use unichrome + then + ebegin "Applying Unichrome via patches" + cd ${S}/programs/Xserver/hw/xfree86/drivers + unpack unichrome-X-${UNICHROME_VER}.tar.gz || die "unpacking unichrome patches failed." + rm -rf via + ln -s unichrome-X-${UNICHROME_VER} via + eend 0 + ebegin "Applying libviaXvMC patch" + cd ${S} + epatch ${DISTDIR}/XFree86-4.4-libviaXvMC-${LIBVIAXvMC_VER}-patch.bz2 || die "libviaXvMC patch failed" + eend 0 + fi + } src_compile() {