summaryrefslogtreecommitdiff
path: root/recipes/libpng
diff options
context:
space:
mode:
authorDavid-John Willis <John.Willis@Distant-earth.com>2009-12-10 12:53:45 +0000
committerKoen Kooi <koen@openembedded.org>2010-01-06 09:34:54 +0100
commitf08219813b234ee0678fab3adc64b6e6896dd1c2 (patch)
tree6024a4f8c3780d0fa7f418a194edf9699635514d /recipes/libpng
parent28af9637a911770599994052dda8dd85b8db1afb (diff)
libpng: Add 1.2.41 (target and native) and cleanup recipes.
* Add ${INC_PR} * Remove old do_stage, do_package and do_install overloads as not needed any more.
Diffstat (limited to 'recipes/libpng')
-rw-r--r--recipes/libpng/libpng-native.inc8
-rw-r--r--recipes/libpng/libpng-native_1.2.40.bb2
-rw-r--r--recipes/libpng/libpng-native_1.2.41.bb6
-rw-r--r--recipes/libpng/libpng.inc31
-rw-r--r--recipes/libpng/libpng_1.2.40.bb11
-rw-r--r--recipes/libpng/libpng_1.2.41.bb5
6 files changed, 16 insertions, 47 deletions
diff --git a/recipes/libpng/libpng-native.inc b/recipes/libpng/libpng-native.inc
index 641688a881..a515346b62 100644
--- a/recipes/libpng/libpng-native.inc
+++ b/recipes/libpng/libpng-native.inc
@@ -3,11 +3,3 @@ inherit native
DEPENDS = "zlib-native"
INHIBIT_NATIVE_STAGE_INSTALL = "1"
-
-do_stage_append() {
- cp libpng.pc libpng12.pc
- install -m 644 png.h ${STAGING_INCDIR}/png.h
- install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
- oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
- ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
-}
diff --git a/recipes/libpng/libpng-native_1.2.40.bb b/recipes/libpng/libpng-native_1.2.40.bb
index 52c92e9954..3c36b52138 100644
--- a/recipes/libpng/libpng-native_1.2.40.bb
+++ b/recipes/libpng/libpng-native_1.2.40.bb
@@ -1,4 +1,6 @@
require libpng_${PV}.bb
require libpng-native.inc
+PR = "r1"
+
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}"
diff --git a/recipes/libpng/libpng-native_1.2.41.bb b/recipes/libpng/libpng-native_1.2.41.bb
new file mode 100644
index 0000000000..3c36b52138
--- /dev/null
+++ b/recipes/libpng/libpng-native_1.2.41.bb
@@ -0,0 +1,6 @@
+require libpng_${PV}.bb
+require libpng-native.inc
+
+PR = "r1"
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}"
diff --git a/recipes/libpng/libpng.inc b/recipes/libpng/libpng.inc
index 30a34f2457..c0facfa244 100644
--- a/recipes/libpng/libpng.inc
+++ b/recipes/libpng/libpng.inc
@@ -5,40 +5,13 @@ SECTION = "libs"
PRIORITY = "required"
DEPENDS = "zlib"
+INC_PR = "r1"
+
SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-${PV}.tar.bz2"
S = "${WORKDIR}/libpng-${PV}"
inherit autotools pkgconfig binconfig
-do_stage() {
- cp libpng.pc libpng12.pc
- install -m 644 png.h ${STAGING_INCDIR}/png.h
- install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
- oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
- ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
-}
-
-do_install() {
- install -d ${D}${bindir} ${D}${mandir} \
- ${D}${libdir} ${D}${includedir}
- unset LDFLAGS
- oe_runmake 'prefix=${prefix}' 'DESTDIR=${D}' \
- 'DB=${D}${bindir}' 'DI=${D}${includedir}' \
- 'DL=${D}${libdir}' 'DM=${D}${mandir}' \
- install
-}
-
-python do_package() {
- if bb.data.getVar('DEBIAN_NAMES', d, 1):
- bb.data.setVar('PKG_${PN}', 'libpng12', d)
- bb.build.exec_func('package_do_package', d)
-}
-
-PACKAGES =+ "${PN}12-dbg ${PN}12 ${PN}12-dev"
-
-FILES_${PN}12-dbg += "${libdir}/libpng12*.dbg"
-FILES_${PN}12 = "${libdir}/libpng12.so.*"
-FILES_${PN}12-dev = "${libdir}/libpng12.* ${includedir}/libpng12 ${libdir}/pkgconfig/libpng12.pc"
FILES_${PN} = "${libdir}/lib*.so.*"
FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \
${libdir}/*.a ${libdir}/pkgconfig \
diff --git a/recipes/libpng/libpng_1.2.40.bb b/recipes/libpng/libpng_1.2.40.bb
index 3ed02a7f17..29cfdc678e 100644
--- a/recipes/libpng/libpng_1.2.40.bb
+++ b/recipes/libpng/libpng_1.2.40.bb
@@ -1,14 +1,5 @@
require libpng.inc
-PR = "r0"
+PR = "${INC_PR}.0"
SRC_URI += "file://makefile_fix.patch;patch=1"
-
-do_stage() {
- cp libpng.pc libpng12.pc
- install -m 644 png.h ${STAGING_INCDIR}/png.h
- install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
- oe_libinstall -so libpng ${STAGING_LIBDIR}/
- oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
- ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
-}
diff --git a/recipes/libpng/libpng_1.2.41.bb b/recipes/libpng/libpng_1.2.41.bb
new file mode 100644
index 0000000000..29cfdc678e
--- /dev/null
+++ b/recipes/libpng/libpng_1.2.41.bb
@@ -0,0 +1,5 @@
+require libpng.inc
+
+PR = "${INC_PR}.0"
+
+SRC_URI += "file://makefile_fix.patch;patch=1"