Makefile revision 5530
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# parfait is a bit unhappy (22527218)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PROJECT_URL= http://www.mozilla.com/thunderbird
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_SRC_NAME = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC_NAME).source.tar.bz2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:7da187d4d5df17b1457bd93b584f78f5e41d2094f87c14e74ee9d8064de25d0d
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMOZILLA_FTP = http://ftp.mozilla.org/pub/mozilla.org/$(COMPONENT_NAME)/releases/$(COMPONENT_VERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL= $(MOZILLA_FTP)/source/$(COMPONENT_ARCHIVE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# There are a set of .xpi files (as given in the LANG_LIST definition below)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# that we need. These are available under:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/31.6.0/linux-i686/xpi/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# https://ftp.mozilla.org/pub/calendar/lightning/candidates/4.0.5-candidates/build1/linux-i686/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# We could download and unpack them individually, but instead I've created
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# a compressed tarball of them, and made that available locally for download.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Downloading them individually can be a problem because firefox/thunderbird
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# collide due to different files with identical .xpi names.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_NAME)-xpi.tar.gz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:eeb85b3e5ef7a97abff831f3aa895c2034cb8f039bb3383dba3a5f495e1fe93f
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL_1 = $(INTERNAL_ARCHIVE_MIRROR)/source-archives/$(COMPONENT_ARCHIVE_1)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_2 = $(LIGHTNING_VERSION)-xpi.tar.gz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:96f263984b1e939215a614dea21fda479eb4babf1574141728b9dbf273067893
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL_2 = $(INTERNAL_ARCHIVE_MIRROR)/source-archives/$(COMPONENT_ARCHIVE_2)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLANG_LIST = ar bg ca cs da de el es-AR es-ES et eu fi \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pt-BR pt-PT ro ru sk sl sq sv-SE tr uk zh-CN zh-TW
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Firefox and Thunderbird share the same firefox*.patch patches. Copy these
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# patches from the Firefox patches directory and the Thunderbird patches to a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# directory of all files (patches-all), except for Firefox patches 42 and 46,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# which don't get applied in Thunderbird.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOPY_COMMON_FILES_1:= $(shell mkdir -p $(PATCH_DIR))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(shell /usr/bin/rsync -ac patches/* ../firefox/patches/* $(PATCH_DIR))
# -L.../dist/bin needs to be set otherwise it will report missing libnss3.so,
# libssl3.so, etc, while linking.
$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
$(LIGHTNING_EXT_DIR) ;
$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/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 ; \
LIB_LIST.sparc = $(PROTOUSRLIBDIR)/thunderbird-devel-$(COMPONENT_VERSION)/sdk/lib/cpu/sparcv8plus/libnspr_flt4.so
test: $(TEST_32)