Makefile revision 727
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# CDDL HEADER START
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# The contents of this file are subject to the terms of the
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# Common Development and Distribution License (the "License").
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# You may not use this file except in compliance with the License.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# See the License for the specific language governing permissions
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# and limitations under the License.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# When distributing Covered Code, include this CDDL HEADER in each
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# If applicable, add the following below this CDDL HEADER, with the
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# fields enclosed by brackets "[]" replaced with your own identifying
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# information: Portions Copyright [yyyy] [name of copyright owner]
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# CDDL HEADER END
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCOMPONENT_ARCHIVE_HASH= sha1:b0f6bf8408e759ac4b8b9650005ee8adea911e1d
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCOMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoreconf -if)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# After we have configured, make a copy of the python bits so we
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# can build separate python 2.7 support.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# After we have built/installed libxml2, build/install the python
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# support for python 2.7
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# common targets
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages