1 ################################################################################
5 ################################################################################
7 LIBDRM_VERSION
= 2.4.68
8 LIBDRM_SOURCE
= libdrm-
$(LIBDRM_VERSION
).
tar.bz2
9 LIBDRM_SITE
= http
://dri.freedesktop.org
/libdrm
12 LIBDRM_INSTALL_STAGING
= YES
14 LIBDRM_DEPENDENCIES
= \
19 --disable-cairo-tests \
22 LIBDRM_CONF_ENV
= ac_cv_prog_cc_c99
='-std=gnu99'
24 ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS
),y
)
25 LIBDRM_DEPENDENCIES
+= libatomic_ops
26 ifeq ($(BR2_sparc_v8
)$(BR2_sparc_leon3
),y
)
27 LIBDRM_CONF_ENV
+= CFLAGS
="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9"
31 ifeq ($(BR2_PACKAGE_LIBDRM_INTEL
),y
)
32 LIBDRM_CONF_OPTS
+= --enable-intel
33 LIBDRM_DEPENDENCIES
+= libpciaccess
35 LIBDRM_CONF_OPTS
+= --disable-intel
38 ifeq ($(BR2_PACKAGE_LIBDRM_RADEON
),y
)
39 LIBDRM_CONF_OPTS
+= --enable-radeon
41 LIBDRM_CONF_OPTS
+= --disable-radeon
44 ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU
),y
)
45 LIBDRM_CONF_OPTS
+= --enable-amdgpu
47 LIBDRM_CONF_OPTS
+= --disable-amdgpu
50 ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU
),y
)
51 LIBDRM_CONF_OPTS
+= --enable-nouveau
53 LIBDRM_CONF_OPTS
+= --disable-nouveau
56 ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX
),y
)
57 LIBDRM_CONF_OPTS
+= --enable-vmwgfx
59 LIBDRM_CONF_OPTS
+= --disable-vmwgfx
62 ifeq ($(BR2_PACKAGE_LIBDRM_OMAP
),y
)
63 LIBDRM_CONF_OPTS
+= --enable-omap-experimental-api
65 LIBDRM_CONF_OPTS
+= --disable-omap-experimental-api
68 ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS
),y
)
69 LIBDRM_CONF_OPTS
+= --enable-exynos-experimental-api
71 LIBDRM_CONF_OPTS
+= --disable-exynos-experimental-api
74 ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO
),y
)
75 LIBDRM_CONF_OPTS
+= --enable-freedreno
77 LIBDRM_CONF_OPTS
+= --disable-freedreno
80 ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA
),y
)
81 LIBDRM_CONF_OPTS
+= --enable-tegra-experimental-api
83 LIBDRM_CONF_OPTS
+= --disable-tegra-experimental-api
86 ifeq ($(BR2_PACKAGE_LIBDRM_VC4
),y
)
87 LIBDRM_CONF_OPTS
+= --enable-vc4
89 LIBDRM_CONF_OPTS
+= --disable-vc4
92 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
93 LIBDRM_CONF_OPTS
+= --enable-udev
94 LIBDRM_DEPENDENCIES
+= udev
96 LIBDRM_CONF_OPTS
+= --disable-udev
99 ifeq ($(BR2_PACKAGE_VALGRIND
),y
)
100 LIBDRM_CONF_OPTS
+= --enable-valgrind
101 LIBDRM_DEPENDENCIES
+= valgrind
103 LIBDRM_CONF_OPTS
+= --disable-valgrind
106 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS
),y
)
107 LIBDRM_CONF_OPTS
+= --enable-install-test-programs
110 $(eval
$(autotools-package
))