kumquat-buildroot/package/libglfw/libglfw.mk
Fabrice Fontaine 0bbb12eff3 package/libglfw: fix wayland build
Fix the following build failure raised since bump to version 3.3.6 in
commit 3cd9bb4f2a:

CMake Error at CMakeLists.txt:252 (find_package):
  Could not find a package configuration file provided by "ECM" with any of
  the following names:

    ECMConfig.cmake
    ecm-config.cmake

Fixes:
 - http://autobuild.buildroot.org/results/0d7420aff7392c294614fd12e65ac7cd57787e98

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-03-06 22:20:37 +01:00

44 lines
1.1 KiB
Makefile

################################################################################
#
# libglfw
#
################################################################################
LIBGLFW_VERSION = 3.3.6
LIBGLFW_SITE = $(call github,glfw,glfw,$(LIBGLFW_VERSION))
LIBGLFW_INSTALL_STAGING = YES
LIBGLFW_LICENSE = Zlib
LIBGLFW_LICENSE_FILES = LICENSE.md
LIBGLFW_CONF_OPTS += \
-DGLFW_BUILD_EXAMPLES=OFF \
-DGLFW_BUILD_TESTS=OFF \
-DGLFW_BUILD_DOCS=OFF
ifeq ($(BR2_PACKAGE_XORG7),y)
LIBGLFW_DEPENDENCIES += xlib_libXcursor xlib_libXext \
xlib_libXi xlib_libXinerama xlib_libXrandr
endif
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
LIBGLFW_DEPENDENCIES += libgl
endif
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
LIBGLFW_DEPENDENCIES += libgles
endif
ifeq ($(BR2_PACKAGE_WAYLAND),y)
LIBGLFW_DEPENDENCIES += libxkbcommon wayland-protocols
# Override pkg-config pkgdatadir variable, it needs the prefix
LIBGLFW_CONF_OPTS += \
-DGLFW_USE_WAYLAND=1 \
-DWAYLAND_PROTOCOLS_BASE=$(STAGING_DIR)/usr/share/wayland-protocols
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
LIBGLFW_DEPENDENCIES += xlib_libXxf86vm
endif
$(eval $(cmake-package))