Blame view

buildroot/buildroot-2016.08.1/package/libva/libva.mk 1.32 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  ################################################################################
  #
  # libva
  #
  ################################################################################
  
  LIBVA_VERSION = 1.7.1
  LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
  LIBVA_SITE = http://www.freedesktop.org/software/vaapi/releases/libva
  LIBVA_LICENSE = MIT
  LIBVA_LICENSE_FILES = COPYING
  LIBVA_AUTORECONF = YES
  LIBVA_INSTALL_STAGING = YES
  LIBVA_DEPENDENCIES = host-pkgconf libdrm
  
  # libdrm is a hard-dependency
  LIBVA_CONF_OPTS = \
  	--enable-drm \
  	--disable-dummy-driver \
  	--with-drivers-path="/usr/lib/va"
  
  ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
  LIBVA_DEPENDENCIES += mesa3d
  LIBVA_CONF_OPTS += --enable-glx
  else
  LIBVA_CONF_OPTS += --disable-glx
  endif
  
  ifeq ($(BR2_PACKAGE_XORG7),y)
  LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
  LIBVA_CONF_OPTS += --enable-x11
  else
  LIBVA_CONF_OPTS += --disable-x11
  endif
  
  ifeq ($(BR2_PACKAGE_WAYLAND),y)
  LIBVA_DEPENDENCIES += wayland
  LIBVA_CONF_OPTS += --enable-wayland
  else
  LIBVA_CONF_OPTS += --disable-wayland
  endif
  
  ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
  LIBVA_DEPENDENCIES += libegl
  LIBVA_CONF_OPTS += --enable-egl
  else
  LIBVA_CONF_OPTS += --disable-egl
  endif
  
  # Autoreconf requires an m4 directory to exist
  define LIBVA_PATCH_M4
  	mkdir -p $(@D)/m4
  endef
  LIBVA_POST_PATCH_HOOKS += LIBVA_PATCH_M4
  
  $(eval $(autotools-package))