]> code.ossystems Code Review - openembedded-core.git/commitdiff
mesa-demos: rename clear
authorLi xin <lixin.fnst@cn.fujitsu.com>
Fri, 3 Jul 2015 09:53:42 +0000 (17:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Jul 2015 22:57:12 +0000 (23:57 +0100)
ncurses have already provided clear,so rename it to clear.mesa-demos.

[ RB - check that clear exists before moving ]

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb

index e565442fc6731660e57aad6ce0e89441808e80d5..d58388aabbfdbfd064fbd9e117a0fb876904923b 100644 (file)
@@ -48,6 +48,10 @@ PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew"
 PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl"
 
 do_install_append() {
-    # it can be completely empty when all PACKAGECONFIG options are disabled
-    rmdir --ignore-fail-on-non-empty ${D}${bindir}
+       # it can be completely empty when all PACKAGECONFIG options are disabled
+       rmdir --ignore-fail-on-non-empty ${D}${bindir}
+
+       if [ -f ${D}${bindir}/clear ]; then
+               mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos
+       fi
 }