2015-11-07 17:50:51 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libglfw
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-02-01 21:43:45 +01:00
|
|
|
LIBGLFW_VERSION = 3.3.6
|
2015-11-07 17:50:51 +01:00
|
|
|
LIBGLFW_SITE = $(call github,glfw,glfw,$(LIBGLFW_VERSION))
|
|
|
|
LIBGLFW_INSTALL_STAGING = YES
|
2017-03-30 15:43:47 +02:00
|
|
|
LIBGLFW_LICENSE = Zlib
|
2019-08-28 18:13:26 +02:00
|
|
|
LIBGLFW_LICENSE_FILES = LICENSE.md
|
2015-11-07 17:50:51 +01:00
|
|
|
|
|
|
|
LIBGLFW_CONF_OPTS += \
|
|
|
|
-DGLFW_BUILD_EXAMPLES=OFF \
|
|
|
|
-DGLFW_BUILD_TESTS=OFF \
|
|
|
|
-DGLFW_BUILD_DOCS=OFF
|
|
|
|
|
2022-02-01 21:43:45 +01:00
|
|
|
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)
|
2022-03-06 11:27:22 +01:00
|
|
|
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
|
2022-02-01 21:43:45 +01:00
|
|
|
endif
|
|
|
|
|
2015-11-07 17:50:51 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
|
|
|
|
LIBGLFW_DEPENDENCIES += xlib_libXxf86vm
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|