Return-Path: Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by mail.openembedded.org (Postfix) with ESMTP id C08C46DEE6 for ; Mon, 13 Jan 2014 15:37:00 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id k14so6859389wgh.32 for ; Mon, 13 Jan 2014 07:37:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=UnTcZn+KqVowQgk9KYV6njsqlhwT246uPwqk9hIhQMA=; b=crQ8fchne9/uRvRuNGMkreJ1NMBXorRCRdclM6t6UzIURlQQEgeCB5ZUTu/VICb8ZB WEeTdRRdRJgzqOw/hVz6kG3YTmtU54wAyiRXqLmTY6hcshrwRX2TCCAfLXcY/ddEK0Y+ AohJy+W7i1Ht0cfpeQ8efN34IgJwPm/jIZaFIR57BimrcRiGy0hWW4Ynx611fcWMCXNq fkJV+EZifIypZgYqEW7cpONrJaczOZmYx2NjJ67L/1dRGPe4hvOt5PFrjB2zShONhmSt +m4XDFxcN99Y09CZe8FaR6nGX0L9P4Y0Yb+YDOgoVB3uX9rkB5bU4dxmH1ssUbQSd63r iKLw== X-Gm-Message-State: ALoCoQkM7qjt4D0xg0Hl6P1MZhr8e0i3xC1Wdauamfhwuw0740RbQqhjRA0BcDr8kKv7MUeKsMmK X-Received: by 10.180.12.83 with SMTP id w19mr15961378wib.16.1389627421501; Mon, 13 Jan 2014 07:37:01 -0800 (PST) Received: from melchett.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by mx.google.com with ESMTPSA id j3sm18405905wiy.3.2014.01.13.07.37.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jan 2014 07:37:00 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 13 Jan 2014 15:36:52 +0000 Message-Id: <1389627413-7106-4-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1389627413-7106-1-git-send-email-ross.burton@intel.com> References: <1389627413-7106-1-git-send-email-ross.burton@intel.com> Subject: [PATCH][V2 4/5] piglit: add (from meta-oe) X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 15:37:01 -0000 Piglit is an OpenGL testing tool. This recipe is taken directly from meta-oe. Signed-off-by: Ross Burton --- meta/recipes-graphics/piglit/piglit_git.bb | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 meta/recipes-graphics/piglit/piglit_git.bb diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb new file mode 100644 index 0000000..8616764 --- /dev/null +++ b/meta/recipes-graphics/piglit/piglit_git.bb @@ -0,0 +1,48 @@ +SUMMARY = "OpenGL driver testing framework" +LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" + +SRC_URI = "git://anongit.freedesktop.org/piglit" + +# From 2012/12/30. +SRCREV = "bbeff5d21b06d37338ad28e42d88f499bef13268" +# (when PV goes above 1.0 remove the trailing r) +PV = "1.0+gitr${SRCPV}" + +S = "${WORKDIR}/git" + +DEPENDS = "virtual/libx11 waffle virtual/libgl libglu python-mako-native python-numpy-native" + +inherit cmake pythonnative + +# As piglit doesn't install, enforce in-tree builds so that we can easily copy +# contents out of $S and $B. +B="${S}" + +# CMake sets the rpath at build time with the source tree, and will reset it at +# install time. As we don't install this doesn't happen, so force the rpath to +# what we need. +EXTRA_OECMAKE = "-DCMAKE_BUILD_WITH_INSTALL_RPATH=1 -DCMAKE_INSTALL_RPATH=${libdir}/piglit/lib" + +do_install() { + install -d ${D}${bindir} + install -m 0755 piglit-*.py ${D}${bindir} + + install -d ${D}${libdir}/piglit/ + + install -d ${D}${libdir}/piglit/bin + install -m 755 ${S}/bin/* ${D}${libdir}/piglit/bin + + cp -a lib/ ${D}${libdir}/piglit/ + cp -a framework/ ${D}${libdir}/piglit/ + cp -a generated_tests/ ${D}${libdir}/piglit/ + cp -a tests/ ${D}${libdir}/piglit/ + cp -a templates/ ${D}${libdir}/piglit/ + + sed -i -e 's|sys.path.append(.*)|sys.path.append("${libdir}/piglit")|' ${D}${bindir}/piglit-*.py + sed -i -e 's|^templatedir = .*$|templatedir = "${libdir}/piglit/templates"|' ${D}${bindir}/piglit-summary-html.py +} + +FILES_${PN}-dbg += "${libdir}/piglit/*/.debug/" + +RDEPENDS_${PN} = "python waffle python-json python-subprocess python-multiprocessing python-textutils python-netserver python-shell mesa-demos" -- 1.7.10.4