Makefile revision 4597
2247N/A#
2247N/A# CDDL HEADER START
2247N/A#
2247N/A# The contents of this file are subject to the terms of the
2247N/A# Common Development and Distribution License (the "License").
2247N/A# You may not use this file except in compliance with the License.
2247N/A#
2247N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2247N/A# or http://www.opensolaris.org/os/licensing.
2247N/A# See the License for the specific language governing permissions
2247N/A# and limitations under the License.
2247N/A#
2247N/A# When distributing Covered Code, include this CDDL HEADER in each
2247N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2247N/A# If applicable, add the following below this CDDL HEADER, with the
2247N/A# fields enclosed by brackets "[]" replaced with your own identifying
2247N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2247N/A#
2247N/A# CDDL HEADER END
2247N/A#
5680N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5306N/Ainclude ../../make-rules/shared-macros.mk
2247N/A
5680N/ACOMPONENT_NAME= scons
5680N/ACOMPONENT_VERSION= 2.3.4
2247N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2247N/ACOMPONENT_PROJECT_URL= http://www.scons.org/
2247N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5306N/ACOMPONENT_ARCHIVE_HASH= \
2276N/A sha256:4b57d72066fed3b6ff65a7dd9f73633c9b1c09f87520e9b3aae84b3e4864b441
2276N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
2276N/ACOMPONENT_BUGDB= utility/scons
2276N/A
2276N/ATPNO= 22207
5542N/A
2276N/A# Per Q1.1.4 of the SCons FAQ, SCons is written to work with any Python
2276N/A# version >= 2.4 and < 3.0. Versions 3.0 and above are not supported at
5306N/A# this time.
2247N/APYTHON_VERSIONS = 2.7
2247N/A
5306N/Ainclude $(WS_MAKE_RULES)/prep.mk
3574N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
2899N/Ainclude $(WS_MAKE_RULES)/ips.mk
5680N/A
5680N/A# pkgdepend doesn't like the first line of a Python script to be:
5528N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
5528N/ACOMPONENT_POST_INSTALL_ACTION += \
5528N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5528N/A $(PROTOUSRBINDIR)/scons-2.3.4;
5528N/ACOMPONENT_POST_INSTALL_ACTION += \
5528N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5528N/A $(PROTOUSRBINDIR)/scons-time-2.3.4;
5528N/ACOMPONENT_POST_INSTALL_ACTION += \
5528N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5680N/A $(PROTOUSRBINDIR)/sconsign-2.3.4;
3930N/A
3142N/APKG_PROTO_DIRS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
3142N/A
3142N/AASLR_MODE = $(ASLR_ENABLE)
3142N/A
3142N/Abuild: $(BUILD_NO_ARCH)
3142N/A
3142N/Ainstall: $(INSTALL_NO_ARCH)
3142N/A
4076N/Atest: $(NO_TESTS)
4742N/A
5024N/AREQUIRED_PACKAGES += library/python/setuptools-27
5308N/AREQUIRED_PACKAGES += runtime/python-27
3142N/A