summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/mozilla/minimo_0.016.bb
blob: 11b17b54eddcb9e5c7d5fc8bc0031c6f6b2a7aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
DESCRIPTION = "A small, simple, powerful, innovative, web browser for mobile devices"
HOMEPAGE = "http://www.mozilla.org/projects/minimo/"
MAINTAINER = "Rene Wagner <rw@handhelds.org>, Paul Parsons <lost.distance@yahoo.com>"
SECTION = "x11"
PRIORITY = "optional"
LICENSE = "MPL/LGPL/GPL"
EPOCH = "1:"

CVSDATE="20060720"

SRC_URI = "cvs://anonymous@cvs-mirror.mozilla.org/cvsroot;module=mozilla \
	   file://xptcstubs.patch;patch=1 \
	   file://no-x86-asm.patch;patch=1 \
	   file://no-xmb.patch;patch=1 \
	   file://host_ldflags_fix.patch;patch=1 \
	   file://lost-distance.patch;patch=1 \
	   file://minimo-components-ssr-only.patch;patch=1 \
	   file://minimo.png \
	   file://minimo.desktop"
S = "${WORKDIR}/mozilla"

inherit mozilla

EXTRA_OECONF += "--enable-application=minimo --disable-native-uconv"
export MOZ_CO_PROJECT = "minimo"
export MOZ_CO_TAG = "MOZILLA_1_8_BRANCH"

include mozilla-cvs.inc

do_configure() {
	(
		set -e
		for cg in `find ${S} -name config.guess`; do
			install -m 0755 \
			${STAGING_BINDIR}/../share/gnu-config/config.guess \
			${STAGING_BINDIR}/../share/gnu-config/config.sub \
			`dirname $cg`/
		done
	)
	cd ${S}
	oe_runmake -f client.mk CONFIGURE_ARGS="${EXTRA_OECONF}" configure
}

do_compile () {
	oe_runmake -f client.mk build
}

mozdir = "${libdir}/mozilla-minimo"
FILES_${PN} += "${mozdir}"

do_install () {
	./minimo/config/linux_package.sh ${S} ${S}/minimo/config
	
	mkdir -p ${D}${mozdir}
	cp -rL $MOZ_OBJDIR/dist/minimo/* ${D}${mozdir}/
	
	mkdir -p ${D}${datadir}/applications
	install -m 0644 ${WORKDIR}/minimo.desktop ${D}${datadir}/applications/

	mkdir -p ${D}${datadir}/pixmaps
	install -m 0644 ${WORKDIR}/minimo.png ${D}${datadir}/pixmaps/

	mkdir -p ${D}${bindir}
	cat > ${D}${bindir}/minimo << EOF
#!/bin/sh
export MOZILLA_FIVE_HOME=${mozdir}
export LD_LIBRARY_PATH=\$MOZILLA_FIVE_HOME
exec \$MOZILLA_FIVE_HOME/minimo "\$@"
EOF
	chmod 755 ${D}${bindir}/minimo
}