Makefile revision 1258
155N/A#
155N/A# CDDL HEADER START
155N/A#
155N/A# The contents of this file are subject to the terms of the
155N/A# Common Development and Distribution License (the "License").
155N/A# You may not use this file except in compliance with the License.
155N/A#
155N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
155N/A# or http://www.opensolaris.org/os/licensing.
155N/A# See the License for the specific language governing permissions
155N/A# and limitations under the License.
155N/A#
155N/A# When distributing Covered Code, include this CDDL HEADER in each
155N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155N/A# If applicable, add the following below this CDDL HEADER, with the
155N/A# fields enclosed by brackets "[]" replaced with your own identifying
155N/A# information: Portions Copyright [yyyy] [name of copyright owner]
155N/A#
155N/A# CDDL HEADER END
155N/A#
155N/A
155N/A#
155N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
155N/A#
155N/A
155N/Ainclude ../../make-rules/shared-macros.mk
155N/A
155N/ACOMPONENT_NAME= libxml2
155N/ACOMPONENT_VERSION= 2.9.0
155N/ACOMPONENT_PROJECT_URL= http://xmlsoft.org/
155N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
155N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
155N/ACOMPONENT_ARCHIVE_HASH= \
155N/A sha256:ad25d91958b7212abdc12b9611cfb4dc4e5cddb6d1e9891532f48aacee422b82
155N/ACOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
155N/ACOMPONENT_BUGDB= library/libxml
155N/A
215N/A# W3C XML Conformance Test Suites
215N/ACOMPONENT_ARCHIVE_1= xmlts20080827.tar.gz
215N/ACOMPONENT_ARCHIVE_HASH_1= \
215N/A sha256:96151685cec997e1f9f3387e3626d61e6284d4d6e66e0e440c209286c03e9cc7
215N/ACOMPONENT_ARCHIVE_URL_1= http://www.w3.org/XML/Test/$(COMPONENT_ARCHIVE_1)
215N/A
215N/Ainclude ../../make-rules/prep.mk
215N/Ainclude ../../make-rules/configure.mk
215N/Ainclude ../../make-rules/ips.mk
215N/Ainclude ../../make-rules/lint-libraries.mk
215N/A
215N/ACFLAGS += $(CPP_LARGEFILES)
215N/ALDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
215N/A
215N/ACONFIGURE_OPTIONS += --disable-static
155N/ACONFIGURE_OPTIONS += --with-pic
155N/ACONFIGURE_OPTIONS += --with-threads
155N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
155N/A# Cannot link to lzma since it's not in /lib.
155N/ACONFIGURE_OPTIONS += --without-lzma
155N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
155N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
155N/ACONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
155N/A
155N/ACOMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoreconf -if)
155N/A
155N/A# After we have configured, make a copy of the python bits so we
156N/A# can build separate python 2.7 support.
156N/ACOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7 ; \
155N/A $(GSED) -i -e 's/2[.]6/2.7/g' python2.7/Makefile)
155N/A
155N/A# After we have built/installed libxml2, build/install the python
155N/A# support for python 2.7
155N/ACOMPONENT_POST_INSTALL_ACTION = \
155N/A (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
155N/A
155N/ACOMPONENT_PRE_TEST_ACTION = (cd $(@D) ; gtar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1))
155N/A
155N/A# common targets
155N/Abuild: $(BUILD_32_and_64)
155N/A
155N/Ainstall: $(INSTALL_32_and_64)
155N/A $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
155N/A $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
155N/A
155N/Atest: $(TEST_32_and_64)
155N/A
155N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
155N/A
155N/Ainclude ../../make-rules/depend.mk
155N/A