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 | |
| 13 | PV .= "+git${SRCPV}" |
| 14 | SRCREV = "781fbbadb0bccc749058177b1385c82da9ace880" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 15 | SRC_URI = "git://github.com/glfw/glfw.git;branch=master;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 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 23 | DEPENDS = "libpng libglu zlib" |
| 24 | REQUIRED_DISTRO_FEATURES = "opengl" |
| 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 | |
| 31 | PACKAGECONFIG ??= "x11" |
| 32 | |
| 33 | PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon" |
| 34 | PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor" |
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" |