hardware/intel/libva
Révision | 4f1b4898eb71b07397095fb22122182bc4f7191d (tree) |
---|---|
l'heure | 2009-07-08 18:42:05 |
Auteur | Gwenole Beauchesne <gbeauchesne@spli...> |
Commiter | Austin Yuan |
Install drivers into pkglibdir/va/.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
@@ -27,6 +27,13 @@ AM_INIT_AUTOMAKE([dist-bzip2]) | ||
27 | 27 | |
28 | 28 | AM_CONFIG_HEADER([config.h]) |
29 | 29 | |
30 | +AC_ARG_WITH(drivers-path, | |
31 | + [AC_HELP_STRING([--with-drivers-path=[[path]]], [drivers path])],, | |
32 | + [with_drivers_path="$libdir/va/drivers"]) | |
33 | + | |
34 | +LIBVA_DRIVERS_PATH="$with_drivers_path" | |
35 | +AC_SUBST(LIBVA_DRIVERS_PATH) | |
36 | + | |
30 | 37 | AC_DISABLE_STATIC |
31 | 38 | AC_PROG_LIBTOOL |
32 | 39 | AC_PROG_CC |
@@ -21,7 +21,7 @@ | ||
21 | 21 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
22 | 22 | |
23 | 23 | dummy_drv_video_la_LTLIBRARIES = dummy_drv_video.la |
24 | -dummy_drv_video_ladir = /usr/lib/dri | |
24 | +dummy_drv_video_ladir = @LIBVA_DRIVERS_PATH@ | |
25 | 25 | dummy_drv_video_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,--no-undefined |
26 | 26 | dummy_drv_video_la_LIBADD = ../src/libva.la |
27 | 27 |
@@ -25,7 +25,7 @@ SUBDIRS = shaders | ||
25 | 25 | AM_CFLAGS = -Wall -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 @DRM_CFLAGS@ -DIN_LIBVA |
26 | 26 | |
27 | 27 | i965_drv_video_la_LTLIBRARIES = i965_drv_video.la |
28 | -i965_drv_video_ladir = $(libdir)/dri | |
28 | +i965_drv_video_ladir = @LIBVA_DRIVERS_PATH@ | |
29 | 29 | i965_drv_video_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,--no-undefined @DRM_LIBS@ -ldrm_intel |
30 | 30 | i965_drv_video_la_LIBADD = ../src/libva.la -lpthread |
31 | 31 |
@@ -2,6 +2,7 @@ prefix=@prefix@ | ||
2 | 2 | exec_prefix=@exec_prefix@ |
3 | 3 | libdir=@libdir@ |
4 | 4 | includedir=@includedir@ |
5 | +driverdir=@LIBVA_DRIVERS_PATH@ | |
5 | 6 | |
6 | 7 | Name: libva |
7 | 8 | Description: Userspace Video Acceleration (VA) core interface |
@@ -22,7 +22,8 @@ | ||
22 | 22 | |
23 | 23 | INCLUDES = \ |
24 | 24 | $(LIBVA_CFLAGS) -I$(top_srcdir)/src/x11 \ |
25 | - -DIN_LIBVA | |
25 | + -DIN_LIBVA \ | |
26 | + -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\"" | |
26 | 27 | |
27 | 28 | libva_la_LTLIBRARIES = libva.la |
28 | 29 | libva_ladir = $(libdir) |
@@ -47,7 +47,6 @@ | ||
47 | 47 | #define VA_MINOR_VERSION 30 |
48 | 48 | #define DRIVER_INIT_FUNC "__vaDriverInit_0_30" |
49 | 49 | |
50 | -#define DEFAULT_DRIVER_DIR "/usr/lib/dri/" | |
51 | 50 | #define DRIVER_EXTENSION "_drv_video.so" |
52 | 51 | |
53 | 52 | #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext) |
@@ -153,7 +152,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name) | ||
153 | 152 | } |
154 | 153 | if (!search_path) |
155 | 154 | { |
156 | - search_path = DEFAULT_DRIVER_DIR; | |
155 | + search_path = VA_DRIVERS_PATH; | |
157 | 156 | } |
158 | 157 | |
159 | 158 | search_path = strdup((const char *)search_path); |