summaryrefslogtreecommitdiff
path: root/recipes/microwindows/microwindows.inc
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/microwindows/microwindows.inc
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (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/microwindows/microwindows.inc')
-rw-r--r--recipes/microwindows/microwindows.inc55
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes/microwindows/microwindows.inc b/recipes/microwindows/microwindows.inc
new file mode 100644
index 0000000000..6ddc141936
--- /dev/null
+++ b/recipes/microwindows/microwindows.inc
@@ -0,0 +1,55 @@
+DESCRIPTION = "Microwindows Graphical Engine"
+SECTION = "x11/wm"
+PRIORITY = "optional"
+DEPENDS = "libpng jpeg zlib"
+LICENSE = "GPL"
+
+PR="r2"
+
+PARALLEL_MAKE = ""
+
+EXTRA_OEMAKE = " \
+ -C ${S}/src \
+ ARMTOOLSPREFIX=${TARGET_PREFIX} \
+ INCJPEG=${STAGING_INCDIR} \
+ LIBJPEG=${STAGING_LIBDIR}/libjpeg.so \
+ INCPNG=${STAGING_INCDIR} \
+ LIBPNG=${STAGING_LIBDIR}/libpng.so \
+ LIBZ=${STAGING_LIBDIR}/libz.so \
+ INSTALL_PREFIX=${D}${prefix} \
+ INSTALL_OWNER1= \
+ INSTALL_OWNER2= \
+ "
+
+do_compile() {
+ cp ${WORKDIR}/defconfig ${S}/src/config
+ oe_runmake
+}
+
+do_stage() {
+ install -m 0644 ${S}/src/include/nano-X.h ${STAGING_INCDIR}/
+ install -m 0644 ${S}/src/include/mwtypes.h ${STAGING_INCDIR}/
+ install -m 0644 ${S}/src/include/nxcolors.h ${STAGING_INCDIR}/
+ install -m 0644 ${S}/src/include/nxdraw.h ${STAGING_INCDIR}/
+ install -m 0755 ${S}/src/lib/*.so ${STAGING_LIBDIR}/
+ install -m 0644 ${S}/src/lib/*.a ${STAGING_LIBDIR}/
+}
+
+do_install() {
+ oe_runmake install all
+
+# the next 3 lines are necessary for snapshot build since it has CVS cruft in the tarball
+ rm -rf ${S}/src/lib/CVS
+ rm -rf ${S}/src/bin/CVS
+ rm -f ${S}/src/bin/fonts
+
+# convbdf is a host tool - don't install it
+ mkdir ${S}/src/hostbin
+ mv ${S}/src/bin/convbdf ${S}/src/hostbin
+
+ install -d ${D}${bindir} ${D}$bindir}/fonts ${D}${libdir}
+ install -m 0755 ${S}/src/lib/* ${D}${libdir}/
+ install -m 0755 ${S}/src/bin/* ${D}${bindir}/
+}
+
+FILES_${PN}="${bindir}/* ${libdir}/*"