components/libxml2/Makefile
changeset 706 6e61f0012046
parent 673 bb9df3c906be
child 782 285320d34a71
--- a/components/libxml2/Makefile	Thu Feb 23 15:58:00 2012 -0800
+++ b/components/libxml2/Makefile	Fri Feb 24 13:30:24 2012 -0800
@@ -53,11 +53,28 @@
 
 COMPONENT_TEST_TARGETS = tests
 
+# After we have configured, make a copy of the python bits so we
+# can build separate python 2.7 support.
+COMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
+
+# After we have built/installed libxml2, build/install the python
+# support for python 2.7
+COMPONENT_POST_INSTALL_ACTION = \
+    (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
+                                PYTHON=$(PYTHON.2.7.$(BITS)) \
+                                PYTHON_VERSION=2.7 \
+                                PYTHON_INCLUDES=/usr/include/python2.7 \
+                                PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
+                                PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
+                                install)
+
+
 # common targets
 build:		$(BUILD_32_and_64)
 
 install:	$(INSTALL_32_and_64)
 	$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
+	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
 
 test:		$(TEST_32_and_64)