diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2003-03-05 08:07:30 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2003-03-05 08:07:30 +0000 |
commit | ea7ac3b8c82e8d3f2f5bb9b35716aab78e1e7de4 (patch) | |
tree | f8950978a46e1ff34f014c518b4397603ac87956 /x11-base | |
parent | adding missing pciutils dep (diff) | |
download | gentoo-2-ea7ac3b8c82e8d3f2f5bb9b35716aab78e1e7de4.tar.gz gentoo-2-ea7ac3b8c82e8d3f2f5bb9b35716aab78e1e7de4.tar.bz2 gentoo-2-ea7ac3b8c82e8d3f2f5bb9b35716aab78e1e7de4.zip |
made video card drivers selectable via USE
Diffstat (limited to 'x11-base')
-rw-r--r-- | x11-base/xfree-drm/ChangeLog | 5 | ||||
-rw-r--r-- | x11-base/xfree-drm/xfree-drm-4.3.0.ebuild | 66 |
2 files changed, 58 insertions, 13 deletions
diff --git a/x11-base/xfree-drm/ChangeLog b/x11-base/xfree-drm/ChangeLog index e32b15cd69e1..deda7273ffee 100644 --- a/x11-base/xfree-drm/ChangeLog +++ b/x11-base/xfree-drm/ChangeLog @@ -1,6 +1,6 @@ # ChangeLog for x11-base/xfree-drm # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/ChangeLog,v 1.9 2003/03/02 20:22:47 gerk Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/ChangeLog,v 1.10 2003/03/05 08:07:30 seemant Exp $ *xfree-drm-4.3.0-r1 (02 Mar 2003) @@ -9,6 +9,9 @@ *xfree-drm-4.3.0 (28 Feb 2003) + 05 Mar 2003; Seemant Kulleen <seemant@gentoo.org> xfree-drm-4.3.0.ebuild: + using USE variables to determine which specific modules to install + 28 Feb 2003; Seemant Kulleen <seemant@gentoo.org> xfree-drm-4.3.0.ebuild, files/xfree-drm-4.3.0-gentoo-Makefile-fixup.patch: version bump to match xfree's version diff --git a/x11-base/xfree-drm/xfree-drm-4.3.0.ebuild b/x11-base/xfree-drm/xfree-drm-4.3.0.ebuild index 3eff491e2128..214a21fba2c8 100644 --- a/x11-base/xfree-drm/xfree-drm-4.3.0.ebuild +++ b/x11-base/xfree-drm/xfree-drm-4.3.0.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/xfree-drm-4.3.0.ebuild,v 1.1 2003/03/01 00:44:52 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/xfree-drm-4.3.0.ebuild,v 1.2 2003/03/05 08:07:30 seemant Exp $ # Small note: we should prob consider using a DRM only tarball, as it will ease # some of the overhead on older systems, and will enable us to # update DRM if there are fixes not already in XFree86 tarballs ... -IUSE="" +IUSE="3dfx gamma ibm matrox rage128 radeon sis" inherit eutils @@ -33,13 +33,39 @@ DEPEND=">=x11-base/xfree-${PV}" PROVIDE="virtual/drm" + +VIDCARDS="" + +if [ "`use matrox`" ] +then + VIDCARDS="${VIDCARDS} mga.o" +elif [ "`use 3dfx`" ] +then + VIDCARDS="${VIDCARDS} tdfx.o" +elif [ "`use rage128`" ] +then + VIDCARDS="${VIDCARDS} r128.o" +elif [ "`use radeon`" ] +then + VIDCARDS="${VIDCARDS} radeon.o" +elif [ "`use sis`" ] +then + VIDCARDS="${VIDCARDS} sis.o" +elif [ "`use ibm`" ] +then + VIDCARDS="${VIDCARDS} i810.o i830.o" +elif [ "`use gamma`" ] +then + VIDCARDS="${VIDCARDS} gamma.o" +else + VIDCARDS="" +fi + pkg_setup() { - check_KV } src_unpack() { - unpack ${A} cd ${S} @@ -49,20 +75,36 @@ src_unpack() { src_compile() { check_KV - + ln -sf Makefile.linux Makefile einfo "Building DRM..." - make -f Makefile.linux \ - TREE="/usr/src/linux/include" KV="${KV}" + if [ -z "${VIDCARDS}" ] + then + make \ + TREE="/usr/src/linux/include" KV="${KV}" + else + make ${VIDCARDS} \ + TREE="/usr/src/linux/include" KV="${KV}" + fi } src_install() { einfo "installing DRM..." - make -f Makefile.linux \ - TREE="/usr/src/linux/include" \ - KV="${KV}" DESTDIR="${D}" \ - install || die - + if [ -z "${VIDCARDS}" ] + then + make \ + TREE="/usr/src/linux/include" \ + KV="${KV}" \ + DESTDIR="${D}" \ + install || die + else + make \ + TREE="/usr/src/linux/include" \ + KV="${KV}" \ + DESTDIR="${D}" \ + MODS="${VIDCARDS}" \ + install || die + fi dodoc README* } |