Merge bk://openembedded@openembedded.bkbits.net/packages
authorHolger Freyther <zecke@selfish.org>
Wed, 8 Sep 2004 15:59:36 +0000 (15:59 +0000)
committerHolger Freyther <zecke@selfish.org>
Wed, 8 Sep 2004 15:59:36 +0000 (15:59 +0000)
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

libpng/libpng_1.2.5+1.2.6rc5.oe
opie-3rdparty/hexatrolic_1.0beta3.oe [new file with mode: 0644]
opie-3rdparty/labyrinth_0.7.oe [new file with mode: 0644]

index e69de29..a765d9e 100644 (file)
@@ -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)
+}
+
diff --git a/opie-3rdparty/hexatrolic_1.0beta3.oe b/opie-3rdparty/hexatrolic_1.0beta3.oe
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/opie-3rdparty/labyrinth_0.7.oe b/opie-3rdparty/labyrinth_0.7.oe
new file mode 100644 (file)
index 0000000..e69de29