#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# parfait is a bit unhappy (22527218)
# There are a set of .xpi files (as given in the LANG_LIST definition below)
# that we need. These are available under:
# We could download and unpack them individually, but instead I've created
# a compressed tarball of them, and made them available from the internal
# Userland mirror. So these need to be re-created by hand each time we rev.
# Downloading them individually can be a problem because firefox/thunderbird
# collide due to different files with identical .xpi names.
# Firefox and Thunderbird share the same firefox*.patch patches. Copy these
# patches from the Firefox patches directory and the Thunderbird patches to a
# directory of all files (patches-all), except for Firefox patches 42 and 46,
# which don't get applied in Thunderbird. (libxul and dtrace patches)
CLEAN_PATHS += $(PATCH_DIR)
# Depends on libsmbclient but samba is on the do-not-publish list, so this
# must be too.
echo "mk_add_options BUILD_OFFICIAL=1" > $(MOZCONFIG) ; \
echo "mk_add_options MOZILLA_OFFICIAL=1" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-application=mail" >> $(MOZCONFIG) ; \
echo "ac_add_options --prefix=/usr" >> $(MOZCONFIG) ; \
echo "ac_add_options --disable-debug" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-optimize" >> $(MOZCONFIG) ; \
echo "ac_add_options --disable-tests" >> $(MOZCONFIG) ; \
echo "ac_add_options --with-system-libevent" >> $(MOZCONFIG) ; \
echo "ac_add_options --with-system-zlib" >> $(MOZCONFIG) ; \
echo "ac_add_options --with-system-bz2" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-system-ffi" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-system-sqlite" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-libxul" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-jemalloc" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-official-branding" >> $(MOZCONFIG) ; \
echo "ac_add_options --disable-updater" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-update-packaging" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-ipc" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-gstreamer" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-system-pixman" >> $(MOZCONFIG) ; \
echo "ac_add_options --without-intl-api" >> $(MOZCONFIG) ; \
echo "ac_add_options --disable-crashreporter" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-debug-symbols=no" >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-calendar" >> $(MOZCONFIG) ; \
echo 'ac_add_options --with-rpath="\\\\\\$$\\$$ORIGIN"' >> $(MOZCONFIG) ; \
echo "ac_add_options --enable-startup-notification" >> $(MOZCONFIG) ;
# jemalloc (from libxul) interposes on malloc in glib causing startup problems,
# so use the big hammer for now, pending the resolution of:
# 24765609 thunderbird build dies with newer GCC
LD_EXEC_OPTIONS += -z now
# -L.../dist/bin needs to be set otherwise it will report missing libnss3.so,
# libssl3.so, etc, while linking.
CONFIGURE_ENV += LDFLAGS="$(LD_Z_IGNORE) -z interpose -B nodirect -L$(BUILD_DIR_32)/dist/lib -L$(BUILD_DIR_32)/dist/bin"
# If the configure options are not explicitly set, then configure fails with:
# invalid host type
# invalid host type
# configure: error: can only configure for one host and one target at a time
# Path to lightning extension directory
$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
$(CP) -r $(BUILD_DIR_32)/dist/bin/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/* \
$(LIGHTNING_EXT_DIR) ;
$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/distribution/extensions/langpack-$$f@thunderbird.mozilla.org.xpi ; \
$(LIGHTNING_EXT_DIR)/ ; \
echo 'locale calendar '$$f' chrome/calendar-'$$f'/locale/'$$f'/calendar/' >> $(LIGHTNING_EXT_DIR)/chrome.manifest ; \
echo 'locale lightning '$$f' chrome/lightning-'$$f'/locale/'$$f'/lightning/' >> $(LIGHTNING_EXT_DIR)/chrome.manifest ; \
done ;
@echo "download-xpis"
@echo "downloading thunderbird xpis"
echo $$f; \
done
@echo "download-lightning-xpis"
@echo "downloading lightning xpis"
echo $$f; \
/usr/bin/curl -s -o $(COMPONENT_DIR)/xpi-lightning/lightning-$(LIGHTNING_VERSION).$$f.linux-i686.xpi \
done
LIB_LIST.i386 =
LIB_LIST.sparc = $(PROTOUSRLIBDIR)/thunderbird-devel-$(COMPONENT_VERSION)/sdk/lib/cpu/sparcv8plus/libnspr_flt4.so
done ;
'-e "/^PASSED ALL/,/Failed:/p" ' \
'-e "/.*/d" '
# Remove once all build machines have library/desktop/startup-notification: