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