Makefile revision 5256
5253N/A#
5253N/A# CDDL HEADER START
5253N/A#
5253N/A# The contents of this file are subject to the terms of the
5253N/A# Common Development and Distribution License (the "License").
5253N/A# You may not use this file except in compliance with the License.
5253N/A#
5253N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5253N/A# or http://www.opensolaris.org/os/licensing.
5253N/A# See the License for the specific language governing permissions
5253N/A# and limitations under the License.
5253N/A#
5253N/A# When distributing Covered Code, include this CDDL HEADER in each
5253N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5253N/A# If applicable, add the following below this CDDL HEADER, with the
5253N/A# fields enclosed by brackets "[]" replaced with your own identifying
5253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5253N/A#
5253N/A# CDDL HEADER END
5253N/A#
5253N/A
5253N/A#
5253N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
5253N/A#
5253N/A
5254N/A# parfait is a bit unhappy (22527218)
5254N/Aexport PARFAIT_BUILD=no
5254N/A
5253N/ACOMPILER = gcc
5253N/A
5253N/Ainclude ../../../make-rules/shared-macros.mk
5253N/A
5253N/ACOMPONENT_NAME= thunderbird
5253N/ACOMPONENT_VERSION= 31.6.0
5253N/ACOMPONENT_PROJECT_URL= http://www.mozilla.com/thunderbird
5253N/ACOMPONENT_SRC= comm-esr31
5253N/ACOMPONENT_SRC_NAME = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5253N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC_NAME).source.tar.bz2
5253N/ACOMPONENT_ARCHIVE_HASH= \
5253N/A sha256:ccbf8cbb740bc1b30ecf4fe39aab226607f9a41e23a07e994c508a90e8b70508
5253N/AMOZILLA_FTP = http://ftp.mozilla.org/pub/mozilla.org/$(COMPONENT_NAME)/releases/$(COMPONENT_VERSION)
5253N/ACOMPONENT_ARCHIVE_URL= $(MOZILLA_FTP)/source/$(COMPONENT_ARCHIVE)
5253N/ACOMPONENT_BUGDB= thunderbird/mailer
5253N/A
5253N/ATPNO= 22326
5253N/A
5253N/A# There are a set of .xpi files (as given in the LANG_LIST definition below)
5253N/A# that we need. These are available under:
5253N/A# http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/31.6.0/linux-i686/xpi/
5256N/A# We could download and unpack them individually, but instead I've created
5256N/A# a compressed tarball of them, and made that available locally for download.
5256N/A# Downloading them individually can be a problem because firefox/thunderbird
5256N/A# collide due to different files with identical .xpi names.
5256N/ACOMPONENT_ARCHIVE_1 = thunderbird-31.6.0-xpi.tar.gz
5256N/ACOMPONENT_ARCHIVE_HASH_1 = \
5256N/A sha256:80e9cc4b152d75f5c3887c01ad1767680aff5ca7c3aee87254bdc1574590b95e
5256N/ACOMPONENT_ARCHIVE_URL_1 = $(INTERNAL_ARCHIVE_MIRROR)/source-archives/$(COMPONENT_ARCHIVE_1)
5253N/A
5253N/ALANG_LIST = ar bg ca cs da de el es-AR es-ES et eu fi \
5253N/A fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl \
5253N/A pt-BR pt-PT ro ru sk sl sq sv-SE tr uk zh-CN zh-TW
5253N/A
5253N/Ainclude $(WS_MAKE_RULES)/prep.mk
5253N/Ainclude $(WS_MAKE_RULES)/configure.mk
5253N/Ainclude $(WS_MAKE_RULES)/ips.mk
5253N/A
5253N/A# /usr/sbin needed for dtrace.
5253N/APATH = /usr/gnu/bin:/usr/bin:/usr/sbin
5253N/A
5253N/ACOMPONENT_PRE_CONFIGURE_ACTION += \
5253N/A echo "mk_add_options BUILD_OFFICIAL=1" > .mozconfig ; \
5253N/A echo "mk_add_options MOZILLA_OFFICIAL=1" >> .mozconfig ; \
5253N/A echo "ac_add_options --prefix=/usr" >> .mozconfig ; \
5253N/A echo "ac_add_options --libdir=/usr/lib" >> .mozconfig ; \
5253N/A echo "ac_add_options --mandir=/usr/share/man" >> .mozconfig ; \
5253N/A echo "ac_add_options --disable-debug" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-optimize" >> .mozconfig ; \
5253N/A echo "ac_add_options --disable-tests" >> .mozconfig ; \
5253N/A echo "ac_add_options --with-system-libevent" >> .mozconfig ; \
5253N/A echo "ac_add_options --with-system-zlib" >> .mozconfig ; \
5253N/A echo "ac_add_options --with-system-bz2" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-system-ffi" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-system-sqlite" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-libxul" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-jemalloc" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-official-branding" >> .mozconfig ; \
5253N/A echo "ac_add_options --disable-updater" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-update-packaging" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-ipc" >> .mozconfig ; \
5253N/A echo "ac_add_options --with-system-zlib" >> .mozconfig ; \
5253N/A echo "ac_add_options --with-system-bz2" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-gstreamer" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-system-pixman" >> .mozconfig ; \
5253N/A echo "ac_add_options --without-intl-api" >> .mozconfig ; \
5253N/A echo "ac_add_options --disable-crashreporter" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-debug-symbols=no" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-calendar" >> .mozconfig ; \
5253N/A echo "ac_add_options --enable-startup-notification" >> .mozconfig ;
5253N/A
5253N/ACXXFLAGS += -Wno-invalid-offsetof
5253N/A
5253N/ACONFIGURE_ENV += PKG_CONFIG_PATH=$(CONFIGURE_LIBDIR.$(BITS))/pkgconfig
5253N/ACONFIGURE_ENV += OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__"
5253N/ACONFIGURE_ENV += LDFLAGS="-z ignore"
5253N/A
5253N/ACONFIGURE_ENV += MOZCONFIG=$(shell pwd)/.mozconfig
5253N/ACONFIGURE_ENV += "CC=$(CC)"
5253N/ACONFIGURE_ENV += "CXX=$(CXX)"
5253N/ACONFIGURE_ENV += "CFLAGS=$(CFLAGS)"
5253N/ACONFIGURE_ENV += "CXXFLAGS=$(CXXFLAGS)"
5253N/A
5253N/A# If the configure options are not explicitly set, then configure fails with:
5253N/A# configure: warning: CC=/usr/gcc/4.8/bin/gcc: invalid host type
5253N/A# invalid host type
5253N/A# configure: warning: CXX=/usr/gcc/4.8/bin/gcc: invalid host type
5253N/A# invalid host type
5253N/A# configure: error: can only configure for one host and one target at a time
5253N/ACONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
5253N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
5253N/A
5253N/ACOMPONENT_POST_BUILD_ACTION = \
5253N/A (cd $(@D)/mail/installer ; $(ENV) $(COMPONENT_BUILD_ENV) \
5253N/A $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
5253N/A
5253N/ACOMPONENT_POST_INSTALL_ACTION += \
5253N/A $(CP) $(BUILD_DIR_32)/mozilla/dist/thunderbird/precomplete \
5253N/A $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/precomplete ;
5253N/A
5253N/ACOMPONENT_POST_INSTALL_ACTION += \
5253N/A $(CP) -r $(BUILD_DIR_32)/mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
5253N/A $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} ;
5253N/A
5253N/ACOMPONENT_POST_INSTALL_ACTION += \
5256N/A $(RM) -rf xpi ; \
5256N/A /usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) > /dev/null 2>&1 ; \
5253N/A list1='$(LANG_LIST)' ; for f in $$list1 ; do \
5253N/A $(CP) xpi/$$f.xpi \
5253N/A $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/langpack-$$f@thunderbird.mozilla.org.xpi ; \
5253N/A done ;
5253N/A
5253N/ALIB_LIST.i386 =
5253N/ALIB_LIST.sparc = $(PROTOUSRLIBDIR)/thunderbird-devel-$(COMPONENT_VERSION)/sdk/lib/cpu/sparcv8plus/libnspr_flt4.so
5253N/ALIB_LIST = $(LIB_LIST.$(MACH))
5253N/A
5253N/ACOMPONENT_POST_INSTALL_ACTION += \
5253N/A slist='$(LIB_LIST)' ; for f in $$slist ; do \
5253N/A $(MKDIR) $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/cpu/sparcv8plus ; \
5253N/A $(CP) $$f $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/cpu/sparcv8plus/libnspr_flt4.so ; \
5253N/A done ;
5253N/A
5253N/AASLR_MODE = $(ASLR_ENABLE)
5253N/A
5253N/ACOMPONENT_TEST_DIR = $(@D)/mozilla/js/src
5253N/ACOMPONENT_TEST_TARGETS=check-jit-test
5253N/ACOMPONENT_TEST_TRANSFORMS += \
5253N/A '-e "/\(^TEST-PASS\).*/d" '
5253N/A
5253N/Aconfigure: $(CONFIGURE_32)
5253N/A
5253N/Abuild: $(BUILD_32)
5253N/A
5253N/Ainstall: $(INSTALL_32)
5253N/A
5253N/Atest: $(TEST_32)
5253N/A
5253N/Asystem-test: $(NO_TESTS)
5253N/A
5253N/AREQUIRED_PACKAGES += compress/bzip2
5253N/AREQUIRED_PACKAGES += database/sqlite-3
5253N/AREQUIRED_PACKAGES += library/desktop/atk
5253N/AREQUIRED_PACKAGES += library/desktop/cairo
5253N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
5253N/AREQUIRED_PACKAGES += library/desktop/gtk2
5253N/AREQUIRED_PACKAGES += library/desktop/pango
5253N/AREQUIRED_PACKAGES += library/glib2
5253N/AREQUIRED_PACKAGES += library/gnome/gnome-libs
5253N/AREQUIRED_PACKAGES += library/graphics/pixman
5253N/AREQUIRED_PACKAGES += library/libevent
5253N/AREQUIRED_PACKAGES += library/libffi
5253N/AREQUIRED_PACKAGES += library/samba/libsmbclient
5253N/AREQUIRED_PACKAGES += library/zlib
5253N/AREQUIRED_PACKAGES += system/library
5253N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5253N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
5253N/AREQUIRED_PACKAGES += system/library/fontconfig
5253N/AREQUIRED_PACKAGES += system/library/freetype-2
5253N/AREQUIRED_PACKAGES += system/library/libdbus
5253N/AREQUIRED_PACKAGES += system/library/libdbus-glib
5253N/AREQUIRED_PACKAGES += system/library/math
5253N/AREQUIRED_PACKAGES += x11/library/libx11
5253N/AREQUIRED_PACKAGES += x11/library/libxext
5253N/AREQUIRED_PACKAGES += x11/library/libxrender
5253N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt