diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/libpng | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/libpng')
-rw-r--r-- | recipes/libpng/files/makefile_fix.patch | 18 | ||||
-rw-r--r-- | recipes/libpng/libpng-native.inc | 13 | ||||
-rw-r--r-- | recipes/libpng/libpng-native_1.2.12.bb | 4 | ||||
-rw-r--r-- | recipes/libpng/libpng-native_1.2.20.bb | 4 | ||||
-rw-r--r-- | recipes/libpng/libpng-native_1.2.31.bb | 4 | ||||
-rw-r--r-- | recipes/libpng/libpng-native_1.2.35.bb | 4 | ||||
-rw-r--r-- | recipes/libpng/libpng.inc | 45 | ||||
-rw-r--r-- | recipes/libpng/libpng_1.2.12.bb | 14 | ||||
-rw-r--r-- | recipes/libpng/libpng_1.2.20.bb | 14 | ||||
-rw-r--r-- | recipes/libpng/libpng_1.2.31.bb | 14 | ||||
-rw-r--r-- | recipes/libpng/libpng_1.2.35.bb | 14 |
11 files changed, 148 insertions, 0 deletions
diff --git a/recipes/libpng/files/makefile_fix.patch b/recipes/libpng/files/makefile_fix.patch new file mode 100644 index 0000000000..3fa8793add --- /dev/null +++ b/recipes/libpng/files/makefile_fix.patch @@ -0,0 +1,18 @@ +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/recipes/libpng/libpng-native.inc b/recipes/libpng/libpng-native.inc new file mode 100644 index 0000000000..641688a881 --- /dev/null +++ b/recipes/libpng/libpng-native.inc @@ -0,0 +1,13 @@ +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.12.bb b/recipes/libpng/libpng-native_1.2.12.bb new file mode 100644 index 0000000000..52c92e9954 --- /dev/null +++ b/recipes/libpng/libpng-native_1.2.12.bb @@ -0,0 +1,4 @@ +require libpng_${PV}.bb +require libpng-native.inc + +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}" diff --git a/recipes/libpng/libpng-native_1.2.20.bb b/recipes/libpng/libpng-native_1.2.20.bb new file mode 100644 index 0000000000..52c92e9954 --- /dev/null +++ b/recipes/libpng/libpng-native_1.2.20.bb @@ -0,0 +1,4 @@ +require libpng_${PV}.bb +require libpng-native.inc + +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}" diff --git a/recipes/libpng/libpng-native_1.2.31.bb b/recipes/libpng/libpng-native_1.2.31.bb new file mode 100644 index 0000000000..52c92e9954 --- /dev/null +++ b/recipes/libpng/libpng-native_1.2.31.bb @@ -0,0 +1,4 @@ +require libpng_${PV}.bb +require libpng-native.inc + +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}" diff --git a/recipes/libpng/libpng-native_1.2.35.bb b/recipes/libpng/libpng-native_1.2.35.bb new file mode 100644 index 0000000000..52c92e9954 --- /dev/null +++ b/recipes/libpng/libpng-native_1.2.35.bb @@ -0,0 +1,4 @@ +require libpng_${PV}.bb +require libpng-native.inc + +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}" diff --git a/recipes/libpng/libpng.inc b/recipes/libpng/libpng.inc new file mode 100644 index 0000000000..30a34f2457 --- /dev/null +++ b/recipes/libpng/libpng.inc @@ -0,0 +1,45 @@ +DESCRIPTION = "PNG Library" +HOMEPAGE = "http://www.libpng.org/" +LICENSE = "libpng" +SECTION = "libs" +PRIORITY = "required" +DEPENDS = "zlib" + +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 \ + ${datadir}/aclocal ${bindir} ${sbindir}" diff --git a/recipes/libpng/libpng_1.2.12.bb b/recipes/libpng/libpng_1.2.12.bb new file mode 100644 index 0000000000..ac0fd43379 --- /dev/null +++ b/recipes/libpng/libpng_1.2.12.bb @@ -0,0 +1,14 @@ +require libpng.inc + +PR = "r5" + +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.20.bb b/recipes/libpng/libpng_1.2.20.bb new file mode 100644 index 0000000000..aee9ff14ec --- /dev/null +++ b/recipes/libpng/libpng_1.2.20.bb @@ -0,0 +1,14 @@ +require libpng.inc + +PR = "r6" + +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.31.bb b/recipes/libpng/libpng_1.2.31.bb new file mode 100644 index 0000000000..aee9ff14ec --- /dev/null +++ b/recipes/libpng/libpng_1.2.31.bb @@ -0,0 +1,14 @@ +require libpng.inc + +PR = "r6" + +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.35.bb b/recipes/libpng/libpng_1.2.35.bb new file mode 100644 index 0000000000..3ed02a7f17 --- /dev/null +++ b/recipes/libpng/libpng_1.2.35.bb @@ -0,0 +1,14 @@ +require libpng.inc + +PR = "r0" + +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 +} |