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