Patchwork [meta-oe,1/2] glmark2: Rework recipe to use the 'waf' class

login
register
mail settings
Submitter Otavio Salvador
Date March 18, 2014, 4:28 p.m.
Message ID <1395160103-15730-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/68849/
State Accepted, archived
Headers show

Comments

Otavio Salvador - March 18, 2014, 4:28 p.m.
This removes the duplicated code and uses the OE-Core waf class.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta-oe/recipes-benchmark/glmark2/glmark2_2012.12.bb | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

Patch

diff --git a/meta-oe/recipes-benchmark/glmark2/glmark2_2012.12.bb b/meta-oe/recipes-benchmark/glmark2/glmark2_2012.12.bb
index 9edee14..031e3b3 100644
--- a/meta-oe/recipes-benchmark/glmark2/glmark2_2012.12.bb
+++ b/meta-oe/recipes-benchmark/glmark2/glmark2_2012.12.bb
@@ -15,21 +15,9 @@  SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BP}.tar.gz"
 SRC_URI[md5sum] = "4f306664aa3886fa0cf93853603603f8"
 SRC_URI[sha256sum] = "bea6f9de2cdce376195bd91e4a2fdfdf80bf3e480abff8e05b90a6458c1deb47"
 
-inherit pkgconfig
+inherit waf pkgconfig
 
 PACKAGECONFIG ?= "gl gles2"
 
 PACKAGECONFIG[gl] = "--enable-gl,,virtual/libgl"
 PACKAGECONFIG[gles2] = "--enable-glesv2,,virtual/libgles2"
-
-do_configure() {
-	./waf configure --prefix=${prefix} ${EXTRA_OECONF}
-}
-
-do_compile() {
-	./waf build ${PARALLEL_MAKE}
-}
-
-do_install() {
-	./waf install --destdir=${D}
-}