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