# $Id$ PNAME="xf86-video-openchrome" PVER="0.3.3" PBUILD="r5" PCAT="x11-drivers" DEPEND=">= x11-libs/libdrm-2.4.61 >= media-libs/mesa-gallium-swrast-10.6 == virtual/X-ABI-VIDEODRV-19" SDEPEND=">= x11-libs/libX11-1.6" ALX_PKG_KEEP="usr/$(mlibdir)/xorg/modules/drivers/openchrome_drv.so" sminclude xorg alx-split SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-missing-include-with-xorg-116.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix ftbfs with newer xorg-headers # see: http://lists.x.org/archives/xorg-devel/2014-July/042950.html mpatch ${PNAME}-${PVER}-missing-include-with-xorg-116.patch || die # disable xvmc in openchrome-drivers sed -i "s:XVMC=yes:XVMC=no:g" configure.ac || die mautoreconf || die } src_compile() { cd ${SRCDIR} xorg_src_configure --enable-dri --disable-xvmc || die mmake || die }