Files
rpi-buildroot/package/libglfw/libglfw.mk
Bernd Kuhls 653c3d39a6 package/libglfw: bump version to 3.4
Removed patch 0001 which was applied upstream:
2747e47393

Removed patch 0002 which is not needed anymore due to the removal of the
dependency to wayland-protocols:
e8cf53cf70

Configure option GLFW_USE_WAYLAND was replaced by GLFW_BUILD_WAYLAND
and the option GLFW_BUILD_X11 was added:
56a4cb0a3a

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-10-28 15:46:10 +01:00

46 lines
1.1 KiB
Makefile

################################################################################
#
# libglfw
#
################################################################################
LIBGLFW_VERSION = 3.4
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_CONF_OPTS += -DGLFW_BUILD_X11=ON
LIBGLFW_DEPENDENCIES += xlib_libXcursor xlib_libXext \
xlib_libXi xlib_libXinerama xlib_libXrandr
else
LIBGLFW_CONF_OPTS += -DGLFW_BUILD_X11=OFF
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_CONF_OPTS += -DGLFW_BUILD_WAYLAND=ON
LIBGLFW_DEPENDENCIES += libxkbcommon wayland
else
LIBGLFW_CONF_OPTS += -DGLFW_BUILD_WAYLAND=OFF
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
LIBGLFW_DEPENDENCIES += xlib_libXxf86vm
endif
$(eval $(cmake-package))