summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-12 19:54:51 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-12 19:54:51 +0000
commitac4fac7dfbdeba46ce24b279205049774fd5c8fa (patch)
tree47c2231f34d25208104d38464c529131538fe746 /lib/Xconfig
parent7852f18586352b52a5ffd8892c1c4f25cf60b745 (diff)
downloaddrakx-kbd-mouse-x11-ac4fac7dfbdeba46ce24b279205049774fd5c8fa.tar
drakx-kbd-mouse-x11-ac4fac7dfbdeba46ce24b279205049774fd5c8fa.tar.gz
drakx-kbd-mouse-x11-ac4fac7dfbdeba46ce24b279205049774fd5c8fa.tar.bz2
drakx-kbd-mouse-x11-ac4fac7dfbdeba46ce24b279205049774fd5c8fa.tar.xz
drakx-kbd-mouse-x11-ac4fac7dfbdeba46ce24b279205049774fd5c8fa.zip
one definition for libdir
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/proprietary.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index fba7854..350a116 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -7,6 +7,7 @@ use common;
use Xconfig::card;
my $lib = arch() =~ /x86_64/ ? "lib64" : "lib";
+my $libdir = "/usr/$lib";
sub install_matrox_hal {
my ($prefix) = @_;
@@ -71,7 +72,7 @@ sub may_use_Driver2 {
my $check_drv = sub {
my ($drv, $o_subdir) = @_;
my @l = (if_($o_subdir, "$modules_dir/drivers/$o_subdir/$drv.so",
- "/usr/$lib/$o_subdir/xorg/$drv.so"),
+ "$libdir/$o_subdir/xorg/$drv.so"),
"$modules_dir/drivers/$drv.so",
"$modules_dir/drivers/$drv.o");
my $has = find { -e "$::prefix$_" } @l;
@@ -89,7 +90,7 @@ sub may_use_Driver2 {
if ($card2->{Driver} eq 'nvidia') {
$check_drv->('nvidia_drv', "nvidia$card2->{DriverVersion}") or return;
- my $libglx_path = "/usr/$lib/nvidia$card2->{DriverVersion}/xorg";
+ my $libglx_path = "$libdir/nvidia$card2->{DriverVersion}/xorg";
-e "$::prefix$libglx_path/libglx.so" or log::l("special NVIDIA libglx missing"), return;
log::explanations("Using specific NVIDIA driver and GLX extensions");
@@ -100,7 +101,7 @@ sub may_use_Driver2 {
} elsif ($card2->{Driver} eq 'fglrx') {
$check_drv->('fglrx_drv', "fglrx$card2->{DriverVersion}") or return;
find { -e "$::prefix/$_/dri/fglrx_dri.so" } (
- "/usr/$lib/fglrx$card2->{DriverVersion}", $modules_dir, "/usr/$lib") or
+ "$libdir/fglrx$card2->{DriverVersion}", $modules_dir, $libdir) or
log::l("proprietary fglrx_dri.so missing"), return;
log::explanations("Using specific ATI fglrx and DRI drivers");