summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerich@mine.nu <erich@mine.nu>2004-04-03 15:11:03 +0000
committererich@mine.nu <erich@mine.nu>2004-04-03 15:11:03 +0000
commit4ebc359dcc5d43089763e40952ed15a48ab324f3 (patch)
treeeeb362911bd1aa4a0618a1060acb21fbc3ebe924
parent4f7644473e61c9c7779d689f0c3fca357f01ae28 (diff)
minimo depends on libidl
BKrev: 406ed407RXKVhIKkKpFnu5ZjKPLy7A
-rw-r--r--minimo/minimo-cvs.oe52
1 files changed, 52 insertions, 0 deletions
diff --git a/minimo/minimo-cvs.oe b/minimo/minimo-cvs.oe
index e69de29bb2..4922f79014 100644
--- a/minimo/minimo-cvs.oe
+++ b/minimo/minimo-cvs.oe
@@ -0,0 +1,52 @@
+DEPENDS = "virtual/libc xt gtk+ libidl"
+SRC_URI = "cvs://anonymous@cvs-mirror.mozilla.org/cvsroot;module=mozilla"
+S = "${WORKDIR}/mozilla"
+MAINTAINER = "Phil Blundell <pb@handhelds.org>"
+SECTION = "x11"
+PRIORITY = "optional"
+PV = "0.0cvs${CVSDATE}"
+
+export MINIMO=1
+export CROSS_COMPILE=1
+export CONFIGURE_ARGS="--target=${TARGET_SYS} --host=${BUILD_SYS} --build=${BUILD_SYS}"
+export CXX=${CC}
+export HOST_LIBIDL_CONFIG="libIDL-config-2"
+export MOZ_OBJDIR="${WORKDIR}/build-${TARGET_SYS}"
+export MOZCONFIG="${FILESDIR}/mozconfig"
+
+do_fetch () {
+ mkdir -p ${WORKDIR}
+ cd ${WORKDIR}
+ cvs $CVSCOOPTS -d :pserver:anonymous@cvs-mirror.mozilla.org/cvsroot co mozilla/client.mk
+ cd mozilla
+ make -f client.mk checkout
+ cd ..
+ tar czf ${DL_DIR}/mozilla_cvs-mirror.mozilla.org__${CVSDATE}.tar.gz mozilla
+}
+
+do_configure () {
+ cp embedding/minimo/mozconfig .
+}
+
+do_compile () {
+ make -f client.mk build_all
+ cd $MOZ_OBJDIR/embedding/minimo
+ make
+}
+
+do_install () {
+ mkdir -p ${D}/${libdir}/mozilla-minimo
+ cp -r $MOZ_OBJDIR/dist/bin/* ${D}/${libdir}/mozilla/minimo/
+ mkdir -p ${D}/${datadir}/applications
+ install -m 0644 embedding/minimo/minimo/desktop ${D}/${datadir}/applications/minimo.desktop
+ mkdir -p ${D}/${datadir}/pixmaps
+ install -m 0644 embedding/minimo/minimo/png ${D}/${datadir}/applications/minimo.png
+ mkdir -p ${D}/${bindir}
+ echo "#!/bin/sh" > ${D}/${bindir}/minimo
+ cat >>${D}/${bindir}/minimo << EOF
+cd ${libdir}/mozilla-minimo
+export LD_LIBRARY_PATH=${libdir}/mozilla-minimo
+exec ./Minimo http://www.mozilla.org/projects/minimo/home.html
+EOF
+ chmod 755 ${D}/${bindir}/minimo
+}