components/meta-packages/history/Makefile
branchs11-update
changeset 4411 45579acd1602
parent 3996 20c0f21bbe1e
child 5632 4056b7992034
--- a/components/meta-packages/history/Makefile	Wed Jun 03 06:46:31 2015 -0700
+++ b/components/meta-packages/history/Makefile	Thu Jun 04 14:11:51 2015 -0700
@@ -44,6 +44,12 @@
 MOGRIFIED =		$(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.mogrified)
 PUBLISHED =		$(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.published)
 
+PKG_MACROS =		CONSOLIDATION=$(CONSOLIDATION)
+PKG_MACROS +=		BUILD_VERSION=$(BUILD_VERSION)
+PKG_MACROS +=		OS_VERSION=$(OS_VERSION)
+
+PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
+
 download prep build install:
 	@echo "nothing to be done for $@"
 
@@ -51,7 +57,7 @@
 	$(MKDIR) $@
 
 $(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR)
-	$(PKGMOGRIFY) -D CONSOLIDATION=$(CONSOLIDATION) $< \
+	$(PKGMOGRIFY) $(PKG_OPTIONS) $< \
 	              $(WS_TOP)/transforms/incorporate > $@
 
 $(MANIFEST_BASE)-%.published: $(MANIFEST_BASE)-%.mogrified $(BUILD_DIR)