16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 BUILD_BITS= NO_ARCH |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= scons |
28 COMPONENT_NAME= scons |
26 COMPONENT_VERSION= 2.3.4 |
29 COMPONENT_VERSION= 2.3.4 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://www.scons.org/ |
30 COMPONENT_PROJECT_URL= http://www.scons.org/ |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:4b57d72066fed3b6ff65a7dd9f73633c9b1c09f87520e9b3aae84b3e4864b441 |
32 sha256:4b57d72066fed3b6ff65a7dd9f73633c9b1c09f87520e9b3aae84b3e4864b441 |
32 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download |
33 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download |
33 COMPONENT_BUGDB= utility/scons |
|
34 |
34 |
35 TPNO= 22207 |
35 TPNO= 22207 |
36 |
36 |
37 # Per Q1.1.4 of the SCons FAQ, SCons is written to work with any Python |
37 # Per Q1.1.4 of the SCons FAQ, SCons is written to work with any Python |
38 # version >= 2.4 and < 3.0. Versions 3.0 and above are not supported at |
38 # version >= 2.4 and < 3.0. Versions 3.0 and above are not supported at |
39 # this time. |
39 # this time. |
40 PYTHON_VERSIONS = 2.7 |
40 PYTHON_VERSIONS = 2.7 |
41 |
41 |
42 include $(WS_MAKE_RULES)/prep.mk |
42 BUILD_STYLE= setup.py |
43 include $(WS_MAKE_RULES)/setup.py.mk |
43 TEST_TARGET= $(NO_TESTS) |
44 include $(WS_MAKE_RULES)/ips.mk |
44 include $(WS_MAKE_RULES)/common.mk |
45 |
45 |
46 # pkgdepend doesn't like the first line of a Python script to be: |
46 # pkgdepend doesn't like the first line of a Python script to be: |
47 # '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)' |
47 # '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)' |
48 COMPONENT_POST_INSTALL_ACTION += \ |
48 COMPONENT_POST_INSTALL_ACTION += \ |
49 $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \ |
49 $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \ |
55 $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \ |
55 $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \ |
56 $(PROTOUSRBINDIR)/sconsign-2.3.4; |
56 $(PROTOUSRBINDIR)/sconsign-2.3.4; |
57 |
57 |
58 PKG_PROTO_DIRS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
58 PKG_PROTO_DIRS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
59 |
59 |
60 ASLR_MODE = $(ASLR_ENABLE) |
|
61 |
|
62 build: $(BUILD_NO_ARCH) |
|
63 |
|
64 install: $(INSTALL_NO_ARCH) |
|
65 |
|
66 test: $(NO_TESTS) |
|
67 |
|
68 REQUIRED_PACKAGES += library/python/setuptools-27 |
60 REQUIRED_PACKAGES += library/python/setuptools-27 |
69 REQUIRED_PACKAGES += runtime/python-27 |
61 REQUIRED_PACKAGES += runtime/python-27 |