components/desktop/thunderbird/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 02 Jan 2017 13:37:03 -0800
changeset 7527 352b7a456c30
parent 7437 db88bfe3ed8e
child 7541 b1b5b51b13fb
permissions -rw-r--r--
25305616 RE audits don't like the userland package anymore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     1
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     3
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     7
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    12
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    18
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    20
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    21
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    22
#
5344
61c6ac904750 22590264 thunderbird build should specify bits and be more permissive
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5307
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    24
#
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    25
5256
1c3e20e70cc3 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (disable parfait)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5255
diff changeset
    26
# parfait is a bit unhappy (22527218)
1c3e20e70cc3 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (disable parfait)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5255
diff changeset
    27
export PARFAIT_BUILD=no
1c3e20e70cc3 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (disable parfait)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5255
diff changeset
    28
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    29
BUILD_BITS = 32
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    30
COMPILER = gcc
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    31
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    32
include ../../../make-rules/shared-macros.mk
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    33
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    34
COMPONENT_NAME=		thunderbird
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
    35
COMPONENT_VERSION=	45.5.1
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    36
COMPONENT_PROJECT_URL=	http://www.mozilla.com/thunderbird
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    37
COMPONENT_ARCHIVE = 	$(COMPONENT_SRC).source.tar.xz
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_HASH= \
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
    39
    sha256:15088086ab8643275f04775002aca02701e30b4d61f108d5380b6e6b7582a24c
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    40
MOZILLA_FTP = 		http://ftp.mozilla.org/pub/$(COMPONENT_NAME)/releases/$(COMPONENT_VERSION)
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    41
COMPONENT_ARCHIVE_URL=	$(MOZILLA_FTP)/source/$(COMPONENT_ARCHIVE)
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
    42
COMPONENT_BUGDB=	tbird/mailer
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    43
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
    44
TPNO=			32721
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
    45
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
    46
LIGHTNING_VERSION=	4.7.5.1
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    47
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    48
# There are a set of .xpi files (as given in the LANG_LIST definition below)
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    49
# that we need. These are available under:
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    50
# http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/31.6.0/linux-i686/xpi/
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
    51
# https://ftp.mozilla.org/pub/calendar/lightning/candidates/4.0.5-candidates/build1/linux-i686/
5258
b65b95ac3d37 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (fix dependency/download)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5256
diff changeset
    52
# We could download and unpack them individually, but instead I've created
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    53
# a compressed tarball of them, and made them available from the internal
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    54
# Userland mirror. So these need to be re-created by hand each time we rev.
5258
b65b95ac3d37 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (fix dependency/download)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5256
diff changeset
    55
# Downloading them individually can be a problem because firefox/thunderbird 
b65b95ac3d37 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (fix dependency/download)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5256
diff changeset
    56
# collide due to different files with identical .xpi names. 
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    57
COMPONENT_ARCHIVE_1 =   	$(COMPONENT_SRC)-xpi.tar.gz
5258
b65b95ac3d37 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (fix dependency/download)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5256
diff changeset
    58
COMPONENT_ARCHIVE_HASH_1 = \
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
    59
    sha256:976113c074c640e32281972d26b55935238b93ff5ff8903c80bb6ed15f23cd4c
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    60
COMPONENT_ARCHIVE_URL_1 =       $(INTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    61
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    62
COMPONENT_ARCHIVE_2 =		lightning-$(LIGHTNING_VERSION)-xpi.tar.gz
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
    63
COMPONENT_ARCHIVE_HASH_2 = \
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
    64
    sha256:3840c42da82352bbae7defa2b3361b460c9f2f19febc4d0b3fa2335fb201c4d3
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    65
COMPONENT_ARCHIVE_URL_2 = 	$(INTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_2)
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
    66
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    67
LANG_LIST = ar bg ca cs da de el es-AR es-ES et eu fi \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    68
	fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    69
	pt-BR pt-PT ro ru sk sl sq sv-SE tr uk zh-CN zh-TW
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    70
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    71
CLEAN_PATHS += $(COMPONENT_DIR)/xpi
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    72
CLEAN_PATHS += $(COMPONENT_DIR)/xpi-lightning 
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    73
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
    74
# Firefox and Thunderbird share the same firefox*.patch patches. Copy these 
5532
fac132cc7531 22757279 Update Thunderbird to version 38.5.0 (fix patches)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5527
diff changeset
    75
# patches from the Firefox patches directory and the Thunderbird patches to a 
fac132cc7531 22757279 Update Thunderbird to version 38.5.0 (fix patches)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5527
diff changeset
    76
# directory of all files (patches-all), except for Firefox patches 42 and 46, 
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
    77
# which don't get applied in Thunderbird. (libxul and dtrace patches)
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    78
PATCH_DIR=patches-all
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    79
CLEAN_PATHS += $(PATCH_DIR)
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    80
COPY_COMMON_FILES_1:= $(shell mkdir -p $(PATCH_DIR))
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    81
COPY_COMMON_FILES_2:=  \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    82
    $(shell /usr/bin/rsync -ac patches/* ../firefox/patches/* $(PATCH_DIR))
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    83
COPY_COMMON_FILES_3:= \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
    84
    $(shell /usr/bin/rm -f $(PATCH_DIR)/firefox*42*.patch $(PATCH_DIR)/firefox*46*.patch)
5532
fac132cc7531 22757279 Update Thunderbird to version 38.5.0 (fix patches)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5527
diff changeset
    85
5415
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    86
# Depends on libsmbclient but samba is on the do-not-publish list, so this
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    87
# must be too.
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    88
ifeq ($(BUILD_TYPE), evaluation)
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    89
BUILD_32=
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    90
INSTALL_32=
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    91
PUBLISH_STAMP=
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    92
endif
9f594fa41da4 22684325 do not publish thunderbird when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5344
diff changeset
    93
6454
dfa9a292557b 23601539 Update Thunderbird to version 45.1.0 (fix evaluation build)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 6431
diff changeset
    94
include $(WS_MAKE_RULES)/common.mk
dfa9a292557b 23601539 Update Thunderbird to version 45.1.0 (fix evaluation build)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 6431
diff changeset
    95
7015
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
    96
# /usr/sbin for dtrace, SPRO for python modules, PERL as well.
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
    97
PATH = $(dirname $(CC)):/usr/gnu/bin:/usr/bin:/usr/sbin:$(dirname $(PERL)):$(SPRO_VROOT)/bin
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    98
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
    99
MOZCONFIG =	$(BUILD_DIR_32)/mozconfig
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   100
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   101
COMPONENT_PRE_CONFIGURE_ACTION += \
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   102
	echo "mk_add_options BUILD_OFFICIAL=1" > $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   103
	echo "mk_add_options MOZILLA_OFFICIAL=1" >> $(MOZCONFIG) ; \
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   104
	echo "ac_add_options --enable-application=mail" >> $(MOZCONFIG) ; \
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   105
	echo "ac_add_options --prefix=/usr" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   106
	echo "ac_add_options --libdir=/usr/lib" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   107
	echo "ac_add_options --mandir=/usr/share/man" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   108
	echo "ac_add_options --disable-debug" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   109
	echo "ac_add_options --enable-optimize" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   110
	echo "ac_add_options --disable-tests" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   111
	echo "ac_add_options --with-system-libevent" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   112
	echo "ac_add_options --with-system-zlib" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   113
	echo "ac_add_options --with-system-bz2" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   114
	echo "ac_add_options --enable-system-ffi" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   115
	echo "ac_add_options --enable-system-sqlite" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   116
	echo "ac_add_options --enable-libxul" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   117
	echo "ac_add_options --enable-jemalloc" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   118
	echo "ac_add_options --enable-official-branding" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   119
	echo "ac_add_options --disable-updater" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   120
	echo "ac_add_options --enable-update-packaging" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   121
	echo "ac_add_options --enable-ipc" >> $(MOZCONFIG) ; \
7427
c3b5f80d7dfb 25135621 firefox/thunderbird don't build on s12-113
Jingning Ji <jingning.ji@oracle.com>
parents: 7187
diff changeset
   122
	echo "ac_add_options --enable-gstreamer=1.0" >> $(MOZCONFIG) ; \
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   123
	echo "ac_add_options --enable-system-pixman" >> $(MOZCONFIG) ; \
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   124
	echo "ac_add_options --with-intl-api" >> $(MOZCONFIG) ; \
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   125
	echo "ac_add_options --disable-crashreporter" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   126
	echo "ac_add_options --enable-debug-symbols=no" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   127
	echo "ac_add_options --enable-calendar" >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   128
        echo 'ac_add_options --with-rpath="\\\\\\$$\\$$ORIGIN"' >> $(MOZCONFIG) ; \
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   129
	echo "ac_add_options --enable-startup-notification" >> $(MOZCONFIG) ;
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   130
5344
61c6ac904750 22590264 thunderbird build should specify bits and be more permissive
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5307
diff changeset
   131
CXXFLAGS += 		-Wno-invalid-offsetof -fpermissive
61c6ac904750 22590264 thunderbird build should specify bits and be more permissive
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5307
diff changeset
   132
CC +=		$(CC_BITS)
61c6ac904750 22590264 thunderbird build should specify bits and be more permissive
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5307
diff changeset
   133
CXX +=		$(CC_BITS)
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   134
7015
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
   135
# jemalloc (from libxul) interposes on malloc in glib causing startup problems,
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
   136
# so use the big hammer for now, pending the resolution of:
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
   137
#    24765609 thunderbird build dies with newer GCC 
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
   138
LD_EXEC_OPTIONS += -z now
47aaa6f8ec6e 24766288 thunderbird should build with latest GCC in CBE
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6552
diff changeset
   139
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   140
CONFIGURE_ENV +=	PKG_CONFIG_PATH=$(CONFIGURE_LIBDIR.$(BITS))/pkgconfig
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   141
CONFIGURE_ENV +=	OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__"
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   142
# -L.../dist/bin needs to be set otherwise it will report missing libnss3.so, 
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   143
# libssl3.so, etc, while linking.
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
   144
CONFIGURE_ENV +=	LDFLAGS="$(LD_Z_IGNORE) -z interpose -B nodirect -L$(BUILD_DIR_32)/dist/lib -L$(BUILD_DIR_32)/dist/bin"
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   145
5307
7e9a56e73fc8 22556270 thunderbird bugdb component is wrong in the Makefile
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5258
diff changeset
   146
CONFIGURE_ENV +=	MOZCONFIG=$(MOZCONFIG)
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   147
CONFIGURE_ENV +=	"CC=$(CC)"
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   148
CONFIGURE_ENV +=	"CXX=$(CXX)"
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   149
CONFIGURE_ENV += 	"CFLAGS=$(CFLAGS)"
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   150
CONFIGURE_ENV +=	"CXXFLAGS=$(CXXFLAGS)"
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   151
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   152
# If the configure options are not explicitly set, then configure fails with:
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   153
# configure: warning: CC=/usr/gcc/4.8/bin/gcc: invalid host type
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   154
# invalid host type
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   155
# configure: warning: CXX=/usr/gcc/4.8/bin/gcc: invalid host type
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   156
# invalid host type
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   157
# configure: error: can only configure for one host and one target at a time
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   158
CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   159
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   160
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   161
COMPONENT_POST_CONFIGURE_ACTION += \
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   162
        $(CP) $(MOZCONFIG) $(COMPONENT_SRC)/mozconfig
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   163
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   164
COMPONENT_POST_BUILD_ACTION = \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   165
        (cd $(@D)/mail/installer ; $(ENV) $(COMPONENT_BUILD_ENV) \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   166
                $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   167
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   168
# Path to lightning extension directory
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   169
LIGHTNING_EXT_DIR = \
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
   170
	$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   171
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   172
COMPONENT_POST_INSTALL_ACTION += \
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
   173
	$(CP) -r $(BUILD_DIR_32)/dist/bin/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/* \
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   174
		$(LIGHTNING_EXT_DIR) ;
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   175
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   176
COMPONENT_POST_INSTALL_ACTION += \
5258
b65b95ac3d37 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland (fix dependency/download)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5256
diff changeset
   177
        $(RM) -rf xpi ; \
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
   178
        $(TAR) xvf $(COMPONENT_ARCHIVE_1) > /dev/null 2>&1 ; \
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
   179
	$(TAR) xvf $(COMPONENT_ARCHIVE_2) > /dev/null 2>&1 ; \
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   180
        list1='$(LANG_LIST)' ; for f in $$list1 ; do \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   181
            $(CP) xpi/$$f.xpi \
6431
e4667e7df088 23601539 Update Thunderbird to version 45.1.0
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5786
diff changeset
   182
                $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/distribution/extensions/[email protected] ; \
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   183
	    unzip xpi-lightning/lightning-$(LIGHTNING_VERSION).$$f.linux-i686.xpi \
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   184
		chrome/calendar-$$f/\* chrome/lightning-$$f/\* -d \
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   185
		    $(LIGHTNING_EXT_DIR)/ ; \
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   186
	    echo 'locale calendar '$$f' chrome/calendar-'$$f'/locale/'$$f'/calendar/' >> $(LIGHTNING_EXT_DIR)/chrome.manifest ; \
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   187
	    echo 'locale lightning '$$f' chrome/lightning-'$$f'/locale/'$$f'/lightning/' >> $(LIGHTNING_EXT_DIR)/chrome.manifest ; \
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   188
	done ;
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   189
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   190
TB_XPI = $(MOZILLA_FTP)/linux-i686/xpi
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   191
LN_XPI = http://ftp.mozilla.org/pub/calendar/lightning/candidates/$(LIGHTNING_VERSION)-candidates/build1/linux-i686
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   192
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   193
# Run gmake download-xpis and gmake download-lightning-xpis to download tarballs of xpi
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   194
# for thunderbird and lightning seprarately.
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   195
# The resulting archives should be uploaded to userland internal archive.
7018
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   196
download-xpis:
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   197
	@echo "download-xpis"
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   198
	$(RM) -r $(COMPONENT_DIR)/xpi $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1) 
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   199
	$(MKDIR) $(COMPONENT_DIR)/xpi
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   200
	@echo "downloading thunderbird xpis"
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   201
	list1='$(LANG_LIST)' ; for f in $$list1 ; do \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   202
		echo $$f; \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   203
		/usr/bin/curl -s -o $(COMPONENT_DIR)/xpi/$$f.xpi \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   204
			$(TB_XPI)/$$f.xpi ;\
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   205
	done
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   206
	(cd $(COMPONENT_DIR); \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   207
	    $(TAR) czvf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1) xpi )
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   208
	/usr/bin/sha256sum $(COMPONENT_ARCHIVE_1)
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   209
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   210
download-lightning-xpis:
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   211
	@echo "download-lightning-xpis"
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   212
	$(RM) $(COMPONENT_DIR)/xpi-lightning $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_2)
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   213
	$(MKDIR) $(COMPONENT_DIR)/xpi-lightning
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   214
	@echo "downloading lightning xpis"
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   215
	list1='$(LANG_LIST)' ; for f in $$list1 ; do \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   216
		echo $$f; \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   217
		/usr/bin/curl -s -o $(COMPONENT_DIR)/xpi-lightning/lightning-$(LIGHTNING_VERSION).$$f.linux-i686.xpi \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   218
	                $(LN_XPI)/lightning-$(LIGHTNING_VERSION).$$f.linux-i686.xpi ;\
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   219
	done
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   220
	(cd $(COMPONENT_DIR); \
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   221
	    $(TAR) czvf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_2) xpi-lightning )
fdf447a07aff 24698806 Upgrade Thunderbird to version 45.3.0
Jingning Ji <jingning.ji@oracle.com>
parents: 7015
diff changeset
   222
	/usr/bin/sha256sum $(COMPONENT_ARCHIVE_2)
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   223
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   224
LIB_LIST.i386 =
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   225
LIB_LIST.sparc = $(PROTOUSRLIBDIR)/thunderbird-devel-$(COMPONENT_VERSION)/sdk/lib/cpu/sparcv8plus/libnspr_flt4.so
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   226
LIB_LIST = $(LIB_LIST.$(MACH))
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   227
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   228
COMPONENT_POST_INSTALL_ACTION += \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   229
	slist='$(LIB_LIST)' ; for f in $$slist ; do \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   230
	    $(MKDIR) $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/cpu/sparcv8plus ; \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   231
	    $(CP) $$f $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/cpu/sparcv8plus/libnspr_flt4.so ; \
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   232
	done ;
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   233
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   234
COMPONENT_TEST_DIR =    $(@D)/js/src
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   235
COMPONENT_TEST_TARGETS=check-jit-test
7099
58b579e0ff32 24836953 firefox/thunderbird js test failures
Petr Sumbera <petr.sumbera@oracle.com>
parents: 7018
diff changeset
   236
COMPONENT_TEST_TRANSFORMS = \
58b579e0ff32 24836953 firefox/thunderbird js test failures
Petr Sumbera <petr.sumbera@oracle.com>
parents: 7018
diff changeset
   237
	'-e "/^PASSED ALL/,/Failed:/p" ' \
58b579e0ff32 24836953 firefox/thunderbird js test failures
Petr Sumbera <petr.sumbera@oracle.com>
parents: 7018
diff changeset
   238
	'-e "/.*/d" '
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   239
5532
fac132cc7531 22757279 Update Thunderbird to version 38.5.0 (fix patches)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5527
diff changeset
   240
$(SOURCE_DIR)/.patched-firefox-%: GPATCH_FLAGS += -d $(@D)/mozilla
5527
611b2d6efdfe 21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes
Stacy Yeh <stacy.yeh@oracle.com>
parents: 5415
diff changeset
   241
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   242
REQUIRED_PACKAGES += compress/bzip2
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   243
REQUIRED_PACKAGES += database/sqlite-3
7437
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   244
ifneq ($(MACH), sparc)
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   245
REQUIRED_PACKAGES += developer/yasm
db88bfe3ed8e 25100750 Upgrade Thunderbird to version 45.5.1
Jingning Ji <jingning.ji@oracle.com>
parents: 7427
diff changeset
   246
endif
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   247
REQUIRED_PACKAGES += library/desktop/atk
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   248
REQUIRED_PACKAGES += library/desktop/cairo
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   249
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   250
REQUIRED_PACKAGES += library/desktop/gtk2
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   251
REQUIRED_PACKAGES += library/desktop/pango
7187
b5a1068f6843 23245354 Move startup-notification to Userland and update to 0.12
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7099
diff changeset
   252
REQUIRED_PACKAGES += library/desktop/startup-notification
5255
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   253
REQUIRED_PACKAGES += library/glib2
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   254
REQUIRED_PACKAGES += library/graphics/pixman
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   255
REQUIRED_PACKAGES += library/libevent
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   256
REQUIRED_PACKAGES += library/libffi
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   257
REQUIRED_PACKAGES += library/samba/libsmbclient
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   258
REQUIRED_PACKAGES += library/zlib
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   259
REQUIRED_PACKAGES += system/library
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   260
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   261
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   262
REQUIRED_PACKAGES += system/library/fontconfig
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   263
REQUIRED_PACKAGES += system/library/freetype-2
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   264
REQUIRED_PACKAGES += system/library/libdbus
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   265
REQUIRED_PACKAGES += system/library/libdbus-glib
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   266
REQUIRED_PACKAGES += system/library/math
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   267
REQUIRED_PACKAGES += x11/library/libx11
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   268
REQUIRED_PACKAGES += x11/library/libxext
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   269
REQUIRED_PACKAGES += x11/library/libxrender
cea0e462549a 22322082 Move Firefox/Thunderbird from Desktop consolidation to Userland
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
   270
REQUIRED_PACKAGES += x11/library/toolkit/libxt