1 DESCRIPTION ?= "Browser made by mozilla"
2 DEPENDS += "alsa-lib curl"
3 SRC_URI += "file://mozilla-${PN}.png file://mozilla-${PN}.desktop"
5 ARM_INSTRUCTION_SET = "arm"
9 PACKAGES =+ "${PN}-inspector"
11 PACKAGES += "${PN}-sdk"
13 FILES_${PN}-inspector = " ${libdir}/${PN}-${MOZPV}/chrome/inspector* \
14 ${libdir}/${PN}-${MOZPV}/components/*nspector* \
15 ${libdir}/${PN}-${MOZPV}/extensions/inspector* \
16 ${libdir}/${PN}-${MOZPV}/defaults/preferences/inspector* \
18 FILES_${PN} = "${bindir}/${PN} \
19 ${datadir}/applications/ \
21 ${libdir}/${PN}-${MOZPV}/* \
22 ${libdir}/${PN}-${MOZPV}/.autoreg \
24 FILES_${PN}-dev += "${datadir}/idl ${bindir}/${PN}-config"
25 FILES_${PN}-sdk += "${libdir}/${PN}-devel-${MOZPV}"
26 FILES_${PN}-dbg += " ${libdir}/${PN}-*/.debug \
27 ${libdir}/${PN}-*/*/.debug \
28 ${libdir}/${PN}-*/*/*/.debug \
29 ${libdir}/${PN}-*/*/*/*/.debug \
34 oe_runmake DESTDIR="${D}" destdir="${D}" install
35 install -d ${D}${datadir}/applications
36 install -d ${D}${datadir}/pixmaps
37 install -m 0644 ${WORKDIR}/mozilla-${PN}.desktop ${D}${datadir}/applications/
38 install -m 0644 ${WORKDIR}/mozilla-${PN}.png ${D}${datadir}/pixmaps/
39 rm -f ${D}${libdir}/${PN}-*/TestGtkEmbed
40 rm -f ${D}${libdir}/${PN}-*/defaults/pref/firefox-l10n.js
43 grep -Rl intl.locale.matchOS ${D}${libdir}/${PN}-*/ \
45 | xargs -n 1 sed -i 's/\(pref("intl.locale.matchOS",\s*\)false)/\1true)/g'
47 # disable application updating
48 grep -Rl app.update.enabled ${D}${libdir}/${PN}-*/ \
50 | xargs -n 1 sed -i 's/\(pref("app.update.enabled",\s*\)true)/\1false)/g'
52 for pc in ${WORKDIR}/*.pc ; do
53 sed -i s:3.5.2:${PV}:g $pc
56 install -d ${D}${libdir}/pkgconfig
57 install -m 0644 ${WORKDIR}/firefox-plugin.pc ${D}${libdir}/pkgconfig
58 install -m 0644 ${WORKDIR}/firefox-xpcom.pc ${D}${libdir}/pkgconfig
59 install -m 0644 ${WORKDIR}/nspr.pc ${D}${libdir}/pkgconfig
62 pkg_postinst_${PN}() {
63 # work around requirement for root access on first startup
64 chmod -R a+w ${libdir}/${PN}* ||true
67 # Force feed mozilla our ldflags
68 TARGET_CC_ARCH += " ${LDFLAGS} "
70 # We don't build XUL as system shared lib, so we can mark all libs as private
71 PRIVATE_LIBS = "libnssckbi.so \
88 libbrowserdirprovider.so \
96 libunixprintplugin.so \