components/desktop/mozjs-24/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 7104 8f45af4c27d7
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6336
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7104
diff changeset
    21
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
6336
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    23
7104
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6336
diff changeset
    24
# parfait is a bit unhappy (24796622)
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6336
diff changeset
    25
export PARFAIT_BUILD=no
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6336
diff changeset
    26
6336
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
BUILD_BITS =            32_and_64
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
COMPILER =              gcc
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
include ../../../make-rules/shared-macros.mk
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_NAME=		mozjs
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_VERSION=	24.2.0
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH= \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    36
	sha256:e62f3f331ddd90df1e238c09d61a505c516fe9fd8c5c95336611d191d18437d8
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	http://ftp.mozilla.org/pub/mozilla.org/js/$(COMPONENT_ARCHIVE)
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_BUGDB=	library/libmozjs
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7104
diff changeset
    39
COMPONENT_ANITYA_ID=	11754
6336
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
TPNO=			25517
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
CXXFLAGS += -std=c++11
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    45
# Only used during build process.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    46
PYTHON_VERSIONS= 2.7
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    47
PYTHON= $(PYTHON.2.7.$(BITS))
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    49
# Tests take too long to run, disabled for now
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    50
TEST_TARGET = $(SKIP_TEST)
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    51
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
include $(WS_MAKE_RULES)/common.mk
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
# configure script is not at root of source tree.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
CONFIGURE_SCRIPT= $(SOURCE_DIR)/js/src/configure
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
CONFIGURE_ENV += LDSHARED="$(CC) -shared"
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
CONFIGURE_ENV += NSPR_CONFIG="/usr/bin/pkg-config nspr"
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
# So build can find dtrace.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
COMPONENT_BUILD_ENV += PATH="$(PATH):/usr/sbin"
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    62
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
CONFIGURE_OPTIONS += --enable-ctypes
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    64
CONFIGURE_OPTIONS += --enable-dtrace
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    65
# Uses ancient embedded version of ICU.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    66
CONFIGURE_OPTIONS += --disable-intl-api
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    67
# Resulting packages are a few hundred megabytes larger without this!
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --enable-install-strip
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --enable-readline
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --enable-shared-js
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-system-ffi
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-threadsafe
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --with-system-zlib
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --with-x
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    75
CONFIGURE_OPTIONS.32 += --with-system-nspr
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    76
# A pkg-config file isn't shipped in Solaris for nspr 64-bit, so configure will
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    77
# fail to find it, requiring manual specification of the flags and libs.
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    78
CONFIGURE_OPTIONS.64 += --with-nspr-cflags="-I/usr/include/mps"
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    79
CONFIGURE_OPTIONS.64 += --with-nspr-libs="-R/usr/lib/mps/64 -L/usr/lib/mps/64 -lplds4 -lplc4 -lnspr4"
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    80
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    81
unexport SHELLOPTS
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    82
COMPONENT_TEST_ARGS =   -k -i
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    83
COMPONENT_TEST_TRANSFORMS += \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    84
        '-n ' \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    85
        '-e "/TOTAL:/p" ' \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    86
        '-e "/SKIP:/p" ' \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    87
        '-e "/PASS:/p" ' \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    88
        '-e "/FAIL:/p" ' \
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    89
        '-e "/ERROR:/p" '
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    90
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    91
REQUIRED_PACKAGES += library/libffi
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    92
REQUIRED_PACKAGES += library/nspr
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    93
REQUIRED_PACKAGES += library/readline
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    94
REQUIRED_PACKAGES += library/security/nss
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    95
REQUIRED_PACKAGES += library/zlib
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    96
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    97
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6ba7729e5c3a 23245656 Deliver mozjs-24 24.2.0 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    98
REQUIRED_PACKAGES += system/library/math