make-rules/ips.mk
changeset 1609 87293f3666a2
parent 1432 d90238e58d20
child 1756 3579365335ef
equal deleted inserted replaced
1608:ad73e8a08980 1609:87293f3666a2
    89 PKG_MACROS +=		COMPONENT_ARCHIVE_URL=$(COMPONENT_ARCHIVE_URL)
    89 PKG_MACROS +=		COMPONENT_ARCHIVE_URL=$(COMPONENT_ARCHIVE_URL)
    90 PKG_MACROS +=		COMPONENT_HG_URL=$(COMPONENT_HG_URL)
    90 PKG_MACROS +=		COMPONENT_HG_URL=$(COMPONENT_HG_URL)
    91 PKG_MACROS +=		COMPONENT_HG_REV=$(COMPONENT_HG_REV)
    91 PKG_MACROS +=		COMPONENT_HG_REV=$(COMPONENT_HG_REV)
    92 PKG_MACROS +=		COMPONENT_NAME=$(COMPONENT_NAME)
    92 PKG_MACROS +=		COMPONENT_NAME=$(COMPONENT_NAME)
    93 PKG_MACROS +=		TPNO=$(TPNO)
    93 PKG_MACROS +=		TPNO=$(TPNO)
       
    94 PKG_MACROS +=		PYTHON_2.6_ONLY=\#
       
    95 PKG_MACROS +=		PYTHON_2.7_ONLY=\#
    94 
    96 
    95 PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
    97 PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
    96 
    98 
    97 MANGLED_DIR =	$(PROTO_DIR)/mangled
    99 MANGLED_DIR =	$(PROTO_DIR)/mangled
    98 
   100 
   171 		"predicate=$(1)-$(2) fmri=%<1>-$(2)@%<2>>" >> $@;
   173 		"predicate=$(1)-$(2) fmri=%<1>-$(2)@%<2>>" >> $@;
   172 
   174 
   173 # Define and execute a macro that generates a rule to create a manifest for a
   175 # Define and execute a macro that generates a rule to create a manifest for a
   174 # python module specific to a particular version of the python runtime.
   176 # python module specific to a particular version of the python runtime.
   175 define python-manifest-rule
   177 define python-manifest-rule
       
   178 $(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).mogrified: PKG_MACROS += PYTHON_$(1)_ONLY=
       
   179 
   176 $(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-PYVER.p5m
   180 $(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-PYVER.p5m
   177 	$(PKGMOGRIFY) -D PYVER=$(1) -D PYV=$(shell echo $(1) | tr -d .) $$< > $$@
   181 	$(PKGMOGRIFY) -D PYVER=$(1) -D PYV=$(shell echo $(1) | tr -d .) $$< > $$@
   178 endef
   182 endef
   179 $(foreach ver,$(PYTHON_VERSIONS),$(eval $(call python-manifest-rule,$(ver))))
   183 $(foreach ver,$(PYTHON_VERSIONS),$(eval $(call python-manifest-rule,$(ver))))
   180 
   184