aboutsummaryrefslogtreecommitdiffstats
path: root/package/libdrm/libdrm.mk
blob: 76ee763d42f1e3c152a02ee071bf8b7c892588cd (plain)
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
#############################################################
#
# libdrm
#
#############################################################
LIBDRM_VERSION = 2.4.23
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
LIBDRM_SITE = http://dri.freedesktop.org/libdrm/
LIBDRM_INSTALL_STAGING = YES

LIBDRM_DEPENDENCIES = \
	xproto_glproto \
	xproto_xf86vidmodeproto \
	xlib_libXxf86vm \
	xlib_libXmu \
	xproto_dri2proto \
	pthread-stubs \
	host-pkg-config

ifeq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL),y)
LIBDRM_CONF_OPT += --enable-intel
LIBDRM_DEPENDENCIES += libatomic_ops
else
LIBDRM_CONF_OPT += --disable-intel
endif

ifneq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI),y)
LIBDRM_CONF_OPT += --disable-radeon
endif

ifeq ($(BR2_PACKAGE_UDEV),y)
LIBDRM_CONF_OPT += --enable-udev
LIBDRM_DEPENDENCIES += udev
else
LIBDRM_CONF_OPT += --disable-udev
endif

$(eval $(autotools-package))