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