2014-01-14 15:19:31 +00:00
|
|
|
SUMMARY = "OpenGL driver testing framework"
|
|
|
|
LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0"
|
|
|
|
|
2015-06-15 19:31:28 +00:00
|
|
|
SRC_URI = "git://anongit.freedesktop.org/piglit \
|
|
|
|
file://0001-tests-Fix-missing-include-of-Xutil.h.patch"
|
2014-01-14 15:19:31 +00:00
|
|
|
|
2015-06-10 19:19:08 +00:00
|
|
|
# From 2014/12/04
|
|
|
|
SRCREV = "126c7d049b8f32e541625d5a35fbc5f5e4e7fbf8"
|
2014-01-14 15:19:31 +00:00
|
|
|
# (when PV goes above 1.0 remove the trailing r)
|
|
|
|
PV = "1.0+gitr${SRCPV}"
|
|
|
|
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
2014-08-09 16:08:00 +00:00
|
|
|
DEPENDS = "virtual/libx11 libxrender waffle virtual/libgl libglu python-mako-native python-numpy-native"
|
2014-01-14 15:19:31 +00:00
|
|
|
|
2015-01-28 14:52:11 +00:00
|
|
|
inherit cmake pythonnative distro_features_check
|
|
|
|
# depends on virtual/libx11
|
|
|
|
REQUIRED_DISTRO_FEATURES = "x11"
|
2014-01-14 15:19:31 +00:00
|
|
|
|
2015-04-01 07:53:00 +00:00
|
|
|
PACKAGECONFIG ??= ""
|
|
|
|
PACKAGECONFIG[freeglut] = "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut,"
|
|
|
|
|
2015-06-18 09:18:57 +00:00
|
|
|
do_configure_prepend() {
|
|
|
|
if [ "${@bb.utils.contains('PACKAGECONFIG', 'freeglut', 'yes', 'no', d)}" = "no" ]; then
|
|
|
|
sed -i -e "/^#.*include <GL\/freeglut_ext.h>$/d" ${S}/src/piglit/glut_wrap.h
|
2015-07-14 07:08:25 +00:00
|
|
|
sed -i -e "/^#.*include.*<GL\/glut.h>$/d" ${S}/src/piglit/glut_wrap.h
|
2015-06-18 09:18:57 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-01-14 15:19:31 +00:00
|
|
|
FILES_${PN}-dbg += "${libdir}/piglit/*/.debug/"
|
|
|
|
|
2015-06-10 19:19:08 +00:00
|
|
|
RDEPENDS_${PN} = "waffle python python-mako python-json python-subprocess \
|
|
|
|
python-argparse python-importlib python-unixadmin \
|
2014-09-02 09:41:49 +00:00
|
|
|
python-multiprocessing python-textutils python-netserver python-shell \
|
|
|
|
mesa-demos bash \
|
|
|
|
"
|
2015-06-10 19:19:08 +00:00
|
|
|
|
2015-06-15 19:31:28 +00:00
|
|
|
INSANE_SKIP_${PN} += "dev-so"
|