Makefile revision 1652
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# CDDL HEADER START
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# The contents of this file are subject to the terms of the
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# Common Development and Distribution License (the "License").
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# You may not use this file except in compliance with the License.
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# See the License for the specific language governing permissions
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# and limitations under the License.
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# When distributing Covered Code, include this CDDL HEADER in each
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# If applicable, add the following below this CDDL HEADER, with the
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# fields enclosed by brackets "[]" replaced with your own identifying
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# information: Portions Copyright [yyyy] [name of copyright owner]
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# CDDL HEADER END
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States#
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
7b59d02d2a384be9a08087b14defadd214b3c1ddjb sha256:fd3c64cb66f2c4ea27e934d275904d92cec494a8e8405613780cbc8a71680fdb
7b59d02d2a384be9a08087b14defadd214b3c1ddjbCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# W3C XML Conformance Test Suites
7b59d02d2a384be9a08087b14defadd214b3c1ddjb sha256:96151685cec997e1f9f3387e3626d61e6284d4d6e66e0e440c209286c03e9cc7
7b59d02d2a384be9a08087b14defadd214b3c1ddjbCOMPONENT_ARCHIVE_URL_1= http://www.w3.org/XML/Test/$(COMPONENT_ARCHIVE_1)
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# Cannot link to lzma since it's not in /lib.
7b59d02d2a384be9a08087b14defadd214b3c1ddjbCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
7b59d02d2a384be9a08087b14defadd214b3c1ddjbCOMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoreconf -if)
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# After we have configured, make a copy of the python bits so we
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# can build and test separate python 2.7 support.
7b59d02d2a384be9a08087b14defadd214b3c1ddjbCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7 ; \
7b59d02d2a384be9a08087b14defadd214b3c1ddjb $(GSED) -i -e 's/2[.]6/2.7/g' `find python2.7 -name Makefile`)
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# After we have built/installed libxml2, build/install the python
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# support for python 2.7
7b59d02d2a384be9a08087b14defadd214b3c1ddjb (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# It's nice to test also python 2.7 module.
7b59d02d2a384be9a08087b14defadd214b3c1ddjb (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_TEST_ARGS) test)
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# We have patched our 64 bit python so it will search for modules only in
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# '64/' directories. Now we need to provide one. Otherwise python will
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# end up using libxml2mod.so installed on system.
7b59d02d2a384be9a08087b14defadd214b3c1ddjb$(BUILD_DIR)/$(MACH64)/.tested: COMPONENT_PRE_TEST_ACTION = ( \
7b59d02d2a384be9a08087b14defadd214b3c1ddjb $(MKDIR) $(@D)/python/.libs/64 $(@D)/python2.7/.libs/64; \
7b59d02d2a384be9a08087b14defadd214b3c1ddjb $(SYMLINK) ../libxml2mod.so $(@D)/python/.libs/64/libxml2mod.so; \
8d7e41661dc4633488e93b13363137523ce59977jose borrego $(SYMLINK) ../libxml2mod.so $(@D)/python2.7/.libs/64/libxml2mod.so);
7b59d02d2a384be9a08087b14defadd214b3c1ddjb (cd $(@D) ; gtar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1));
7b59d02d2a384be9a08087b14defadd214b3c1ddjb# common targets
7b59d02d2a384be9a08087b14defadd214b3c1ddjb $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages