Patchwork [1/2] libpng: split recipe to libpng.inc and libpng_1.2.50.bb

login
register
mail settings
Submitter Marko Lindqvist
Date Dec. 5, 2012, 8:40 p.m.
Message ID <1354740033-18500-2-git-send-email-cazfi74@gmail.com>
Download mbox | patch
Permalink /patch/40497/
State New
Headers show

Comments

Marko Lindqvist - Dec. 5, 2012, 8:40 p.m.
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 meta/recipes-multimedia/libpng/libpng.inc       |   17 +++++++++++++++++
 meta/recipes-multimedia/libpng/libpng_1.2.50.bb |   22 ++++++----------------
 2 files changed, 23 insertions(+), 16 deletions(-)
 create mode 100644 meta/recipes-multimedia/libpng/libpng.inc

Patch

diff --git a/meta/recipes-multimedia/libpng/libpng.inc b/meta/recipes-multimedia/libpng/libpng.inc
new file mode 100644
index 0000000..68b325a
--- /dev/null
+++ b/meta/recipes-multimedia/libpng/libpng.inc
@@ -0,0 +1,17 @@ 
+SUMMARY = "PNG Library"
+DESCRIPTION = "PNG Library"
+HOMEPAGE = "http://www.libpng.org/"
+SECTION = "libs"
+LICENSE = "Libpng"
+DEPENDS = "zlib"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/libpng/libpng${PNV}/${PV}/libpng-${PV}.tar.xz"
+
+inherit autotools binconfig pkgconfig
+
+PACKAGES =+ "${PN}${PNV}"
+
+FILES_${PN}${PNV} = "${libdir}/libpng${PNV}${SOLIBS}"
+RPROVIDES_${PN}-dev += "${PN}${PNV}-dev"
+
+BBCLASSEXTEND = "native"
diff --git a/meta/recipes-multimedia/libpng/libpng_1.2.50.bb b/meta/recipes-multimedia/libpng/libpng_1.2.50.bb
index 62989bb..7627e3a 100644
--- a/meta/recipes-multimedia/libpng/libpng_1.2.50.bb
+++ b/meta/recipes-multimedia/libpng/libpng_1.2.50.bb
@@ -1,23 +1,13 @@ 
-SUMMARY = "PNG Library"
-DESCRIPTION = "PNG Library"
-HOMEPAGE = "http://www.libpng.org/"
-SECTION = "libs"
-LICENSE = "Libpng"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c3d807a85c09ebdff087f18b4969ff96 \
-                    file://png.h;beginline=310;endline=424;md5=b87b5e9252a3e14808a27b92912d268d"
-DEPENDS = "zlib"
+PNV="12"
+
+require libpng.inc
+
 PR = "r0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/project/libpng/libpng12/${PV}/libpng-${PV}.tar.xz"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c3d807a85c09ebdff087f18b4969ff96 \
+                    file://png.h;beginline=310;endline=424;md5=b87b5e9252a3e14808a27b92912d268d"
 
 SRC_URI[md5sum] = "a3e00fccbfe356174ab515b5c00641c7"
 SRC_URI[sha256sum] = "4724f81f8c92ac7f360ad1fbf173396ea7c535923424db9fbaff07bfd9d8e8e7"
 
 inherit autotools binconfig pkgconfig
-
-PACKAGES =+ "${PN}12"
-
-FILES_${PN}12 = "${libdir}/libpng12${SOLIBS}"
-RPROVIDES_${PN}-dev += "${PN}12-dev"
-
-BBCLASSEXTEND = "native"