Makefile revision 7016
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# CDDL HEADER START
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# The contents of this file are subject to the terms of the
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# Common Development and Distribution License (the "License").
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# You may not use this file except in compliance with the License.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# See the License for the specific language governing permissions
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# and limitations under the License.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# When distributing Covered Code, include this CDDL HEADER in each
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# If applicable, add the following below this CDDL HEADER, with the
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# fields enclosed by brackets "[]" replaced with your own identifying
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# information: Portions Copyright [yyyy] [name of copyright owner]
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# CDDL HEADER END
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# parfait is a bit unhappy (22527218)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoCOMPONENT_PROJECT_URL= http://www.mozilla.com/thunderbird
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo sha256:231f6a7a073344659e436a2b1ae58004c3a29e74375af2c8d0de13f3bc79fac7
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoMOZILLA_FTP = http://ftp.mozilla.org/pub/$(COMPONENT_NAME)/releases/$(COMPONENT_VERSION)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoCOMPONENT_ARCHIVE_URL= $(MOZILLA_FTP)/source/$(COMPONENT_ARCHIVE)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# There are a set of .xpi files (as given in the LANG_LIST definition below)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# that we need. These are available under:
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/31.6.0/linux-i686/xpi/
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# https://ftp.mozilla.org/pub/calendar/lightning/candidates/4.0.5-candidates/build1/linux-i686/
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# We could download and unpack them individually, but instead I've created
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# a compressed tarball of them, and made them available from the internal
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# Userland mirror. So these need to be re-created by hand each time we rev.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# Downloading them individually can be a problem because firefox/thunderbird
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# collide due to different files with identical .xpi names.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo sha256:6b170356db3c345e4704de93ed41f5d16afac9460345f6675b02193ad41a128f
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoCOMPONENT_ARCHIVE_URL_1 = $(INTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoCOMPONENT_ARCHIVE_2 = lightning-$(LIGHTNING_VERSION)-xpi.tar.gz
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo sha256:5bab9f0f879bdae9a312c5612b089c932c0400db89346c9c38b5c41623410e75
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoCOMPONENT_ARCHIVE_URL_2 = $(INTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_2)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppoLANG_LIST = ar bg ca cs da de el es-AR es-ES et eu fi \
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl \
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# Firefox and Thunderbird share the same firefox*.patch patches. Copy these
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# patches from the Firefox patches directory and the Thunderbird patches to a
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# directory of all files (patches-all), except for Firefox patches 42 and 46,
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# which don't get applied in Thunderbird. (libxul and dtrace patches)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo $(shell /usr/bin/rsync -ac patches/* ../firefox/patches/* $(PATCH_DIR))
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo $(shell /usr/bin/rm -f $(PATCH_DIR)/firefox*42*.patch $(PATCH_DIR)/firefox*46*.patch)
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# Depends on libsmbclient but samba is on the do-not-publish list, so this
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# must be too.
1ae0874509b6811fdde1dfd46f0d93fd09867a3fheppo# /usr/sbin for dtrace, SPRO for python modules, PERL as well.
# -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"
$(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 ; \
/usr/bin/curl -s -o $(COMPONENT_DIR)/xpi-lightning/lightning-$(LIGHTNING_VERSION).$$f.linux-i686.xpi \