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