Makefile revision 4337
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When 2.6 goes away, we can remove the version line below, as well as the
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews# COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox UserCONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ) ;
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# requires an older automake to reconfigure.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# After we have configured, make a copy of the python bits so we
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrews# can build separate python 2.7 support.
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark AndrewsCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater# After we have built/installed libxslt, rebuild/install the python
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater# support for python 2.7
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrews (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92Mark Andrews# common targets
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox User $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages