1 ################################################################################
5 ################################################################################
7 LIBDRM_VERSION
= 2.4.75
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_ETNAVIV
),y
)
69 LIBDRM_CONF_OPTS
+= --enable-etnaviv-experimental-api
71 LIBDRM_CONF_OPTS
+= --disable-etnaviv-experimental-api
74 ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS
),y
)
75 LIBDRM_CONF_OPTS
+= --enable-exynos-experimental-api
77 LIBDRM_CONF_OPTS
+= --disable-exynos-experimental-api
80 ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO
),y
)
81 LIBDRM_CONF_OPTS
+= --enable-freedreno
83 LIBDRM_CONF_OPTS
+= --disable-freedreno
86 ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA
),y
)
87 LIBDRM_CONF_OPTS
+= --enable-tegra-experimental-api
89 LIBDRM_CONF_OPTS
+= --disable-tegra-experimental-api
92 ifeq ($(BR2_PACKAGE_LIBDRM_VC4
),y
)
93 LIBDRM_CONF_OPTS
+= --enable-vc4
95 LIBDRM_CONF_OPTS
+= --disable-vc4
98 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
99 LIBDRM_CONF_OPTS
+= --enable-udev
100 LIBDRM_DEPENDENCIES
+= udev
102 LIBDRM_CONF_OPTS
+= --disable-udev
105 ifeq ($(BR2_PACKAGE_VALGRIND
),y
)
106 LIBDRM_CONF_OPTS
+= --enable-valgrind
107 LIBDRM_DEPENDENCIES
+= valgrind
109 LIBDRM_CONF_OPTS
+= --disable-valgrind
112 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS
),y
)
113 LIBDRM_CONF_OPTS
+= --enable-install-test-programs
116 $(eval
$(autotools-package
))