1 DESCRIPTION ?= "Browser made by mozilla"
3 SRC_URI += "file://mozilla-${PN}.png file://mozilla-${PN}.desktop"
6 ARM_INSTRUCTION_SET = "arm"
10 PACKAGES =+ "${PN}-inspector"
12 PACKAGES += "${PN}-sdk"
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* \
19 FILES_${PN} = "${bindir}/${PN} \
20 ${datadir}/applications/ \
22 ${libdir}/${PN}-${MOZPV}/* \
23 ${libdir}/${PN}-${MOZPV}/.autoreg \
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 \
34 export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2"
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`"
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
51 grep -Rl intl.locale.matchOS ${D}${libdir}/${PN}-*/ \
53 | xargs -n 1 sed -i 's/\(pref("intl.locale.matchOS",\s*\)false)/\1true)/g'
55 # disable application updating
56 grep -Rl app.update.enabled ${D}${libdir}/${PN}-*/ \
58 | xargs -n 1 sed -i 's/\(pref("app.update.enabled",\s*\)true)/\1false)/g'
61 pkg_postinst_${PN}() {
62 # work around requirement for root access on first startup
63 chmod -R a+w ${libdir}/${PN}* ||true
70 # Force feed mozilla our ldflags
71 TARGET_CC_ARCH += " ${LDFLAGS} "
73 # We don't build XUL as system shared lib, so we can mark all libs as private
74 PRIVATE_LIBS = "libnssckbi.so \
91 libbrowserdirprovider.so \
99 libunixprintplugin.so \