summaryrefslogtreecommitdiff
path: root/libpng
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2004-09-08 15:59:36 +0000
committerHolger Freyther <zecke@selfish.org>2004-09-08 15:59:36 +0000
commitead9360a2b1c85a9eb90942124d7a7eb0c7ef393 (patch)
treec49c53c909bad531f0f6c3adf0c67f6819e1681c /libpng
parent2f8a764c606b49af70e58eaa8861bbe16a0f76a5 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into handhelds.org:/home/ich/programming/oe/oe-packages-exported 2004/09/08 16:38:21+02:00 handhelds.org!zecke Add two board games by Helge Plehn Hexatrolic is a ball game and a mix of pinball and arkanoid Labyrinth is a traditional 'wood' board where you need to move a ball through a labyrinth 2004/09/08 16:35:14+02:00 handhelds.org!zecke Remove a wrong PR from the libpng package as the PR was wrong and isn't needed BKrev: 413f2c68ZGL5WR_kX7Dp3p4fnX1BHg
Diffstat (limited to 'libpng')
-rw-r--r--libpng/libpng_1.2.5+1.2.6rc5.oe54
1 files changed, 54 insertions, 0 deletions
diff --git a/libpng/libpng_1.2.5+1.2.6rc5.oe b/libpng/libpng_1.2.5+1.2.6rc5.oe
index e69de29bb2..a765d9e08e 100644
--- a/libpng/libpng_1.2.5+1.2.6rc5.oe
+++ b/libpng/libpng_1.2.5+1.2.6rc5.oe
@@ -0,0 +1,54 @@
+DESCRIPTION = "PNG Library"
+SECTION = "libs"
+PRIORITY = "required"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+DEPENDS = "zlib"
+
+PACKAGES =+ "${PN}12 ${PN}12-dev"
+
+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}
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-1.2.6rc5.tar.bz2"
+S = "${WORKDIR}/libpng-1.2.6rc5"
+
+inherit pkgconfig
+
+EXTRA_OEMAKE_append = " ZLIBINC=${STAGING_INCDIR} ZLIBLIB=${STAGING_LIBDIR}"
+
+do_compile() {
+ sed < scripts/makefile.linux > makefile -e 's/^ZLIBINC.*//' -e 's/^ZLIBLIB.*//'
+ unset LDFLAGS
+ oe_runmake 'CC=${CC}' 'LD=${LD}' 'CFLAGS=${CFLAGS}' \
+ 'ZLIBINC=${STAGING_INCDIR}' \
+ 'ZLIBLIB=${STAGING_LIBDIR}'
+}
+
+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 oe.data.getVar('DEBIAN_NAMES', d, 1):
+ oe.data.setVar('PKG_${PN}', 'libpng12', d)
+ oe.build.exec_func('package_do_package', d)
+}
+