diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2010-10-31 21:49:04 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2010-10-31 21:49:04 +0000 |
commit | 2b79b1dc47339f7c0001589b386df2a82514b0b8 (patch) | |
tree | b6e0a839b4bb270c53c58322d44459d228b35b08 | |
parent | update mesa.eselect (diff) | |
download | eselect-2b79b1dc47339f7c0001589b386df2a82514b0b8.tar.gz eselect-2b79b1dc47339f7c0001589b386df2a82514b0b8.tar.bz2 eselect-2b79b1dc47339f7c0001589b386df2a82514b0b8.zip |
mesa.eselect: update for new media-libs/mesa ebuild
svn path=/trunk/extern/; revision=777
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | modules/mesa.eselect | 33 |
2 files changed, 12 insertions, 25 deletions
@@ -1,3 +1,7 @@ +2010-10-31 Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + + * modules/mesa.eselect: Update for new media-libs/mesa ebuild + 2010-02-26 Ulrich Mueller <ulm@gentoo.org> * modules/vi.eselect (set_symlinks): Fix handling of ROOT in diff --git a/modules/mesa.eselect b/modules/mesa.eselect index d526a23..4fcbcb3 100644 --- a/modules/mesa.eselect +++ b/modules/mesa.eselect @@ -6,35 +6,14 @@ DESCRIPTION="Manage the OpenGL driver architecture used by media-libs/mesa" MAINTAINER="x11@gentoo.org" SVN_DATE='$Date: $' VERSION=$(svn_date_to_version "${SVN_DATE}" ) -EBUILD_VERSION="0.0.5" - -# Known mesa classic/gallium implementations -MESA_IMPLEMENTATIONS="i915 i965 r300 r600 sw" -declare -A MESA_DRIVERS || die "MESA_DRIVERS already in environment and not associative." - -MESA_DRIVERS[i915,description]="i915 (Intel 915, 945)" -MESA_DRIVERS[i915,classicdriver]="i915_dri.so" -MESA_DRIVERS[i915,galliumdriver]="i915g_dri.so" - -MESA_DRIVERS[i965,description]="i965 (Intel 965, G/Q3x, G/Q4x)" -MESA_DRIVERS[i965,classicdriver]="i965_dri.so" -MESA_DRIVERS[i965,galliumdriver]="i965g_dri.so" - -MESA_DRIVERS[r300,description]="r300 (Radeon R300-R500)" -MESA_DRIVERS[r300,classicdriver]="r300_dri.so" -MESA_DRIVERS[r300,galliumdriver]="r300g_dri.so" - -MESA_DRIVERS[r600,description]="r600 (Radeon R600-R700)" -MESA_DRIVERS[r600,classicdriver]="r600_dri.so" -MESA_DRIVERS[r600,galliumdriver]="r600g_dri.so" - -MESA_DRIVERS[sw,description]="sw (Software renderer)" -MESA_DRIVERS[sw,classicdriver]="swrast_dri.so" -MESA_DRIVERS[sw,galliumdriver]="swrastg_dri.so" +EBUILD_VERSION="0.0.7" +CONFIG_DIR="${EROOT}/usr/share/mesa" MESA_DIR="${EROOT}/usr/lib/mesa" DRI_DIR="${EROOT}/usr/lib/dri" +source "${CONFIG_DIR}"/eselect-mesa.conf || die "Failed to source config" + # receives a filename of the driver as argument, outputs the architecture (classic or gallium) drivername_to_architecture() { local drivername=$1 @@ -153,6 +132,10 @@ do_set() { local x for x in ${MESA_IMPLEMENTATIONS}; do local y=( $(get_implementations ${x}) ) + # prefer default implementation + if [[ ${y[1]} == ${MESA_DRIVERS[${x},default]} ]]; then + y=${y[1]} + fi if [[ -n ${y} && ! -n $(get_current_implementation ${x}) ]]; then do_set ${x} ${y} fi |