Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenGL driver testing framework" |
| 2 | LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" |
| 4 | |
| 5 | SRC_URI = "git://anongit.freedesktop.org/piglit \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 6 | file://0001-cmake-install-bash-completions-in-the-right-place.patch \ |
| 7 | file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch \ |
| 8 | file://0001-cmake-Link-utils-with-xcb-explicitly.patch \ |
| 9 | file://0001-cmake-Link-test-utils-with-ldl.patch \ |
| 10 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 12 | # From 2016-07-07 |
| 13 | SRCREV = "c39e41a86551eb390b8da23232dc8577639403d0" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | # (when PV goes above 1.0 remove the trailing r) |
| 15 | PV = "1.0+gitr${SRCPV}" |
| 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 19 | DEPENDS = "libpng virtual/libx11 libxrender waffle virtual/libgl libglu python3-mako-native python3-numpy-native python3-six-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 21 | inherit cmake python3native distro_features_check bash-completion |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | # depends on virtual/libx11 |
| 23 | REQUIRED_DISTRO_FEATURES = "x11" |
| 24 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 25 | # The built scripts go into the temporary directory according to tempfile |
| 26 | # (typically /tmp) which can race if multiple builds happen on the same machine, |
| 27 | # so tell it to use a directory in ${B} to avoid overwriting. |
| 28 | export TEMP = "${B}/temp/" |
| 29 | do_compile[dirs] =+ "${B}/temp/" |
| 30 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | PACKAGECONFIG ??= "" |
| 32 | PACKAGECONFIG[freeglut] = "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut," |
| 33 | |
| 34 | do_configure_prepend() { |
| 35 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'freeglut', 'yes', 'no', d)}" = "no" ]; then |
| 36 | sed -i -e "/^#.*include <GL\/freeglut_ext.h>$/d" ${S}/src/piglit/glut_wrap.h |
| 37 | sed -i -e "/^#.*include.*<GL\/glut.h>$/d" ${S}/src/piglit/glut_wrap.h |
| 38 | fi |
| 39 | } |
| 40 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 41 | do_install() { |
| 42 | oe_runmake -C ${B} 'DESTDIR=${D}' install/strip |
| 43 | } |
| 44 | |
| 45 | RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \ |
| 46 | python3-subprocess python3-misc python3-importlib \ |
| 47 | python3-unixadmin python3-xml python3-multiprocessing \ |
| 48 | python3-six python3-shell python3-io python3-argparse \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | mesa-demos bash \ |
| 50 | " |
| 51 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 52 | INSANE_SKIP_${PN} += "dev-so already-stripped" |