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