increase dvbapp PR
[vuplus_openembedded] / recipes / mozilla / firefox.inc
1 DESCRIPTION ?= "Browser made by mozilla"
2 DEPENDS += "alsa-lib"
3 SRC_URI += "file://mozilla-${PN}.png file://mozilla-${PN}.desktop"
4
5 PARALLEL_MAKE = ""
6 ARM_INSTRUCTION_SET = "arm"
7
8 MOZPV ?= "${PV}"
9
10 PACKAGES =+ "${PN}-inspector"
11
12 PACKAGES += "${PN}-sdk"
13
14 FILES_${PN}-inspector = "       ${libdir}/${PN}-${MOZPV}/chrome/inspector* \
15                                 ${libdir}/${PN}-${MOZPV}/components/*nspector* \
16                                 ${libdir}/${PN}-${MOZPV}/extensions/inspector* \
17                                 ${libdir}/${PN}-${MOZPV}/defaults/preferences/inspector* \
18                                 "
19 FILES_${PN} = "${bindir}/${PN} \
20                ${datadir}/applications/ \
21                ${datadir}/pixmaps/ \
22                ${libdir}/${PN}-${MOZPV}/* \
23                ${libdir}/${PN}-${MOZPV}/.autoreg \
24                ${bindir}/defaults"
25 FILES_${PN}-dev += "${datadir}/idl ${bindir}/${PN}-config"
26 FILES_${PN}-sdk += "${libdir}/${PN}-devel-${MOZPV}"
27 FILES_${PN}-dbg += "    ${libdir}/${PN}-*/.debug \
28                         ${libdir}/${PN}-*/*/.debug \
29                         ${libdir}/${PN}-*/*/*/.debug \  
30                         ${libdir}/${PN}-*/*/*/*/.debug \
31                         ${bindir}/.debug \
32                         "
33
34 export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
35
36 # Due to sysroot we need to sed out references to the target staging when building the native version of xpidl
37 # Symptons of the failure include "gthread.h:344: error: size of array 'type name' is negative"
38 export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags | sed -e s:${STAGING_DIR_TARGET}:${STAGING_DIR_NATIVE}:g`"
39
40
41 do_install() {
42         oe_runmake DESTDIR="${D}" destdir="${D}" install
43         install -d ${D}${datadir}/applications
44         install -d ${D}${datadir}/pixmaps
45         install -m 0644 ${WORKDIR}/mozilla-${PN}.desktop ${D}${datadir}/applications/
46         install -m 0644 ${WORKDIR}/mozilla-${PN}.png ${D}${datadir}/pixmaps/
47         rm -f ${D}${libdir}/${PN}-*/TestGtkEmbed
48         rm -f ${D}${libdir}/${PN}-*/defaults/pref/firefox-l10n.js
49
50         # use locale settings
51         grep -Rl intl.locale.matchOS ${D}${libdir}/${PN}-*/ \
52            | grep '.js$' \
53            | xargs -n 1 sed -i 's/\(pref("intl.locale.matchOS",\s*\)false)/\1true)/g'
54
55         # disable application updating
56         grep -Rl app.update.enabled ${D}${libdir}/${PN}-*/ \
57            | grep '.js$' \
58            | xargs -n 1 sed -i 's/\(pref("app.update.enabled",\s*\)true)/\1false)/g'
59 }
60
61 pkg_postinst_${PN}() {
62         # work around requirement for root access on first startup
63         chmod -R a+w ${libdir}/${PN}* ||true 
64 }
65
66 do_stage() {
67         autotools_stage_all
68 }
69
70 # Force feed mozilla our ldflags
71 TARGET_CC_ARCH += " ${LDFLAGS} "
72
73 # We don't build XUL as system shared lib, so we can mark all libs as private
74 PRIVATE_LIBS = "libnssckbi.so \
75                 libxpcom.so \
76                 libplc4.so \
77                 libssl3.so \
78                 libfreebl3.so \
79                 libnss3.so \
80                 libnspr4.so \
81                 libmozjs.so \
82                 libxul.so \
83                 libplds4.so \
84                 libnssutil3.so \
85                 libsoftokn3.so \
86                 libnssdbm3.so \
87                 libsmime3.so \
88                 libnullplugin.so \
89                 libimgicon.so \
90                 libdbusservice.so \
91                 libbrowserdirprovider.so \
92                 libbrowsercomps.so \
93                 libnptest.so \
94                 libMyService.so \
95                 libmozgnome.so \
96                 libtestdynamic.so \
97                 libnkgnomevfs.so \
98                 libxpcomsample.so \
99                 libunixprintplugin.so \
100 "
101
102