author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 5879 | 6c5ab2c43a8c |
child 7775 | 72ac679e53b6 |
permissions | -rw-r--r-- |
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 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
5879
diff
changeset
|
23 |
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
5682
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 |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
5879
diff
changeset
|
34 |
COMPONENT_ANITYA_ID= 4770 |
4599
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
|
5879
6c5ab2c43a8c
23132162 Upgrade scons to 2.5.0
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
36 |
TPNO= 28026 |
4599
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
# 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
|
39 |
# 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
|
40 |
# this time. |
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
PYTHON_VERSIONS = 2.7 |
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4599
diff
changeset
|
43 |
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
|
44 |
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
|
45 |
include $(WS_MAKE_RULES)/common.mk |
4599
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
|
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
# 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
|
48 |
# '#!/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
|
49 |
COMPONENT_POST_INSTALL_ACTION += \ |
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
$(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
|
51 |
$(PROTOUSRBINDIR)/scons-$(COMPONENT_VERSION); |
4599
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
COMPONENT_POST_INSTALL_ACTION += \ |
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
$(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
|
54 |
$(PROTOUSRBINDIR)/scons-time-$(COMPONENT_VERSION); |
4599
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
COMPONENT_POST_INSTALL_ACTION += \ |
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
$(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
|
57 |
$(PROTOUSRBINDIR)/sconsign-$(COMPONENT_VERSION); |
4599
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
|
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
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
|
60 |
|
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
REQUIRED_PACKAGES += library/python/setuptools-27 |
c7cdb20dce6d
PSARC 2015/151 SCons - Software Construction Tool
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
REQUIRED_PACKAGES += runtime/python-27 |