|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 COMPILER = gcc |
|
27 |
|
28 include ../../../make-rules/shared-macros.mk |
|
29 |
|
30 COMPONENT_NAME = firefox |
|
31 COMPONENT_VERSION = 31.8.0esr |
|
32 COMPONENT_PROJECT_URL = http://www.mozilla.com/firefox |
|
33 COMPONENT_SRC = mozilla-esr31 |
|
34 COMPONENT_SRC_NAME = $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
35 COMPONENT_ARCHIVE = $(COMPONENT_SRC_NAME).source.tar.bz2 |
|
36 COMPONENT_ARCHIVE_HASH = \ |
|
37 sha256:4c14021637ba61690ac2b52eff31c9bb96e4a04d334bf934d33932c9c382c50c |
|
38 MOZILLA_FTP = http://ftp.mozilla.org/pub/mozilla.org/$(COMPONENT_NAME)/releases/$(COMPONENT_VERSION) |
|
39 COMPONENT_ARCHIVE_URL = $(MOZILLA_FTP)/source/$(COMPONENT_ARCHIVE) |
|
40 COMPONENT_BUGDB = firefox/browser |
|
41 |
|
42 TPNO= 23616 |
|
43 |
|
44 IPS_COMPONENT_VERSION = 31.8.0 |
|
45 |
|
46 # There are a set of .xpi files (as given in the LANG_LIST definition below) |
|
47 # that we need. These are available under: |
|
48 # http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/31.8.0esr/linux-i686/xpi/ |
|
49 # This downloads the xpi files. |
|
50 |
|
51 LANG_LIST = ar be bg ca cs da de el es-AR es-CL es-ES et fi \ |
|
52 fr he hi-IN hr hu id is it ja kk ko lt lv mk nb-NO nl nn-NO \ |
|
53 pl pt-BR pt-PT ro ru sk sl sq sr sv-SE th tr uk vi zh-CN zh-TW |
|
54 |
|
55 COMPONENT_PREP_ACTION += \ |
|
56 ($(MKDIR) xpi ; \ |
|
57 cd xpi ; \ |
|
58 for l in $(LANG_LIST) ; do \ |
|
59 $(WS_TOOLS)/userland-fetch --file $$l.xpi --url $(MOZILLA_FTP)/linux-i686/xpi/ ; \ |
|
60 done ; ) |
|
61 |
|
62 |
|
63 include $(WS_MAKE_RULES)/prep.mk |
|
64 include $(WS_MAKE_RULES)/configure.mk |
|
65 include $(WS_MAKE_RULES)/ips.mk |
|
66 |
|
67 # /usr/gnu/bin needed to pick up the GNU version of tail and readelf. |
|
68 # /usr/sbin needed for dtrace. |
|
69 PATH = /usr/gnu/bin:/usr/bin:/usr/sbin |
|
70 |
|
71 CLEAN_PATHS += $(COMPONENT_SRC) |
|
72 |
|
73 COMPONENT_PRE_CONFIGURE_ACTION += \ |
|
74 echo "mk_add_options BUILD_OFFICIAL=1" > .mozconfig ; \ |
|
75 echo "mk_add_options MOZILLA_OFFICIAL=1" >> .mozconfig ; \ |
|
76 echo "ac_add_options --prefix=/usr" >> .mozconfig ; \ |
|
77 echo "ac_add_options --libdir=/usr/lib" >> .mozconfig ; \ |
|
78 echo "ac_add_options --mandir=/usr/share/man" >> .mozconfig ; \ |
|
79 echo "ac_add_options --enable-official-branding" >> .mozconfig ; \ |
|
80 echo "ac_add_options --disable-updater" >> .mozconfig ; \ |
|
81 echo "ac_add_options --enable-debug-symbols=no" >> .mozconfig ; \ |
|
82 echo "ac_add_options --enable-update-packaging" >> .mozconfig ; \ |
|
83 echo "ac_add_options --enable-update-channel=esr" >> .mozconfig ; \ |
|
84 echo "ac_add_options --disable-tests" >> .mozconfig ; \ |
|
85 echo "ac_add_options --with-system-libevent" >> .mozconfig ; \ |
|
86 echo "ac_add_options --with-system-zlib" >> .mozconfig ; \ |
|
87 echo "ac_add_options --with-system-bz2" >> .mozconfig ; \ |
|
88 echo "ac_add_options --enable-system-ffi" >> .mozconfig ; \ |
|
89 echo "ac_add_options --enable-system-sqlite" >> .mozconfig ; \ |
|
90 echo "ac_add_options --enable-jemalloc" >> .mozconfig ; \ |
|
91 echo "ac_add_options --enable-xinerama" >> .mozconfig ; \ |
|
92 echo "ac_add_options --disable-crashreporter" >> .mozconfig ; \ |
|
93 echo "ac_add_options --disable-pulseaudio" >> .mozconfig ; \ |
|
94 echo "ac_add_options --enable-gstreamer" >> .mozconfig ; \ |
|
95 echo "ac_add_options --without-intl-api" >> .mozconfig ; \ |
|
96 echo "ac_add_options --enable-system-libffi" >> .mozconfig ; \ |
|
97 echo "ac_add_options --enable-ipc" >> .mozconfig ; \ |
|
98 echo "ac_add_options --enable-system-pixman" >> .mozconfig ; \ |
|
99 echo "ac_add_options --enable-startup-notification" >> .mozconfig ; \ |
|
100 echo "ac_add_options --enable-dtrace" >> .mozconfig ; |
|
101 |
|
102 CXXFLAGS += -Wno-invalid-offsetof |
|
103 |
|
104 CONFIGURE_ENV += PKG_CONFIG_PATH=$(CONFIGURE_LIBDIR.$(BITS))/pkgconfig |
|
105 CONFIGURE_ENV += OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__" |
|
106 |
|
107 CONFIGURE_ENV += MOZCONFIG=$(shell pwd)/.mozconfig |
|
108 CONFIGURE_ENV += "CC=$(CC)" |
|
109 CONFIGURE_ENV += "CXX=$(CXX)" |
|
110 CONFIGURE_ENV += "CFLAGS=$(CFLAGS)" |
|
111 CONFIGURE_ENV += "CXXFLAGS=$(CXXFLAGS)" |
|
112 |
|
113 # If the configure options are not explicitly set, then configure fails with: |
|
114 # configure: warning: CC=/usr/gcc/4.8/bin/gcc: invalid host type |
|
115 # invalid host type |
|
116 # configure: warning: CXX=/usr/gcc/4.8/bin/g++: invalid host type |
|
117 # invalid host type |
|
118 # configure: error: can only configure for one host and one target at a time |
|
119 CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX) |
|
120 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
|
121 |
|
122 COMPONENT_POST_BUILD_ACTION = \ |
|
123 (cd $(@D)/browser/installer ; $(ENV) $(COMPONENT_BUILD_ENV) \ |
|
124 $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS)) |
|
125 |
|
126 COMPONENT_POST_INSTALL_ACTION += \ |
|
127 $(CP) $(BUILD_DIR_32)/dist/firefox/precomplete \ |
|
128 $(PROTOUSRLIBDIR)/firefox-$(IPS_COMPONENT_VERSION)/precomplete ; |
|
129 |
|
130 COMPONENT_POST_INSTALL_ACTION += \ |
|
131 list1='$(LANG_LIST)' ; for f in $$list1 ; do \ |
|
132 $(CP) xpi/$$f.xpi \ |
|
133 $(PROTOUSRLIBDIR)/firefox-$(IPS_COMPONENT_VERSION)/browser/extensions/[email protected] ; \ |
|
134 done ; |
|
135 |
|
136 SIGNED_LIST.i386 = libsoftokn3.so libnssdbm3.so libfreebl3.so |
|
137 SIGNED_LIST.sparc = libsoftokn3.so libnssdbm3.so libfreebl_32int_3.so libfreebl_32int64_3.so |
|
138 SIGNED_LIST = $(SIGNED_LIST.$(MACH)) |
|
139 |
|
140 COMPONENT_POST_INSTALL_ACTION += \ |
|
141 slist='$(SIGNED_LIST)' ; for f in $$slist ; do \ |
|
142 mcs -d $(PROTOUSRLIBDIR)/firefox-$(IPS_COMPONENT_VERSION)/$$f ; \ |
|
143 LD_LIBRARY_PATH=$(PROTOUSRLIBDIR)/firefox-$(IPS_COMPONENT_VERSION) $(BUILD_DIR_32)/dist/bin/shlibsign -v -i $(PROTOUSRLIBDIR)/firefox-$(IPS_COMPONENT_VERSION)/$$f ; \ |
|
144 done ; |
|
145 |
|
146 ASLR_MODE = $(ASLR_ENABLE) |
|
147 |
|
148 COMPONENT_TEST_DIR = $(@D)/js/src |
|
149 COMPONENT_TEST_TARGETS=check-jit-test |
|
150 COMPONENT_TEST_TRANSFORMS += \ |
|
151 '-e "/\(^TEST-PASS\).*/d" ' |
|
152 |
|
153 configure: $(CONFIGURE_32) |
|
154 |
|
155 build: $(BUILD_32) |
|
156 |
|
157 install: $(INSTALL_32) |
|
158 |
|
159 test: $(TEST_32) |
|
160 |
|
161 system-test: $(NO_TESTS) |
|
162 |
|
163 REQUIRED_PACKAGES += database/sqlite-3 |
|
164 REQUIRED_PACKAGES += library/desktop/atk |
|
165 REQUIRED_PACKAGES += library/desktop/cairo |
|
166 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
|
167 REQUIRED_PACKAGES += library/desktop/gtk2 |
|
168 REQUIRED_PACKAGES += library/desktop/pango |
|
169 REQUIRED_PACKAGES += library/desktop/startup-notification |
|
170 REQUIRED_PACKAGES += library/glib2 |
|
171 REQUIRED_PACKAGES += library/graphics/pixman |
|
172 REQUIRED_PACKAGES += library/libevent |
|
173 REQUIRED_PACKAGES += library/libffi |
|
174 REQUIRED_PACKAGES += library/zlib |
|
175 REQUIRED_PACKAGES += system/library |
|
176 REQUIRED_PACKAGES += system/library/fontconfig |
|
177 REQUIRED_PACKAGES += system/library/freetype-2 |
|
178 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
|
179 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
180 REQUIRED_PACKAGES += system/library/libdbus |
|
181 REQUIRED_PACKAGES += system/library/libdbus-glib |
|
182 REQUIRED_PACKAGES += system/library/math |
|
183 REQUIRED_PACKAGES += x11/library/libx11 |
|
184 REQUIRED_PACKAGES += x11/library/libxext |
|
185 REQUIRED_PACKAGES += x11/library/libxrender |
|
186 REQUIRED_PACKAGES += x11/library/toolkit/libxt |