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