slang: make install-static do install-pkgconfig
[buildroot-gz.git] / package / libdrm / libdrm.mk
blob99a78d2df3135f18dadee8f71167e0e99ce0c5c0
1 ################################################################################
3 # libdrm
5 ################################################################################
7 LIBDRM_VERSION = 2.4.67
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_LIBDRM_INTEL),y)
25 LIBDRM_CONF_OPTS += --enable-intel
26 LIBDRM_DEPENDENCIES += libatomic_ops libpciaccess
27 else
28 LIBDRM_CONF_OPTS += --disable-intel
29 endif
31 ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
32 LIBDRM_CONF_OPTS += --enable-radeon
33 else
34 LIBDRM_CONF_OPTS += --disable-radeon
35 endif
37 ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU),y)
38 LIBDRM_CONF_OPTS += --enable-amdgpu
39 else
40 LIBDRM_CONF_OPTS += --disable-amdgpu
41 endif
43 ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
44 LIBDRM_CONF_OPTS += --enable-nouveau
45 else
46 LIBDRM_CONF_OPTS += --disable-nouveau
47 endif
49 ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
50 LIBDRM_CONF_OPTS += --enable-vmwgfx
51 else
52 LIBDRM_CONF_OPTS += --disable-vmwgfx
53 endif
55 ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
56 LIBDRM_CONF_OPTS += --enable-omap-experimental-api
57 else
58 LIBDRM_CONF_OPTS += --disable-omap-experimental-api
59 endif
61 ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
62 LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
63 else
64 LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
65 endif
67 ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
68 LIBDRM_CONF_OPTS += --enable-freedreno
69 else
70 LIBDRM_CONF_OPTS += --disable-freedreno
71 endif
73 ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
74 LIBDRM_CONF_OPTS += --enable-tegra-experimental-api
75 else
76 LIBDRM_CONF_OPTS += --disable-tegra-experimental-api
77 endif
79 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
80 LIBDRM_CONF_OPTS += --enable-udev
81 LIBDRM_DEPENDENCIES += udev
82 else
83 LIBDRM_CONF_OPTS += --disable-udev
84 endif
86 ifeq ($(BR2_PACKAGE_VALGRIND),y)
87 LIBDRM_CONF_OPTS += --enable-valgrind
88 LIBDRM_DEPENDENCIES += valgrind
89 else
90 LIBDRM_CONF_OPTS += --disable-valgrind
91 endif
93 ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
94 LIBDRM_CONF_OPTS += --enable-install-test-programs
95 endif
97 $(eval $(autotools-package))