Makefile revision 4086
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER START
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# The contents of this file are subject to the terms of the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Common Development and Distribution License (the "License").
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You may not use this file except in compliance with the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# or http://www.opensolaris.org/os/licensing.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# See the License for the specific language governing permissions
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# and limitations under the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# When distributing Covered Code, include this CDDL HEADER in each
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# If applicable, add the following below this CDDL HEADER, with the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# fields enclosed by brackets "[]" replaced with your own identifying
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# information: Portions Copyright [yyyy] [name of copyright owner]
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER END
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
ec530482c1ef4dca30addfa5aad4ee0ed6588b9cRic Aleshire#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude ../../make-rules/shared-macros.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_NAME= libxslt
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_VERSION= 1.1.28
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_ARCHIVE_HASH= \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_BUGDB= library/libxslt
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaTPNO= 17982
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude $(WS_MAKE_RULES)/prep.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude $(WS_MAKE_RULES)/configure.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude $(WS_MAKE_RULES)/ips.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude $(WS_MAKE_RULES)/lint-libraries.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaASLR_MODE = $(ASLR_ENABLE)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINT_FLAGS += -I/usr/include/libxml2
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCFLAGS += $(CPP_LARGEFILES)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# When 2.6 goes away, we can remove the version line below, as well as the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajPYTHON_VERSION=2.6
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCONFIGURE_OPTIONS += --disable-static
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCONFIGURE_OPTIONS += --with-pic
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCONFIGURE_OPTIONS += --without-crypto
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCONFIGURE_OPTIONS += --with-html-subdir=html
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
36d41b68ce4ecc38f01ced5fe21dddf05a5f9289Nathan BushCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
36d41b68ce4ecc38f01ced5fe21dddf05a5f9289Nathan BushCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
36d41b68ce4ecc38f01ced5fe21dddf05a5f9289Nathan Bush
36d41b68ce4ecc38f01ced5fe21dddf05a5f9289Nathan BushCOMPONENT_PREP_ACTION = \
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
36d41b68ce4ecc38f01ced5fe21dddf05a5f9289Nathan Bush $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ) ;
36d41b68ce4ecc38f01ced5fe21dddf05a5f9289Nathan Bush
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# requires an older automake to reconfigure.
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCOMPONENT_PREP_ACTION += \
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# After we have configured, make a copy of the python bits so we
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# can build separate python 2.7 support.
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4ajCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# After we have built/installed libxslt, rebuild/install the python
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# support for python 2.7
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_POST_INSTALL_ACTION = \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica PYTHON=$(PYTHON.2.7.$(BITS)) \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica PYTHON_VERSION=2.7 \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica PYTHON_INCLUDES=/usr/include/python2.7 \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica install)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# common targets
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaconfigure: $(CONFIGURE_32_and_64)
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek Pospisil
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricabuild: $(BUILD_32_and_64)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainstall: $(INSTALL_32_and_64)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricatest: $(TEST_32_and_64)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += library/libxml2
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += library/libxslt
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += runtime/python-26
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += shell/ksh93
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += system/library
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += system/library/math
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek PospisilREQUIRED_PACKAGES += system/linker
005d3feb53a9a10272d4a24b03991575d6a9bcb3Marek Pospisil