Makefile revision 4337
7199N/A#
7199N/A# CDDL HEADER START
7199N/A#
7199N/A# The contents of this file are subject to the terms of the
7199N/A# Common Development and Distribution License (the "License").
7199N/A# You may not use this file except in compliance with the License.
7199N/A#
7199N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7199N/A# or http://www.opensolaris.org/os/licensing.
7199N/A# See the License for the specific language governing permissions
7199N/A# and limitations under the License.
7199N/A#
7199N/A# When distributing Covered Code, include this CDDL HEADER in each
7199N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7199N/A# If applicable, add the following below this CDDL HEADER, with the
7199N/A# fields enclosed by brackets "[]" replaced with your own identifying
7199N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7199N/A#
7199N/A# CDDL HEADER END
7199N/A#
7199N/A
7199N/A#
7199N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
7199N/A#
7199N/A
7199N/Ainclude ../../make-rules/shared-macros.mk
7199N/A
7199N/ACOMPONENT_NAME= libxslt
7199N/ACOMPONENT_VERSION= 1.1.28
7199N/ACOMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
7199N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7199N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7199N/ACOMPONENT_ARCHIVE_HASH= \
7199N/A sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
7199N/ACOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
7199N/ACOMPONENT_BUGDB= library/libxslt
7199N/A
7199N/ATPNO= 17982
7199N/A
7199N/Ainclude $(WS_MAKE_RULES)/prep.mk
7199N/Ainclude $(WS_MAKE_RULES)/configure.mk
7199N/Ainclude $(WS_MAKE_RULES)/ips.mk
7199N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
7199N/A
7199N/AASLR_MODE = $(ASLR_ENABLE)
7199N/A
7199N/ALINT_FLAGS += -I/usr/include/libxml2
7199N/A
7199N/ACFLAGS += $(CPP_LARGEFILES)
7199N/ALDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
7199N/A
7199N/A# When 2.6 goes away, we can remove the version line below, as well as the
7199N/A# COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
7199N/APYTHON_VERSION=2.6
7199N/A
7199N/ACONFIGURE_OPTIONS += --disable-static
7199N/ACONFIGURE_OPTIONS += --with-pic
7199N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
7199N/ACONFIGURE_OPTIONS += --without-crypto
7199N/ACONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
7199N/ACONFIGURE_OPTIONS += --with-html-subdir=html
7199N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
7199N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
7199N/ACONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
7199N/A
7199N/ACOMPONENT_PREP_ACTION = \
7199N/A (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
7199N/A $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ) ;
7199N/A
7199N/A# requires an older automake to reconfigure.
7199N/ACOMPONENT_PREP_ACTION += \
7199N/A (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
7199N/A
7199N/A# After we have configured, make a copy of the python bits so we
7199N/A# can build separate python 2.7 support.
7199N/ACOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
7199N/A
7199N/A# After we have built/installed libxslt, rebuild/install the python
7199N/A# support for python 2.7
7199N/ACOMPONENT_POST_INSTALL_ACTION = \
7199N/A (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
7199N/A PYTHON=$(PYTHON.2.7.$(BITS)) \
PYTHON_VERSION=2.7 \
PYTHON_INCLUDES=/usr/include/python2.7 \
PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
install)
# common targets
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
test: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += library/libxslt
REQUIRED_PACKAGES += runtime/python-26
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/linker