zynq_zed: bump U-Boot to xilinx-v2016.2
[buildroot-gz.git] / package / libdrm / libdrm.mk
blobd8d77449dce9f8fe7b142d12fde071629acf8040
1 ################################################################################
3 # libdrm
5 ################################################################################
7 LIBDRM_VERSION = 2.4.70
8 LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
9 LIBDRM_SITE = http://dri.freedesktop.org/libdrm
10 LIBDRM_LICENSE = MIT
12 LIBDRM_INSTALL_STAGING = YES
14 LIBDRM_DEPENDENCIES = \
15 libpthread-stubs \
16 host-pkgconf
18 LIBDRM_CONF_OPTS = \
19 --disable-cairo-tests \
20 --disable-manpages
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"
28 endif
29 endif
31 ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
32 LIBDRM_CONF_OPTS += --enable-intel
33 LIBDRM_DEPENDENCIES += libpciaccess
34 else
35 LIBDRM_CONF_OPTS += --disable-intel
36 endif
38 ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
39 LIBDRM_CONF_OPTS += --enable-radeon
40 else
41 LIBDRM_CONF_OPTS += --disable-radeon
42 endif
44 ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU),y)
45 LIBDRM_CONF_OPTS += --enable-amdgpu
46 else
47 LIBDRM_CONF_OPTS += --disable-amdgpu
48 endif
50 ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
51 LIBDRM_CONF_OPTS += --enable-nouveau
52 else
53 LIBDRM_CONF_OPTS += --disable-nouveau
54 endif
56 ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
57 LIBDRM_CONF_OPTS += --enable-vmwgfx
58 else
59 LIBDRM_CONF_OPTS += --disable-vmwgfx
60 endif
62 ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
63 LIBDRM_CONF_OPTS += --enable-omap-experimental-api
64 else
65 LIBDRM_CONF_OPTS += --disable-omap-experimental-api
66 endif
68 ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
69 LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
70 else
71 LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
72 endif
74 ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
75 LIBDRM_CONF_OPTS += --enable-freedreno
76 else
77 LIBDRM_CONF_OPTS += --disable-freedreno
78 endif
80 ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
81 LIBDRM_CONF_OPTS += --enable-tegra-experimental-api
82 else
83 LIBDRM_CONF_OPTS += --disable-tegra-experimental-api
84 endif
86 ifeq ($(BR2_PACKAGE_LIBDRM_VC4),y)
87 LIBDRM_CONF_OPTS += --enable-vc4
88 else
89 LIBDRM_CONF_OPTS += --disable-vc4
90 endif
92 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
93 LIBDRM_CONF_OPTS += --enable-udev
94 LIBDRM_DEPENDENCIES += udev
95 else
96 LIBDRM_CONF_OPTS += --disable-udev
97 endif
99 ifeq ($(BR2_PACKAGE_VALGRIND),y)
100 LIBDRM_CONF_OPTS += --enable-valgrind
101 LIBDRM_DEPENDENCIES += valgrind
102 else
103 LIBDRM_CONF_OPTS += --disable-valgrind
104 endif
106 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
107 LIBDRM_CONF_OPTS += --enable-install-test-programs
108 endif
110 $(eval $(autotools-package))