blob: 6dcb0c5a19d2027f7d5ac73ccc5c8a381592a8e4 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Utility for printing information EGL and its client APIs (OpenGL, OpenGL ES, OpenVG)"
2SECTION = "graphics"
3LICENSE = "Zlib"
4HOMEPAGE = "https://github.com/dv1/eglinfo"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=8d4f33bc3add976f7dfae85dab66f03c"
6
7DEPENDS = "virtual/egl"
8
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05009SRC_URI = "git://github.com/dv1/eglinfo.git;branch=master \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010 file://waf \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050011 file://0001-Add-STAGING_INCDIR-to-searchpath-for-egl-headers.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012 file://0001-Check-for-libegl-using-pkg-config.patch \
13 "
Brad Bishop19323692019-04-05 15:28:33 -040014SRCREV = "223817ee37988042db7873cfb5b2e899dfe35c10"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016CVE_PRODUCT = "eglinfo"
17
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018S = "${WORKDIR}/git"
19
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020inherit waf distro_features_check pkgconfig
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021# depends on virtual/egl
22REQUIRED_DISTRO_FEATURES ?= "opengl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
24# BSP layers should add .bbappend files for the -x11 and -fb .bb recipes, which
25# append the respective EGL/OpenGLES/OpenVG libraries to DEPENDS and set
26# EGL_DEVICE as appropriate.
27EGLINFO_DEVICE ?= "generic"
28
29EXTRA_OECONF = "--platform=${EGLINFO_PLATFORM} \
30 --device=${EGLINFO_DEVICE} \
31 --sysroot ${STAGING_DIR_TARGET}"
32
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033do_configure_prepend() {
34 install -D -m 0755 ${WORKDIR}/waf ${S}/waf
35}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036do_install_append() {
37 mv ${D}/${bindir}/eglinfo ${D}/${bindir}/${EGLINFO_BINARY_NAME}
38}