libgtk3: remove non-existent configure options
[buildroot-gz.git] / package / libdrm / libdrm.mk
blobae7b75bad9701b6b2d900fefedb0492aae4bca77
1 ################################################################################
3 # libdrm
5 ################################################################################
7 LIBDRM_VERSION = 2.4.75
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_ETNAVIV),y)
69 LIBDRM_CONF_OPTS += --enable-etnaviv-experimental-api
70 else
71 LIBDRM_CONF_OPTS += --disable-etnaviv-experimental-api
72 endif
74 ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
75 LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
76 else
77 LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
78 endif
80 ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
81 LIBDRM_CONF_OPTS += --enable-freedreno
82 else
83 LIBDRM_CONF_OPTS += --disable-freedreno
84 endif
86 ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
87 LIBDRM_CONF_OPTS += --enable-tegra-experimental-api
88 else
89 LIBDRM_CONF_OPTS += --disable-tegra-experimental-api
90 endif
92 ifeq ($(BR2_PACKAGE_LIBDRM_VC4),y)
93 LIBDRM_CONF_OPTS += --enable-vc4
94 else
95 LIBDRM_CONF_OPTS += --disable-vc4
96 endif
98 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
99 LIBDRM_CONF_OPTS += --enable-udev
100 LIBDRM_DEPENDENCIES += udev
101 else
102 LIBDRM_CONF_OPTS += --disable-udev
103 endif
105 ifeq ($(BR2_PACKAGE_VALGRIND),y)
106 LIBDRM_CONF_OPTS += --enable-valgrind
107 LIBDRM_DEPENDENCIES += valgrind
108 else
109 LIBDRM_CONF_OPTS += --disable-valgrind
110 endif
112 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
113 LIBDRM_CONF_OPTS += --enable-install-test-programs
114 endif
116 $(eval $(autotools-package))