Makefile revision 2899
155N/A#
155N/A# CDDL HEADER START
155N/A#
155N/A# The contents of this file are subject to the terms of the
155N/A# Common Development and Distribution License (the "License").
155N/A# You may not use this file except in compliance with the License.
155N/A#
155N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
155N/A# or http://www.opensolaris.org/os/licensing.
155N/A# See the License for the specific language governing permissions
155N/A# and limitations under the License.
155N/A#
155N/A# When distributing Covered Code, include this CDDL HEADER in each
155N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155N/A# If applicable, add the following below this CDDL HEADER, with the
155N/A# fields enclosed by brackets "[]" replaced with your own identifying
155N/A# information: Portions Copyright [yyyy] [name of copyright owner]
155N/A#
155N/A# CDDL HEADER END
155N/A#
3817N/A
155N/A#
155N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
155N/A#
485N/A
485N/Ainclude ../../make-rules/shared-macros.mk
277N/A
277N/ACOMPONENT_NAME= libxslt
277N/ACOMPONENT_VERSION= 1.1.28
277N/ACOMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
155N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1499N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
155N/ACOMPONENT_ARCHIVE_HASH= \
618N/A sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
155N/ACOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
155N/ACOMPONENT_BUGDB= library/libxslt
844N/A
1499N/ATPNO= 17982
155N/A
1258N/Ainclude ../../make-rules/prep.mk
3557N/Ainclude ../../make-rules/configure.mk
155N/Ainclude ../../make-rules/ips.mk
3817N/Ainclude ../../make-rules/lint-libraries.mk
3817N/A
3817N/ALINT_FLAGS += -I/usr/include/libxml2
155N/A
155N/ACFLAGS += $(CPP_LARGEFILES)
215N/ALDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
215N/A
215N/ACONFIGURE_OPTIONS += --disable-static
215N/ACONFIGURE_OPTIONS += --with-pic
215N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
215N/ACONFIGURE_OPTIONS += --without-crypto
215N/ACONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
215N/ACONFIGURE_OPTIONS += --with-html-subdir=html
215N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
215N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
215N/ACONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
215N/A
215N/ACOMPONENT_PREP_ACTION = \
215N/A (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
215N/A $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
155N/A libtoolize --force --copy ; aclocal ; \
155N/A automake --addmissing --copy ; autoconf)
155N/A
155N/A# After we have configured, make a copy of the python bits so we
155N/A# can build separate python 2.7 support.
155N/ACOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
155N/A
155N/A# After we have built/installed libxslt, rebuild/install the python
741N/A# support for python 2.7
741N/ACOMPONENT_POST_INSTALL_ACTION = \
1405N/A (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
1405N/A PYTHON=$(PYTHON.2.7.$(BITS)) \
1405N/A PYTHON_VERSION=2.7 \
1405N/A PYTHON_INCLUDES=/usr/include/python2.7 \
156N/A PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
155N/A PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
155N/A install)
155N/A
155N/A
155N/A
155N/A# common targets
155N/Abuild: $(BUILD_32_and_64)
155N/A
155N/Ainstall: $(INSTALL_32_and_64)
155N/A $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
3837N/A $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
155N/A
155N/Atest: $(TEST_32_and_64)
1405N/A
155N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1405N/A
1405N/Ainclude ../../make-rules/depend.mk
1641N/A