Makefile revision 3510
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# CDDL HEADER START
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# The contents of this file are subject to the terms of the
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Common Development and Distribution License (the "License").
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# You may not use this file except in compliance with the License.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# or http://www.opensolaris.org/os/licensing.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# See the License for the specific language governing permissions
0662ed52e814f8f08ef0e09956413a792584eddffuankg# and limitations under the License.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# When distributing Covered Code, include this CDDL HEADER in each
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# If applicable, add the following below this CDDL HEADER, with the
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# fields enclosed by brackets "[]" replaced with your own identifying
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# information: Portions Copyright [yyyy] [name of copyright owner]
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# CDDL HEADER END
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd#
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude ../../make-rules/shared-macros.mk
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_NAME= libxml2
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_VERSION= 2.9.2
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_PROJECT_URL= http://xmlsoft.org/
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_ARCHIVE_HASH= \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd sha256:5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_BUGDB= library/libxml
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# W3C XML Conformance Test Suites
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_ARCHIVE_1= xmlts20080827.tar.gz
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_ARCHIVE_HASH_1= \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd sha256:96151685cec997e1f9f3387e3626d61e6284d4d6e66e0e440c209286c03e9cc7
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_ARCHIVE_URL_1= http://www.w3.org/XML/Test/$(COMPONENT_ARCHIVE_1)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndTPNO= 19552
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude ../../make-rules/prep.mk
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude ../../make-rules/configure.mk
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude ../../make-rules/ips.mk
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude ../../make-rules/lint-libraries.mk
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCFLAGS += $(CPP_LARGEFILES)
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += --disable-static
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += --with-pic
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += --with-threads
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += --with-python-install-dir=$(PYTHON_VENDOR_PACKAGES)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Cannot link to lzma since it's not in /lib.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += --without-lzma
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoreconf -if)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# After we have configured, make a copy of the python bits so we
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# can build and test separate python 2.7 support.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7 ; \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd $(GSED) -i -e 's/2[.]6/2.7/g' `find python2.7 -name Makefile`)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# After we have built/installed libxml2, build/install the python
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# support for python 2.7
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgCOMPONENT_POST_INSTALL_ACTION = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# It's nice to test also python 2.7 module.
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_POST_TEST_ACTION = \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_TEST_ARGS) test)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# We have patched our 64 bit python so it will search for modules only in
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# '64/' directories. Now we need to provide one. Otherwise python will
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# end up using libxml2mod.so installed on system.
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd$(BUILD_DIR)/$(MACH64)/.tested: COMPONENT_PRE_TEST_ACTION = ( \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd $(MKDIR) $(@D)/python/.libs/64 $(@D)/python2.7/.libs/64; \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd $(SYMLINK) ../libxml2mod.so $(@D)/python/.libs/64/libxml2mod.so; \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd $(SYMLINK) ../libxml2mod.so $(@D)/python2.7/.libs/64/libxml2mod.so);
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndCOMPONENT_PRE_TEST_ACTION += \
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd (cd $(@D) ; gtar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1));
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd# common targets
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndbuild: $(BUILD_32_and_64)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinstall: $(INSTALL_32_and_64)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgtest: $(TEST_32_and_64)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd
08bc8956dd24148ba8ab24184e1c81e9f2354d69ndinclude ../../make-rules/depend.mk
08bc8956dd24148ba8ab24184e1c81e9f2354d69nd