components/scons/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 13 Oct 2016 17:26:39 -0700
changeset 7104 8f45af4c27d7
parent 5879 6c5ab2c43a8c
child 7687 1093e2a9adbd
permissions -rw-r--r--
24837165 userland should move to parfait 1.9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    21
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    25
BUILD_BITS= NO_ARCH
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		scons
5879
6c5ab2c43a8c 23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    29
COMPONENT_VERSION=	2.5.0
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.scons.org/
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
5879
6c5ab2c43a8c 23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    32
    sha256:eb296b47f23c20aec7d87d35cfa386d3508e01d1caa3040ea6f5bbab2292ace9
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
5879
6c5ab2c43a8c 23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    35
TPNO=			28026
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
# Per Q1.1.4 of the SCons FAQ, SCons is written to work with any Python
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
# version >= 2.4 and < 3.0. Versions 3.0 and above are not supported at
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
# this time.
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
PYTHON_VERSIONS =	2.7
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    42
BUILD_STYLE= setup.py
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    43
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4599
diff changeset
    44
include $(WS_MAKE_RULES)/common.mk
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
# pkgdepend doesn't like the first line of a Python script to be:
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
COMPONENT_POST_INSTALL_ACTION += \
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
	$(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5879
6c5ab2c43a8c 23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    50
		$(PROTOUSRBINDIR)/scons-$(COMPONENT_VERSION);
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
COMPONENT_POST_INSTALL_ACTION += \
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
	$(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5879
6c5ab2c43a8c 23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    53
		$(PROTOUSRBINDIR)/scons-time-$(COMPONENT_VERSION);
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
COMPONENT_POST_INSTALL_ACTION += \
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
	$(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5879
6c5ab2c43a8c 23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    56
		$(PROTOUSRBINDIR)/sconsign-$(COMPONENT_VERSION);
4599
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
PKG_PROTO_DIRS +=	$(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
REQUIRED_PACKAGES += library/python/setuptools-27
c7cdb20dce6d PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
REQUIRED_PACKAGES += runtime/python-27