24147efb21
Fixes checking for /home/fli4l/buildroot/output/host/usr/bin/i586-buildroot-linux-uclibc-gcc option to accept ISO C99... unsupported configure: error: Building libdrm requires C99 enabled compiler using this defconfig BR2_KERNEL_HEADERS_4_0=y BR2_BINUTILS_VERSION_2_25=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_LIBDRM=y Patch inspired by http://git.buildroot.net/buildroot/commit/?id=5cf5b390385fb6325485e37dc9d38e1e3ac1f091 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
86 lines
1.9 KiB
Makefile
86 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# libdrm
|
|
#
|
|
################################################################################
|
|
|
|
LIBDRM_VERSION = 2.4.62
|
|
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
|
|
LIBDRM_SITE = http://dri.freedesktop.org/libdrm
|
|
LIBDRM_LICENSE = MIT
|
|
|
|
LIBDRM_INSTALL_STAGING = YES
|
|
|
|
LIBDRM_DEPENDENCIES = \
|
|
libpthread-stubs \
|
|
host-pkgconf
|
|
|
|
LIBDRM_CONF_OPTS = \
|
|
--disable-cairo-tests \
|
|
--disable-manpages
|
|
|
|
LIBDRM_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
|
LIBDRM_CONF_OPTS += --enable-intel
|
|
LIBDRM_DEPENDENCIES += libatomic_ops libpciaccess
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-intel
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
|
|
LIBDRM_CONF_OPTS += --enable-radeon
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-radeon
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
|
|
LIBDRM_CONF_OPTS += --enable-nouveau
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-nouveau
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
|
|
LIBDRM_CONF_OPTS += --enable-vmwgfx
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-vmwgfx
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
|
|
LIBDRM_CONF_OPTS += --enable-omap-experimental-api
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-omap-experimental-api
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
|
|
LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
|
|
LIBDRM_CONF_OPTS += --enable-freedreno-experimental-api
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-freedreno-experimental-api
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBDRM_CONF_OPTS += --enable-udev
|
|
LIBDRM_DEPENDENCIES += udev
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-udev
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
|
LIBDRM_CONF_OPTS += --enable-valgrind
|
|
LIBDRM_DEPENDENCIES += valgrind
|
|
else
|
|
LIBDRM_CONF_OPTS += --disable-valgrind
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
|
|
LIBDRM_CONF_OPTS += --enable-install-test-programs
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|