diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-07-20 19:39:57 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 21:44:37 +0100 |
commit | 8a251accbfd68078fbab23a96411b76928cf1063 (patch) | |
tree | ddbddfd81b7b0a3403ec69d17eeb2c11919e58d8 /meta/packages/libpng | |
parent | d86e127ea046f5a150a5022c457c7a8dbf0a22f0 (diff) | |
download | openembedded-core-8a251accbfd68078fbab23a96411b76928cf1063.tar.gz openembedded-core-8a251accbfd68078fbab23a96411b76928cf1063.tar.bz2 openembedded-core-8a251accbfd68078fbab23a96411b76928cf1063.zip |
libpng: upgrade to 1.2.44
although the latest version is 1.4.3, some API changes happen which are not
compatible to some packages (such as libmatchbox using png_check_sig which
is abandoned in 1.4 version). I didn't check fully about other broken places,
and then be conservative to choose 1.2.44 as the target instead atm.
[Patches]
REMOVE _makefile_fix.patch_: a specific fix for libtool2.2.2. with 2.2.10, it's
not required then
[Recipe]
- add license checksum
- remove old do_install and do_package
- clean up package split
- remove inherit pkgconfig_stage, since its own Makefile handles it well
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/packages/libpng')
-rw-r--r-- | meta/packages/libpng/libpng-1.2.20/makefile_fix.patch | 18 | ||||
-rw-r--r-- | meta/packages/libpng/libpng_1.2.20.bb | 42 | ||||
-rw-r--r-- | meta/packages/libpng/libpng_1.2.44.bb | 23 |
3 files changed, 23 insertions, 60 deletions
diff --git a/meta/packages/libpng/libpng-1.2.20/makefile_fix.patch b/meta/packages/libpng/libpng-1.2.20/makefile_fix.patch deleted file mode 100644 index 3fa8793add..0000000000 --- a/meta/packages/libpng/libpng-1.2.20/makefile_fix.patch +++ /dev/null @@ -1,18 +0,0 @@ -Old versions of libtool (1.5.10) used to set ECHO as a side effect. With -libtool 2.2.2 we need to do this manually - -RP - 14/4/08 - -Index: libpng-1.2.16/Makefile.am -=================================================================== ---- libpng-1.2.16.orig/Makefile.am 2008-04-14 14:47:21.000000000 +0100 -+++ libpng-1.2.16/Makefile.am 2008-04-14 14:47:47.000000000 +0100 -@@ -102,6 +102,8 @@ - >$@.new - mv $@.new $@ - -+ECHO=echo -+ - libpng.vers: libpng.sym - rm -f $@ $@.new - $(ECHO) PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0 '{global:' > $@.new diff --git a/meta/packages/libpng/libpng_1.2.20.bb b/meta/packages/libpng/libpng_1.2.20.bb deleted file mode 100644 index c6f9d2f649..0000000000 --- a/meta/packages/libpng/libpng_1.2.20.bb +++ /dev/null @@ -1,42 +0,0 @@ -DESCRIPTION = "PNG Library" -HOMEPAGE = "http://www.libpng.org/" -SECTION = "libs" -LICENSE = "libpng" -DEPENDS = "zlib" -PRIORITY = "required" -PR = "r9" - -SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-${PV}.tar.bz2 \ - file://makefile_fix.patch" - -inherit autotools binconfig pkgconfig pkgconfig_stage - -do_install() { - install -d ${D}${bindir} - install -d ${D}${mandir} - install -d ${D}${libdir} - install -d ${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${SOLIBS}" -FILES_${PN}12-dev = "${libdir}/libpng12.* ${includedir}/libpng12 ${libdir}/pkgconfig/libpng12.pc" -FILES_${PN} = "${libdir}/lib*${SOLIBS}" -FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \ - ${libdir}/*.a ${libdir}/pkgconfig \ - ${datadir}/aclocal ${bindir} ${sbindir}" - -BBCLASSEXTEND = "native" diff --git a/meta/packages/libpng/libpng_1.2.44.bb b/meta/packages/libpng/libpng_1.2.44.bb new file mode 100644 index 0000000000..318bb7436d --- /dev/null +++ b/meta/packages/libpng/libpng_1.2.44.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "PNG Library" +HOMEPAGE = "http://www.libpng.org/" +SECTION = "libs" +PRIORITY = "required" +LICENSE = "libpng" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a294a2bb08b7f25558119edbfd6b2e92 \ + file://png.h;startline=172;endline=261;md5=3253923f0093658f470e52a06ddcf4e7" +DEPENDS = "zlib" +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-${PV}.tar.bz2" + +inherit autotools binconfig pkgconfig + +PACKAGES =+ "${PN}12-dbg ${PN}12 ${PN}12-dev" + +FILES_${PN}12-dbg = "${libdir}/.debug/libpng12*" +FILES_${PN}12 = "${libdir}/libpng12${SOLIBS}" +FILES_${PN}12-dev = "${libdir}/libpng12.* ${includedir}/libpng12 ${libdir}/pkgconfig/libpng12.pc" +FILES_${PN} = "${libdir}/lib*${SOLIBS}" +FILES_${PN}-dev += " ${bindir} ${sbindir}" + +BBCLASSEXTEND = "native" |