Makefile revision 3936
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER START
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
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#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# See the License for the specific language governing permissions
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# and limitations under the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
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#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER END
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude ../../make-rules/shared-macros.mk
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_NAME= libxslt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_VERSION= 1.1.28
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_ARCHIVE_HASH= \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_BUGDB= library/libxslt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntTPNO= 17982
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude $(WS_MAKE_RULES)/prep.mk
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude $(WS_MAKE_RULES)/configure.mk
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude $(WS_MAKE_RULES)/ips.mk
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinclude $(WS_MAKE_RULES)/lint-libraries.mk
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntASLR_MODE = $(ASLR_ENABLE)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntLINT_FLAGS += -I/usr/include/libxml2
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCFLAGS += $(CPP_LARGEFILES)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
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 HuntPYTHON_VERSION=2.6
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --disable-static
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --with-pic
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --without-crypto
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += --with-html-subdir=html
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_PREP_ACTION = \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt libtoolize --force --copy ; aclocal ; \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt automake --addmissing --copy ; autoconf)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
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
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# After we have built/installed libxslt, rebuild/install the python
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# support for python 2.7
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntCOMPONENT_POST_INSTALL_ACTION = \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt PYTHON=$(PYTHON.2.7.$(BITS)) \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt PYTHON_VERSION=2.7 \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt PYTHON_INCLUDES=/usr/include/python2.7 \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt install)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# common targets
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntconfigure: $(CONFIGURE_32_and_64)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntbuild: $(BUILD_32_and_64)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntinstall: $(INSTALL_32_and_64)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunttest: $(TEST_32_and_64)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += library/libxml2
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += library/libxslt
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += runtime/python-26
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += shell/ksh93
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += system/library
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += system/library/math
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan HuntREQUIRED_PACKAGES += system/linker
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt