equal
deleted
inserted
replaced
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) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
21 |
|
22 # |
|
23 # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
23 |
25 |
24 $(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6 |
26 $(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6 |
25 $(BUILD_DIR)/%-2.7/.built: PYTHON_VERSION=2.7 |
27 $(BUILD_DIR)/%-2.7/.built: PYTHON_VERSION=2.7 |
26 $(BUILD_DIR)/$(MACH32)-%/.built: BITS=32 |
28 $(BUILD_DIR)/$(MACH32)-%/.built: BITS=32 |
83 -$(PARFAIT) $(@D) |
85 -$(PARFAIT) $(@D) |
84 endif |
86 endif |
85 $(TOUCH) $@ |
87 $(TOUCH) $@ |
86 |
88 |
87 |
89 |
88 COMPONENT_INSTALL_ARGS += --root $(PROTO_DIR) |
90 COMPONENT_INSTALL_ARGS += --root $(PROTO_DIR) |
89 COMPONENT_INSTALL_ARGS += --install-lib=$(PYTHON_LIB) |
91 COMPONENT_INSTALL_ARGS += --install-lib=$(PYTHON_LIB) |
90 COMPONENT_INSTALL_ARGS += --install-purelib=$(PYTHON_LIB) |
92 COMPONENT_INSTALL_ARGS += --install-purelib=$(PYTHON_LIB) |
91 COMPONENT_INSTALL_ARGS += --install-platlib=$(PYTHON_LIB) |
93 COMPONENT_INSTALL_ARGS += --install-platlib=$(PYTHON_LIB) |
92 COMPONENT_INSTALL_ARGS += --install-data=$(PYTHON_DATA) |
94 COMPONENT_INSTALL_ARGS += --install-data=$(PYTHON_DATA) |
93 COMPONENT_INSTALL_ARGS += --force |
95 COMPONENT_INSTALL_ARGS += --force |
124 endif |
126 endif |
125 |
127 |
126 clean:: |
128 clean:: |
127 $(RM) -r $(SOURCE_DIR) $(BUILD_DIR) |
129 $(RM) -r $(SOURCE_DIR) $(BUILD_DIR) |
128 |
130 |
129 # Make it easy to construct a URL for a pypi source download. |
131 # Make it easy to construct a URL for a pypi source download. This |
|
132 # construct supports an optional call to a number from |
|
133 # NUM_EXTRA_ARCHIVES for multiple archive downloads. |
130 PYPI_BASE = http://pypi.python.org/packages/source |
134 PYPI_BASE = http://pypi.python.org/packages/source |
131 pypi_url = $(PYPI_BASE)/$(shell echo $(COMPONENT_NAME) | cut -c1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
135 pypi_url_multi = $(shell echo $(COMPONENT_NAME_$(1)) | cut -c1)/$(COMPONENT_NAME_$(1))/$(COMPONENT_ARCHIVE_$(1)) |
|
136 pypi_url_single = $(shell echo $(COMPONENT_NAME) | cut -c1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
137 pypi_url = $(PYPI_BASE)/$(if $(COMPONENT_NAME_$(1)),$(pypi_url_multi),$(pypi_url_single)) |