2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
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.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
16 include ..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= thunderbird
19 COMPONENT_VERSION
= 31.8.0
20 IPS_COMPONENT_VERSION
= 31.8.0
21 COMPONENT_SUMMARY
= Mozilla Thunderbird Email
/Newsgroup Client
22 COMPONENT_SRC
= comm-esr31
23 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).source.
tar.bz2
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:16731f49640e01b908d704e7477b4d9628cb2af9c2a492e5b996adf5218112df
26 COMPONENT_ARCHIVE_URL
= \
27 https
://ftp.mozilla.org
/pub
/thunderbird
/releases
/$(COMPONENT_VERSION
)/source
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_PROJECT_URL
= http
://www.mozilla.com
/en-US
/thunderbird
/
30 LANG_LIST
= ar be bg ca cs da de el es-AR es-ES et fi fr he hr hu id is it ja ko lt nl nn-NO pl pt-BR pt-PT ro ru sk sl sq sr sv-SE tr uk vi zh-CN zh-TW
31 LANG_FILES_LOCATION
= http
://ftp.mozilla.org
/pub
/mozilla.org
/thunderbird
/releases
/$(COMPONENT_VERSION
)/linux-i686
/xpi
/
33 LIGHTNING_DIR
="$(PROTO_DIR)/usr/lib/thunderbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}"
34 GDATA_PROVIDER_DIR
="$(PROTO_DIR)/usr/lib/thunderbird/extensions/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
36 include $(WS_TOP
)/make-rules
/prep.mk
37 include $(WS_TOP
)/make-rules
/configure.mk
38 include $(WS_TOP
)/make-rules
/ips.mk
42 # Missing files in build dir for configure without this.
43 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && autoconf-2.13
&& \
44 cd
$(@D
)/mozilla
&& autoconf-2.13
&&\
45 cd
$(@D
)/mozilla
/js
/src
&& autoconf-2.13
&& \
46 $(TOUCH
) $(@D
)/.mozconfig
)
47 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
49 PATH
=/usr
/bin
:/usr
/gnu
/bin
:/usr
/sbin
51 CONFIGURE_OPTIONS
= --disable-alsa
52 CONFIGURE_OPTIONS
+= --enable-gnomevfs
53 CONFIGURE_OPTIONS
+= --enable-dbus
54 CONFIGURE_OPTIONS
+= --enable-gnomeui
55 CONFIGURE_OPTIONS
+= --enable-libxul
56 CONFIGURE_OPTIONS
+= --disable-jemalloc
57 CONFIGURE_OPTIONS
+= --without-intl-api
58 CONFIGURE_OPTIONS
+= --disable-debug
59 #CONFIGURE_OPTIONS += --enable-debug
60 CONFIGURE_OPTIONS
+= --disable-debug-symbols
61 #CONFIGURE_OPTIONS += --enable-debug-symbols
62 CONFIGURE_OPTIONS
+= --enable-install-strip
63 #CONFIGURE_OPTIONS += --disable-install-strip
64 CONFIGURE_OPTIONS
+= --enable-optimize
=-O2
65 CONFIGURE_OPTIONS
+= --disable-webrtc
66 CONFIGURE_OPTIONS
+= --enable-official-branding
67 CONFIGURE_OPTIONS
+= --disable-updater
68 CONFIGURE_OPTIONS
+= --enable-ipc
69 CONFIGURE_OPTIONS
+= --enable-pulseaudio
70 CONFIGURE_OPTIONS
+= --enable-system-ffi
71 CONFIGURE_OPTIONS
+= --with-system-icu
72 CONFIGURE_OPTIONS
+= --enable-system-sqlite
73 CONFIGURE_OPTIONS
+= --with-system-libevent
74 CONFIGURE_OPTIONS
+= --with-system-zlib
75 CONFIGURE_OPTIONS
+= --with-system-bz2
76 CONFIGURE_OPTIONS
+= --disable-crashreporter
77 CONFIGURE_OPTIONS
+= --enable-startup-notification
78 CONFIGURE_OPTIONS
+= --enable-calendar
79 CONFIGURE_OPTIONS
+= --enable-application
=mail
80 CONFIGURE_OPTIONS
+= --prefix=/usr
81 CONFIGURE_OPTIONS
+= --libdir=/usr
/lib
83 ENV
+= SHELL
=/usr
/bin
/sh
86 ENV
+= MOZILLA_OFFICIAL
=1
87 ENV
+= MOZ_PKG_FORMAT
=BZ2
88 ENV
+= PKG_SKIP_STRIP
=1
89 ENV
+= MOZILLA_PKG_NAME
=thunderbird
91 CONFIGURE_ENV
= $(ENV
)
92 COMPONENT_BUILD_ENV
= $(ENV
)
94 LANG_FILES
=$(addsuffix .xpi
,$(LANG_LIST
))
96 CLEAN_PATHS
+= $(LANG_FILES
)
98 COMPONENT_BUILD_ARGS
=
101 $(FETCH
) --file
$@
--url
$(LANG_FILES_LOCATION
)/$@
103 download prep
:: $(LANG_FILES
)
107 COMPONENT_POST_INSTALL_ACTION
= ( \
108 $(MKDIR
) $(LIGHTNING_DIR
) ; \
109 unzip
-u
-d
$(LIGHTNING_DIR
) $(BUILD_DIR_32
)/mozilla
/dist/xpi-stage
/lightning.xpi
; \
110 $(MKDIR
) $(GDATA_PROVIDER_DIR
) ; \
111 unzip
-u
-d
$(GDATA_PROVIDER_DIR
) $(BUILD_DIR_32
)/mozilla
/dist/xpi-stage
/gdata-provider.xpi
; \
112 for file in
$(PROTO_DIR
)/usr
/lib
/thunderbird
/libprldap60.so \
113 $(LIGHTNING_DIR
)/components
/libcalbasecomps.so
; do \
114 /usr
/bin
/elfedit
-e
'dyn:value -s RPATH "/usr/lib:/usr/lib/thunderbird"' \
118 install: $(INSTALL_32
)