summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2006-04-20 23:43:48 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2006-04-20 23:43:48 +0000
commitd359b65e451b7727d4502cadf9407d57424a36b2 (patch)
treeae76f1c0536abd0be82b1e8199451f434edeee18 /eclass/x-modular.eclass
parentstop building the audio-inline plugin since it deps on gstreamer-0.8. fixes ... (diff)
downloadgentoo-2-d359b65e451b7727d4502cadf9407d57424a36b2.tar.gz
gentoo-2-d359b65e451b7727d4502cadf9407d57424a36b2.tar.bz2
gentoo-2-d359b65e451b7727d4502cadf9407d57424a36b2.zip
(#120057) Enabling DRI in drivers requires that the server was built with support for it.
Diffstat (limited to 'eclass/x-modular.eclass')
-rw-r--r--eclass/x-modular.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass
index 032f946ad13c..db889e71c707 100644
--- a/eclass/x-modular.eclass
+++ b/eclass/x-modular.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.52 2006/04/03 23:49:32 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.53 2006/04/20 23:43:48 spyderous Exp $
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
#
@@ -176,6 +176,17 @@ RDEPEND="${RDEPEND}
# x11-base/x11-env"
x-modular_unpack_source() {
+ # (#120057) Enabling DRI in drivers requires that the server was built with
+ # support for it
+ if [[ -n "${DRIVER}" ]]; then
+ if has dri ${IUSE} && use dri; then
+ einfo "Checking for direct rendering capabilities ..."
+ if ! built_with_use x11-base/xorg-server dri; then
+ die "You must build x11-base/xorg-server with USE=dri."
+ fi
+ fi
+ fi
+
unpack ${A}
cd ${S}