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