aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro-integration/recipes-overlayed/firefox/firefox_10.0.11esr.bb
blob: 98da1a4e1f6a130e43cb57752367107263e9a1c2 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Copyright (C) 2009-2013, O.S. Systems Software Ltda. All Rights Reserved
# Released under the MIT license (see packages/COPYING)

DESCRIPTION ?= "Browser made by mozilla"
DEPENDS += "alsa-lib curl startup-notification libevent cairo libnotify libvpx virtual/libgl nss nspr"

LICENSE = "MPLv1 | GPLv2+ | LGPLv2.1+"
LIC_FILES_CHKSUM = "file://toolkit/content/license.html;endline=39;md5=9cb02f27e77e702043b827c9418bfbf8"

SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}.source.tar.bz2;name=archive \
           file://mozilla-${PN}.png \
           file://mozilla-${PN}.desktop \
           file://fixes/Allow-.js-preference-files-to-set-locked-prefs-with-.patch \
           file://fixes/Avoid-spurious-Run-items-in-application-handlers-con.patch \
           file://fixes/Properly-launch-applications-set-in-HOME-.mailcap.patch \
           file://fixes/Fix-some-tests-using-CurProcD-where-GreD-should-be-u.patch \
           file://fixes/Bug-691898-Use-YARR-interpreter-instead-of-PCRE-on-p.patch \
           file://fixes/Bug-722127-Bump-required-libvpx-version-to-1.0.0.-r-.patch \
           file://fixes/Bug-728229-Allow-to-build-with-system-python-ply-lib.patch \
           file://fixes/Bug-720682-Don-t-crash-an-app-using-libxul-because-o.patch \
           file://fixes/Bug-696636-Block-OpenGL-1-drivers-explicitly-to-stee.patch \
           file://fixes/Load-dependent-libraries-with-their-real-path-to-avo.patch \
           file://fixes/Bug-515232-Try-getting-general.useragent.locale-as-a.patch \
           file://fixes/Bug-729817-Block-the-Nouveau-3D-driver-as-it-s-insta.patch \
           file://fixes/Bug-729817-Allow-the-Nouveau-driver-with-Mesa-8.0.1-.patch \
           file://fixes/Bug-747322-Fix-jemalloc-mmap-wrapper-for-s390x.patch \
           file://fixes/Bug-725655-gcc-4.7-build-failures-missing-headers-.-.patch \
           file://fixes/Bug-734490-fix-build-failures-with-Clang-and-GCC-4.7.patch \
           file://fixes/Bug-706724-Fix-for-error-ftruncate-was-not-declared-.patch \
           file://fixes/Bug-709259-Try-creating-a-named-cursor-before-a-bitm.patch \
           file://fixes/Bug-761082-Only-export-TabMessageUtils.h-in-mozilla-.patch \
           file://fixes/bug-693343-a11y-disabled-in-Gnome-3-when-GNOME_ACCES.patch \
           file://fixes/Allow-webGL-with-mesa-assuming-users-will-have-updat.patch \
           file://iceweasel-branding/Use-MOZ_APP_DISPLAYNAME-to-fill-appstrings.propertie.patch \
           file://iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch \
           file://porting/Add-xptcall-support-for-SH4-processors.patch \
           file://porting/Allow-ipc-code-to-build-on-GNU-kfreebsd.patch \
           file://porting/Allow-ipc-code-to-build-on-GNU-Hurd.patch \
           file://porting/Bug-698923-Don-t-require-16-bytes-alignment-for-VMFr.patch \
           file://porting/Fix-GNU-non-Linux-failure-to-build-because-of-ipc-ch.patch \
           file://porting/Bug-703531-Fix-ARMAssembler-getOp2RegScale-on-ARMv5.patch \
           file://porting/Bug-703534-Fix-build-failure-on-platforms-without-YA.patch \
           file://porting/Bug-703842-Avoid-R_SPARC_WDISP22-relocation-in-Tramp.patch \
           file://porting/Bug-703833-Avoid-invalid-conversion-from-const-size_.patch \
           file://porting/Bug-711353-Add-support-for-GNU-kFreeBSD-and-GNU-Hurd.patch \
           file://porting/Bug-747870-Properly-align-XPCLazyCallContext-mData.-.patch \
           file://porting/Bug-706787-Crash-on-s390x-nsXPCComponents-AttachNewC.patch \
           file://prefs/Remove-general.useragent.locale-prefs-from-firefox-..patch \
           file://prefs/Enable-intl.locale.matchOS-and-report-the-locale-cor.patch \
           file://prefs/Set-javascript.options.showInConsole.patch \
           file://prefs/Set-DPI-to-system-settings.patch \
           file://prefs/Don-t-auto-disable-extensions-in-system-directories.patch \
           file://debian-hacks/Check-less-things-during-configure-when-using-libxul.patch \
           file://debian-hacks/Avoid-wrong-sessionstore-data-to-keep-windows-out-of.patch \
           file://debian-hacks/Avoid-libxpcom-being-excluded-from-linked-libraries-.patch \
           file://debian-hacks/Don-t-build-example-component.patch \
           file://debian-hacks/Don-t-install-system-profile.patch \
           file://debian-hacks/Ignore-system-libjpeg-libpng-and-zlib-version-checki.patch \
           file://debian-hacks/Add-soname-to-appropriate-libraries.patch \
           file://debian-hacks/Add-another-preferences-directory-for-applications-p.patch \
           file://debian-hacks/Gross-workaround-to-avoid-installing-test-idl-and-in.patch \
           file://debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch \
           file://debian-hacks/Install-missing-nanojit-and-.tbl-headers-from-js-src.patch \
           file://debian-hacks/Use-a-variable-for-xulrunner-base-version-in-various.patch \
           file://debian-hacks/Install-js-shell-when-running-make-install-from-js-s.patch \
           file://debian-hacks/Don-t-error-out-when-run-time-libsqlite-is-older-tha.patch \
           file://debian-hacks/Do-build-time-detection-of-2-bytes-wchar_t-and-char1.patch \
           file://debian-hacks/pkg-config-files-don-t-need-to-require-the-version-o.patch \
           file://debian-hacks/Add-a-2-minutes-timeout-on-xpcshell-tests.patch \
           file://debian-hacks/Fix-tracejit-to-build-against-nanojit-headers-in-dis.patch \
           file://debian-hacks/Load-distribution-search-plugins-from-etc-appname-se.patch \
           file://debian-hacks/Handle-transition-to-etc-appname-searchplugins-more-.patch \
           file://debian-hacks/Bug-508942-Use-Preprocessor.py-filters-in-defines-an.patch \
           file://configure.patch \
           file://powerpc_va_list.patch \
           file://vendor.js"

SRC_URI[archive.md5sum] = "2f0e3a1dd7480e03f374c0121b4155e2"
SRC_URI[archive.sha256sum] = "94b4d5a339d97dc56fd349f93407c3af4f408a4a8409a64e3680d564d37594f8"

S = "${WORKDIR}/mozilla-esr10"

inherit mozilla

EXTRA_OEMAKE = "installdir=${libdir}/${PN}"

ARM_INSTRUCTION_SET = "arm"
TARGET_CC_ARCH += " -I${STAGING_INCDIR}/freetype2"

do_install() {
	oe_runmake DESTDIR="${D}" destdir="${D}" install
	install -d ${D}${datadir}/applications
	install -d ${D}${datadir}/pixmaps
	install -m 0644 ${WORKDIR}/mozilla-${PN}.desktop ${D}${datadir}/applications/
	install -m 0644 ${WORKDIR}/mozilla-${PN}.png ${D}${datadir}/pixmaps/
	install -m 0644 ${WORKDIR}/vendor.js ${D}${libdir}/${PN}/defaults/pref/
	rm -f ${D}${libdir}/${PN}/TestGtkEmbed
	rm -f ${D}${libdir}/${PN}/defaults/pref/firefox-l10n.js

	# use locale settings
	grep -Rl intl.locale.matchOS ${D}${libdir}/${PN}/ \
	   | grep '.js$' \
	   | xargs sed -i 's/\(pref("intl.locale.matchOS",\s*\)false)/\1true)/g'

	# disable application updating
	grep -Rl app.update.enabled ${D}${libdir}/${PN}/ \
	   | grep '.js$' \
	   | xargs sed -i 's/\(pref("app.update.enabled",\s*\)true)/\1false)/g'
}

PACKAGES += "${PN}-inspector"

FILES_${PN}-inspector = "${libdir}/${PN}/chrome/inspector* \
                         ${libdir}/${PN}/components/*nspector* \
                         ${libdir}/${PN}/extensions/inspector* \
                         ${libdir}/${PN}/defaults/preferences/inspector*"
FILES_${PN} = "${bindir}/${PN} \
               ${datadir}/applications/ \
               ${datadir}/pixmaps/ \
               ${libdir}/${PN}/* \
               ${libdir}/${PN}/.autoreg \
               ${bindir}/defaults"
FILES_${PN}-dev += "${datadir}/idl ${bindir}/${PN}-config ${libdir}/${PN}-devel-*"
FILES_${PN}-staticdev += "${libdir}/${PN}-devel-*/sdk/lib/*.a"
FILES_${PN}-dbg += "${libdir}/${PN}/.debug \
                    ${libdir}/${PN}/*/.debug \
                    ${libdir}/${PN}/*/*/.debug \
                    ${libdir}/${PN}/*/*/*/.debug \
                    ${libdir}/${PN}-devel-*/*/.debug \
                    ${libdir}/${PN}-devel-*/*/*/.debug \
                    ${libdir}/${PN}-devel-*/*/*/*/.debug \
                    ${bindir}/.debug"

# We don't build XUL as system shared lib, so we can mark all libs as private
PRIVATE_LIBS = "libmozjs.so \
                libxpcom.so \
                libnspr4.so \
                libxul.so \
                libmozalloc.so \
                libplc4.so \
                libplds4.so"

# mark libraries also provided by nss as private too
PRIVATE_LIBS += " \
    libfreebl3.so \
    libnss3.so \
    libnssckbi.so \
    libsmime3.so \
    libnssutil3.so \
    libnssdbm3.so \
    libssl3.so \
    libsoftokn3.so \
"