--- x11/driver/Makefile.orig 2012-12-12 15:39:41.000000000 +0100 +++ x11/driver/Makefile 2014-01-28 22:28:05.000000000 +0100 @@ -5,7 +5,7 @@ .endif DRIVERS= nvidia_drv.o nvidia_drv.so -.if exists(${X11BASE}/lib/xorg/modules/drivers) +.if exists(${DESTDIR}${X11BASE}/lib/xorg/modules/drivers) DRIVERDIR= ${X11BASE}/lib/xorg/modules/drivers .else DRIVERDIR= ${X11BASE}/lib/modules/drivers