commit | author | age
|
19364b
|
1 |
# |
99a872
|
2 |
# This file and its contents are supplied under the terms of the |
AP |
3 |
# Common Development and Distribution License ("CDDL"), version 1.0. |
|
4 |
# You may only use this file in accordance with the terms of version |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
7 |
# A full copy of the text of the CDDL should have accompanied this |
|
8 |
# source. A copy of the CDDL is also available via the Internet at |
|
9 |
# http://www.illumos.org/license/CDDL. |
|
10 |
# |
19364b
|
11 |
|
AP |
12 |
# |
99a872
|
13 |
# Copyright 2015 OpenSXCE.org Martin Bochnig <opensxce@mail.ru> |
AP |
14 |
# Copyright 2013-2015 Alexander Pyhalov |
19364b
|
15 |
# |
AP |
16 |
|
|
17 |
include ../../make-rules/shared-macros.mk |
|
18 |
|
|
19 |
COMPONENT_NAME= firefox |
a0873f
|
20 |
COMPONENT_VERSION= 44.0.2 |
19364b
|
21 |
COMPONENT_SUMMARY= Mozilla Firefox Web browser |
99a872
|
22 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
bb220f
|
23 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).source.tar.xz |
19364b
|
24 |
COMPONENT_ARCHIVE_HASH= \ |
a0873f
|
25 |
sha256:0bb28841a9268c50cbb239f759f16f55b3a624f679c68965158beaa0a83a2d9e |
19364b
|
26 |
COMPONENT_ARCHIVE_URL= \ |
5cbedb
|
27 |
https://ftp.mozilla.org/pub/firefox/releases/$(COMPONENT_VERSION)/source/$(COMPONENT_ARCHIVE) |
19364b
|
28 |
COMPONENT_PROJECT_URL = http://www.mozilla.com/en-US/firefox/ |
AP |
29 |
|
|
30 |
LANG_LIST= ar be bg ca cs da de el es-AR es-CL es-ES et fi fr he hi-IN hr hu id is it ja kk ko lt lv mk nb-NO nl nn-NO pl pt-BR pt-PT ro ru sk sl sq sr sv-SE th tr uk vi zh-CN zh-TW |
|
31 |
LANG_FILES_LOCATION= http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$(COMPONENT_VERSION)/linux-i686/xpi/ |
|
32 |
|
|
33 |
include $(WS_TOP)/make-rules/prep.mk |
|
34 |
include $(WS_TOP)/make-rules/configure.mk |
|
35 |
include $(WS_TOP)/make-rules/ips.mk |
|
36 |
|
99a872
|
37 |
COMPONENT_PRE_CONFIGURE_ACTION = (cp $(COMPONENT_DIR)/files/gld-wrapper $(BUILD_DIR); chmod +x $(BUILD_DIR)/gld-wrapper ) |
19364b
|
38 |
|
AP |
39 |
PATH=/usr/bin:/usr/gnu/bin:/usr/sbin |
|
40 |
|
bb220f
|
41 |
CONFIGURE_OPTIONS = --enable-application=browser |
19364b
|
42 |
CONFIGURE_OPTIONS += --enable-official-branding |
AP |
43 |
CONFIGURE_OPTIONS += --disable-updater |
bb220f
|
44 |
CONFIGURE_OPTIONS += --enable-debug-symbols=no |
M |
45 |
CONFIGURE_OPTIONS += --enable-update-channel=esr |
|
46 |
CONFIGURE_OPTIONS += --disable-tests |
|
47 |
CONFIGURE_OPTIONS += --enable-jemalloc |
|
48 |
CONFIGURE_OPTIONS += --disable-dtrace |
|
49 |
CONFIGURE_OPTIONS += --disable-xinerama |
19364b
|
50 |
CONFIGURE_OPTIONS += --disable-crashreporter |
bb220f
|
51 |
CONFIGURE_OPTIONS += --disable-pulseaudio |
M |
52 |
CONFIGURE_OPTIONS += --disable-gstreamer |
|
53 |
CONFIGURE_OPTIONS += --with-intl-api |
|
54 |
CONFIGURE_OPTIONS += --disable-debug |
|
55 |
CONFIGURE_OPTIONS += --enable-ipc |
|
56 |
CONFIGURE_OPTIONS += --enable-default-toolkit=cairo-gtk2 |
19364b
|
57 |
CONFIGURE_OPTIONS += --prefix=/usr |
AP |
58 |
CONFIGURE_OPTIONS += --libdir=/usr/lib |
|
59 |
|
|
60 |
ENV += CC=$(CC) |
99a872
|
61 |
ENV += GLD_WRAPPER=$(BUILD_DIR)/gld-wrapper |
19364b
|
62 |
ENV += CXX=$(CXX) |
AP |
63 |
ENV += MOZILLA_OFFICIAL=1 |
bb220f
|
64 |
ENV += MOZ_PKG_FORMAT=XZ |
19364b
|
65 |
ENV += PKG_SKIP_STRIP=1 |
AP |
66 |
ENV += MOZILLA_PKG_NAME=firefox |
364a69
|
67 |
ENV += SHELL="/bin/bash" |
19364b
|
68 |
|
AP |
69 |
CONFIGURE_ENV = $(ENV) |
|
70 |
COMPONENT_BUILD_ENV = $(ENV) |
844f55
|
71 |
COMPONENT_INSTALL_ENV += HOME=/tmp |
19364b
|
72 |
|
AP |
73 |
LANG_FILES=$(addsuffix .xpi,$(LANG_LIST)) |
|
74 |
|
|
75 |
CLEAN_PATHS += $(LANG_FILES) |
|
76 |
|
|
77 |
$(LANG_FILES): |
|
78 |
$(FETCH) --file $@ --url $(LANG_FILES_LOCATION)/$@ |
|
79 |
|
|
80 |
download prep:: $(LANG_FILES) |
|
81 |
|
|
82 |
build: $(BUILD_32) |
|
83 |
|
|
84 |
COMPONENT_POST_INSTALL_ACTION = ( \ |
|
85 |
for file in $(PROTO_DIR)/usr/lib/firefox/browser/components/libbrowsercomps.so \ |
99a872
|
86 |
$(PROTO_DIR)/usr/lib/firefox/sdk/lib/libxul.so \ |
19364b
|
87 |
$(PROTO_DIR)/usr/lib/firefox/sdk/bin/xpcshell ; do \ |
AP |
88 |
/usr/bin/elfedit -e 'dyn:value -s RPATH "/usr/lib:/usr/lib/firefox:$$ORIGIN:$$ORIGIN/.."' \ |
|
89 |
$$file ;\ |
|
90 |
done ; \ |
|
91 |
for file in $(PROTO_DIR)/usr/lib/firefox/sdk/bin/*.py; do \ |
|
92 |
$(GSED) -i -e 's:/usr/bin/env python:$(PYTHON):' $$file; \ |
|
93 |
done ) |
|
94 |
|
|
95 |
install: $(INSTALL_32) |