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 | |
| 23 | DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi libxcursor" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 24 | REQUIRED_DISTRO_FEATURES = "x11 opengl" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | COMPATIBLE_HOST:libc-musl = "null" |