summaryrefslogtreecommitdiffstats
path: root/meta/packages/libpng
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/libpng
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/libpng')
-rw-r--r--meta/packages/libpng/libpng-native_1.2.8.bb14
-rw-r--r--meta/packages/libpng/libpng_1.2.8.bb57
2 files changed, 71 insertions, 0 deletions
diff --git a/meta/packages/libpng/libpng-native_1.2.8.bb b/meta/packages/libpng/libpng-native_1.2.8.bb
new file mode 100644
index 0000000000..b03056f08d
--- /dev/null
+++ b/meta/packages/libpng/libpng-native_1.2.8.bb
@@ -0,0 +1,14 @@
1include libpng_${PV}.bb
2inherit native
3FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libpng-${PV}"
4DEPENDS = "zlib-native"
5
6INHIBIT_NATIVE_STAGE_INSTALL = "1"
7
8do_stage_append() {
9 cp libpng.pc libpng12.pc
10 install -m 644 png.h ${STAGING_INCDIR}/png.h
11 install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
12 oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
13 ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
14}
diff --git a/meta/packages/libpng/libpng_1.2.8.bb b/meta/packages/libpng/libpng_1.2.8.bb
new file mode 100644
index 0000000000..81274dc762
--- /dev/null
+++ b/meta/packages/libpng/libpng_1.2.8.bb
@@ -0,0 +1,57 @@
1DESCRIPTION = "PNG Library"
2HOMEPAGE = "http://www.libpng.org/"
3LICENSE = "libpng"
4SECTION = "libs"
5PRIORITY = "required"
6MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
7
8DEPENDS = "zlib"
9
10PACKAGES =+ "${PN}12 ${PN}12-dev"
11
12FILES_${PN}12 = ${libdir}/libpng12.so.*
13FILES_${PN}12-dev = ${libdir}/libpng12.* ${includedir}/libpng12 ${libdir}/pkgconfig/libpng12.pc
14FILES_${PN} = ${libdir}/lib*.so.*
15FILES_${PN}-dev = ${includedir} ${libdir}/lib*.so ${libdir}/*.la \
16 ${libdir}/*.a ${libdir}/pkgconfig \
17 ${datadir}/aclocal ${bindir} ${sbindir}
18
19SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-${PV}.tar.bz2"
20S = "${WORKDIR}/libpng-${PV}"
21
22inherit pkgconfig binconfig
23
24EXTRA_OEMAKE_append = " ZLIBINC=${STAGING_INCDIR} ZLIBLIB=${STAGING_LIBDIR}"
25
26do_compile() {
27 sed < scripts/makefile.linux > makefile -e 's/^ZLIBINC.*//' -e 's/^ZLIBLIB.*//'
28 unset LDFLAGS
29 oe_runmake 'CC=${CC}' 'LD=${LD}' 'CFLAGS=${CFLAGS}' \
30 'ZLIBINC=${STAGING_INCDIR}' \
31 'ZLIBLIB=${STAGING_LIBDIR}'
32}
33
34do_stage() {
35 cp libpng.pc libpng12.pc
36 install -m 644 png.h ${STAGING_INCDIR}/png.h
37 install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
38 oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
39 ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
40}
41
42do_install() {
43 install -d ${D}${bindir} ${D}${mandir} \
44 ${D}${libdir} ${D}${includedir}
45 unset LDFLAGS
46 oe_runmake 'prefix=${prefix}' 'DESTDIR=${D}' \
47 'DB=${D}${bindir}' 'DI=${D}${includedir}' \
48 'DL=${D}${libdir}' 'DM=${D}${mandir}' \
49 install
50}
51
52python do_package() {
53 if bb.data.getVar('DEBIAN_NAMES', d, 1):
54 bb.data.setVar('PKG_${PN}', 'libpng12', d)
55 bb.build.exec_func('package_do_package', d)
56}
57