Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 1 | SUMMARY = "A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input" |
| 2 | HOMEPAGE = "https://www.glfw.org/" |
| 3 | DESCRIPTION = "GLFW is an Open Source, multi-platform library for OpenGL, \ |
| 4 | OpenGL ES and Vulkan application development. It provides a simple, \ |
| 5 | platform-independent API for creating windows, contexts and surfaces, reading \ |
| 6 | input, handling events, etc." |
| 7 | LICENSE = "Zlib" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=98d93d1ddc537f9b9ea6def64e046b5f" |
| 9 | SECTION = "lib" |
| 10 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 11 | inherit pkgconfig cmake features_check |
| 12 | |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 13 | PV .= "+git" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 14 | SRCREV = "7482de6071d21db77a7236155da44c172a7f6c9e" |
| 15 | SRC_URI = "git://github.com/glfw/glfw.git;branch=3.3-stable;protocol=https" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/git" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 18 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 19 | EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_DOCS=OFF" |
| 20 | |
| 21 | CFLAGS += "-fPIC" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 22 | |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 23 | DEPENDS = "libpng zlib" |
| 24 | REQUIRED_DISTRO_FEATURES = "opengl x11" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 25 | ANY_OF_DISTRO_FEATURES = "wayland x11" |
| 26 | |
| 27 | # upstream considers x11 and wayland backends mutually exclusive and will |
| 28 | # prioritize wayland if it is enabled, but wayland has dependencies that cannot |
| 29 | # be satisfied by this layer so it is disabled by default |
| 30 | |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 31 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 32 | |
| 33 | PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon" |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 34 | PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor libglu" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | COMPATIBLE_HOST:libc-musl = "null" |