mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
* Drop SRCPV similarly like oe-core did in: https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872 * SRCPV is deferred now from PV to PKGV since: https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0 Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
37 lines
1.4 KiB
BlitzBasic
37 lines
1.4 KiB
BlitzBasic
SUMMARY = "A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input"
|
|
HOMEPAGE = "https://www.glfw.org/"
|
|
DESCRIPTION = "GLFW is an Open Source, multi-platform library for OpenGL, \
|
|
OpenGL ES and Vulkan application development. It provides a simple, \
|
|
platform-independent API for creating windows, contexts and surfaces, reading \
|
|
input, handling events, etc."
|
|
LICENSE = "Zlib"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=98d93d1ddc537f9b9ea6def64e046b5f"
|
|
SECTION = "lib"
|
|
|
|
inherit pkgconfig cmake features_check
|
|
|
|
PV .= "+git"
|
|
SRCREV = "7482de6071d21db77a7236155da44c172a7f6c9e"
|
|
SRC_URI = "git://github.com/glfw/glfw.git;branch=3.3-stable;protocol=https"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_DOCS=OFF"
|
|
|
|
CFLAGS += "-fPIC"
|
|
|
|
DEPENDS = "libpng zlib"
|
|
REQUIRED_DISTRO_FEATURES = "opengl x11"
|
|
ANY_OF_DISTRO_FEATURES = "wayland x11"
|
|
|
|
# upstream considers x11 and wayland backends mutually exclusive and will
|
|
# prioritize wayland if it is enabled, but wayland has dependencies that cannot
|
|
# be satisfied by this layer so it is disabled by default
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
|
|
|
PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
|
|
PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor libglu"
|
|
|
|
COMPATIBLE_HOST:libc-musl = "null"
|