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