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