diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/mozilla/minimo_cvs.bb | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-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/mozilla/minimo_cvs.bb')
-rw-r--r-- | meta/packages/mozilla/minimo_cvs.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/packages/mozilla/minimo_cvs.bb b/meta/packages/mozilla/minimo_cvs.bb new file mode 100644 index 0000000000..7904951277 --- /dev/null +++ b/meta/packages/mozilla/minimo_cvs.bb | |||
@@ -0,0 +1,54 @@ | |||
1 | DESCRIPTION = "A minimal version of the Mozilla web browser" | ||
2 | HOMEPAGE="http://www.mozilla.org/projects/minimo/" | ||
3 | SRC_URI = "cvs://anonymous@cvs-mirror.mozilla.org/cvsroot;module=mozilla \ | ||
4 | file://xptcstubs.patch;patch=1 \ | ||
5 | file://no-xmb.patch;patch=1 \ | ||
6 | file://host_ldflags_fix.patch;patch=1 \ | ||
7 | file://minimo.png file://minimo.desktop" | ||
8 | S = "${WORKDIR}/mozilla" | ||
9 | MAINTAINER = "Phil Blundell <pb@handhelds.org>" | ||
10 | SECTION = "x11" | ||
11 | PRIORITY = "optional" | ||
12 | PV = "0.0+cvs${SRCDATE}" | ||
13 | FILES_${PN} += "${libdir}/mozilla-minimo" | ||
14 | PR = "r8" | ||
15 | LICENSE = "MPL/LGPL/GPL" | ||
16 | |||
17 | inherit mozilla | ||
18 | |||
19 | EXTRA_OECONF += "--enable-application=suite --disable-native-uconv" | ||
20 | export MOZ_CO_PROJECT="suite" | ||
21 | |||
22 | export MINIMO=1 | ||
23 | export MOZ_OBJDIR="${WORKDIR}/build-${TARGET_SYS}" | ||
24 | |||
25 | include mozilla-cvs.inc | ||
26 | |||
27 | do_compile () { | ||
28 | mozilla_do_compile | ||
29 | cd $MOZ_OBJDIR/embedding/minimo | ||
30 | oe_runmake | ||
31 | } | ||
32 | |||
33 | mozdir="${D}${libdir}/mozilla-minimo" | ||
34 | |||
35 | do_install () { | ||
36 | cd ${S}/embedding/minimo/ | ||
37 | sh ./package.sh | ||
38 | cd ${S} | ||
39 | mkdir -p ${mozdir} | ||
40 | cp -rL $MOZ_OBJDIR/dist/Embed/* ${mozdir}/ | ||
41 | rm -f ${mozdir}/TestGtkEmbed | ||
42 | mkdir -p ${D}${datadir}/applications | ||
43 | install -m 0644 ${WORKDIR}/minimo.desktop ${D}${datadir}/applications/minimo.desktop | ||
44 | mkdir -p ${D}${datadir}/pixmaps | ||
45 | install -m 0644 ${WORKDIR}/minimo.png ${D}${datadir}/pixmaps/minimo.png | ||
46 | mkdir -p ${D}${bindir} | ||
47 | echo "#!/bin/sh" > ${D}${bindir}/minimo | ||
48 | cat >>${D}${bindir}/minimo << EOF | ||
49 | cd ${libdir}/mozilla-minimo | ||
50 | export LD_LIBRARY_PATH=${libdir}/mozilla-minimo | ||
51 | exec ./Minimo http://www.mozilla.org/projects/minimo/home.html | ||
52 | EOF | ||
53 | chmod 755 ${D}${bindir}/minimo | ||
54 | } | ||