st/xorg: Install to XORG_DRIVER_INSTALL_DIR
authorJoel Bosveld <Joel.Bosveld@gmail.com>
Thu, 5 Mar 2009 23:46:08 +0000 (08:46 +0900)
committerJakob Bornecrantz <wallbraker@gmail.com>
Fri, 6 Mar 2009 00:31:49 +0000 (01:31 +0100)
configs/autoconf.in
configs/default
configure.ac
src/gallium/winsys/drm/intel/xorg/Makefile
src/gallium/winsys/drm/radeon/xorg/Makefile

index e034431618168c998705f8126bdd437850f52218..b61d7f33f009eb97bb101c52ac15074923d29716 100644 (file)
@@ -123,6 +123,9 @@ DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
 # Where libGL will look for DRI hardware drivers
 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
 
+# Xorg driver install directory (for xorg state-tracker)
+XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
+
 # pkg-config substitutions
 GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
 GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
index 4eecd9cd52f2f6443c835cd595422e9a39843409..eab36a36775411149c3eb12cec6e53062937e100 100644 (file)
@@ -122,6 +122,9 @@ DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
 # Where libGL will look for DRI hardware drivers
 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
 
+# Xorg driver install directory (for xorg state-tracker)
+XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
+
 # pkg-config substitutions
 GL_PC_REQ_PRIV =
 GL_PC_LIB_PRIV =
index 919b717db468bfe8b568c31e483e7cf4d6f0ba33..46070fd73c91433d6ef0673ad26559834d7ab911 100644 (file)
@@ -1134,6 +1134,13 @@ yes)
     ;;
 esac
 
+AC_ARG_WITH([xorg-driver-dir],
+    [AS_HELP_STRING([--with-xorg-driver-dir=DIR],
+                    [Default xorg driver directory[[default=${libdir}/xorg/modules/drivers]]])],
+    [XORG_DRIVER_INSTALL_DIR="$withval"],
+    [XORG_DRIVER_INSTALL_DIR="${libdir}/xorg/modules/drivers"])
+AC_SUBST([XORG_DRIVER_INSTALL_DIR])
+
 dnl
 dnl Gallium Intel configuration
 dnl
index 8130fdb226503ed5e5532f6c1ad64b9fbe823486..a45ca570db19b9e434ec12e7746ed1e83371e3b9 100644 (file)
@@ -37,6 +37,7 @@ clean:
        rm -rf $(OBJECTS) $(TARGET)
 
 install:
-       cp $(TARGET) /opt/kms/lib/xorg/modules/drivers
+       $(INSTALL) -d $(DESTDIR)/$(XORG_DRIVER_INSTALL_DIR)
+       $(INSTALL) -m 755 $(TARGET) $(DESTDIR)/$(XORG_DRIVER_INSTALL_DIR)
 
 .PHONY = all clean install
index e37261aa63fef56f91bddc8568684dc8ef887874..6ffd4a3a541291c58702f1c2a02bcbb1bee5589a 100644 (file)
@@ -36,6 +36,7 @@ clean:
        rm -rf $(OBJECTS) $(TARGET)
 
 install:
-       cp $(TARGET) /opt/kms/lib/xorg/modules/drivers
+       $(INSTALL) -d $(DESTDIR)/$(XORG_DRIVER_INSTALL_DIR)
+       $(INSTALL) -m 755 $(TARGET) $(DESTDIR)/$(XORG_DRIVER_INSTALL_DIR)
 
 .PHONY = all clean install