merge of '7ebcf65940382b7ebea258189704cb0e4a77dc70'
[vuplus_openembedded] / packages / mozilla / firefox.inc
1 SRC_URI += "file://mozilla-firefox.png file://mozilla-firefox.desktop"
2
3 PACKAGES =+ "firefox-inspector"
4
5 FILES_firefox-inspector = "     ${libdir}/firefox-${PV}/chrome/inspector* \
6                                 ${libdir}/firefox-${PV}/components/*nspector* \
7                                 ${libdir}/firefox-${PV}/extensions/inspector* \
8                                 ${libdir}/firefox-${PV}/defaults/preferences/inspector* \
9                                 "
10 FILES_${PN} = "${bindir}/firefox ${datadir}/applications/ ${datadir}/pixmaps/ ${libdir}/firefox-${PV}/* ${bindir}/defaults"
11 FILES_${PN}-dev += "${datadir}/idl ${bindir}/firefox-config"
12 FILES_${PN}-dbg += "    ${libdir}/firefox-${PV}/.debug \
13                         ${libdir}/firefox-${PV}/*/.debug \
14                         ${libdir}/firefox-${PV}/*/*/*/.debug \
15                         ${bindir}/.debug \
16                         "
17
18 do_install() {
19         oe_runmake DESTDIR="${D}" destdir="${D}" install
20         install -d ${D}${datadir}/applications
21         install -d ${D}${datadir}/pixmaps
22         install -m 0644 ${WORKDIR}/mozilla-firefox.desktop ${D}${datadir}/applications/
23         install -m 0644 ${WORKDIR}/mozilla-firefox.png ${D}${datadir}/pixmaps/
24         rm -f ${D}${libdir}/firefox-${PV}/TestGtkEmbed
25 }
26
27 pkg_postinst_firefox() {
28         # work around requirement for root access on first startup
29         chmod -R a+w ${libdir}/firefox*
30 }
31
32 do_stage() {
33         autotools_stage_all
34
35
36
37 }
38