# $Id$ PNAME="xf86-video-openchrome" PVER="0.2.904_svn858" PBUILD="r2" PCATEGORIE="x11-drivers" STATE="unstable" DESCRIPTION="Xorg video driver for ${PNAME/xf86-video-/} devices." HOMEPAGE="http://xorg.freedesktop.org" DEPEND=">= x11-libs/libdrm-2.4.23" SDEPEND=">= x11-libs/libX11-1 >= x11-proto/xf86driproto-1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" MCORE_ONLY_KEEP="usr/$(mlibdir)/xorg/modules/drivers/openchrome_drv.so" sminclude xorg mcore-split SRC_URI=( http://www.openchrome.org/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.openchrome.org/releases/ | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # disable xvmc in openchrome-drivers sed -i "s:XVMC=yes:XVMC=no:g" configure.ac || die autoreconf --verbose --install --force || die } src_compile() { cd ${SRCDIR} xorg_src_configure --enable-dri --disable-xvmc || die mmake || die }