Makefile revision 3936
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER START
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# The contents of this file are subject to the terms of the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Common Development and Distribution License (the "License").
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# You may not use this file except in compliance with the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# See the License for the specific language governing permissions
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# and limitations under the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER END
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# When 2.6 goes away, we can remove the version line below, as well as the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# After we have configured, make a copy of the python bits so we
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# can build separate python 2.7 support.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# After we have built/installed libxslt, rebuild/install the python
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# support for python 2.7
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# common targets
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages