[oe] [PATCH] pngcrush_1.7.9: merged native and non-native recipes

Fahad Usman fahad_usman at mentor.com
Thu Sep 2 09:57:57 UTC 2010


* removed the pngcrush-native_1.7.9.bb file
* added NATIVE_INSTALL_WORKS = "1"
* added BBCLASSEXTEND = "native"
* added PR = "r1"

Signed-off-by: Fahad Usman <fahad_usman at mentor.com>
---
 recipes/pngcrush/pngcrush-native_1.7.9.bb |    9 ---------
 recipes/pngcrush/pngcrush_1.7.9.bb        |    5 +++++
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/recipes/pngcrush/pngcrush-native_1.7.9.bb b/recipes/pngcrush/pngcrush-native_1.7.9.bb
deleted file mode 100644
index 4e119a1..0000000
--- a/recipes/pngcrush/pngcrush-native_1.7.9.bb
+++ /dev/null
@@ -1,9 +0,0 @@
-require pngcrush_${PV}.bb
-
-inherit native
-
-S = "${WORKDIR}/pngcrush-${PV}"
-
-do_stage() {
-        install -m 755 ${S}/pngcrush ${STAGING_BINDIR}/
-}
diff --git a/recipes/pngcrush/pngcrush_1.7.9.bb b/recipes/pngcrush/pngcrush_1.7.9.bb
index fc284f2..a4a2273 100644
--- a/recipes/pngcrush/pngcrush_1.7.9.bb
+++ b/recipes/pngcrush/pngcrush_1.7.9.bb
@@ -1,6 +1,7 @@
 DESCRIPTION = "Tool to optimize PNG images"
 SECTION = "console/graphics"
 HOMEPAGE = "http://pmt.sourceforge.net/pngcrush"
+PR = "r1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/pmt/pngcrush-${PV}.tar.gz;name=src"
 
@@ -16,3 +17,7 @@ do_install () {
         install -d ${D}${bindir}
         install -m 755 ${BPN} ${D}${bindir}
 }
+
+BBCLASSEXTEND = "native"
+
+NATIVE_INSTALL_WORKS = "1"
-- 
1.6.3.3





More information about the Openembedded-devel mailing list