blob: dd706a96063fe875cf39e085b94583864842f542 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "OpenGL function pointer management library"
2HOMEPAGE = "https://github.com/anholt/libepoxy/"
3SECTION = "libs"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
7
8SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
9 "
10SRC_URI[md5sum] = "e2845de8d2782b2d31c01ae8d7cd4cbb"
11SRC_URI[sha256sum] = "002958c5528321edd53440235d3c44e71b5b1e09b9177e8daf677450b6c4433d"
12UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
13
14inherit meson pkgconfig distro_features_check
15
16REQUIRED_DISTRO_FEATURES = "opengl"
17REQUIRED_DISTRO_FEATURES_class-native = ""
18REQUIRED_DISTRO_FEATURES_class-nativesdk = ""
19
20PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
21PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
22PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
23
24EXTRA_OEMESON += "-Dtests=false"
25
26PACKAGECONFIG_class-native = "egl"
27PACKAGECONFIG_class-nativesdk = "egl"
28
29BBCLASSEXTEND = "native nativesdk"
30
31# This will ensure that dlopen will attempt only GL libraries provided by host
32do_install_append_class-native() {
33 chrpath --delete ${D}${libdir}/*.so
34}
35
36do_install_append_class-nativesdk() {
37 chrpath --delete ${D}${libdir}/*.so
38}