2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# CDDL HEADER START
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# The contents of this file are subject to the terms of the
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# Common Development and Distribution License (the "License").
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# You may not use this file except in compliance with the License.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# or http://www.opensolaris.org/os/licensing.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# See the License for the specific language governing permissions
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# and limitations under the License.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# When distributing Covered Code, include this CDDL HEADER in each
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# If applicable, add the following below this CDDL HEADER, with the
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# CDDL HEADER END
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinclude ../../make-rules/shared-macros.mk
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_NAME= libxslt
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_VERSION= 1.1.28
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_ARCHIVE_HASH= \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_BUGDB= library/libxslt
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncTPNO= 17982
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinclude $(WS_MAKE_RULES)/prep.mk
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinclude $(WS_MAKE_RULES)/configure.mk
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinclude $(WS_MAKE_RULES)/ips.mk
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinclude $(WS_MAKE_RULES)/lint-libraries.mk
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncLINT_FLAGS += -I$(COMPONENT_DIR)/../libxml2/build/prototype/$(MACH)/$(USRINCDIR)/libxml2
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCFLAGS += $(CPP_LARGEFILES)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# When 2.6 goes away, we can remove the version line below, as well as the
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncPYTHON_VERSION=2.6
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += --disable-static
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += --with-pic
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += --without-crypto
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += --with-html-subdir=html
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_PREP_ACTION = \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync libtoolize --force --copy ; aclocal ; \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync automake --addmissing --copy ; autoconf)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# After we have configured, make a copy of the python bits so we
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# can build separate python 2.7 support.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# After we have built/installed libxslt, rebuild/install the python
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# support for python 2.7
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncCOMPONENT_POST_INSTALL_ACTION = \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync PYTHON=$(PYTHON.2.7.$(BITS)) \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync PYTHON_VERSION=2.7 \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync PYTHON_INCLUDES=/usr/include/python2.7 \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync install)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# common targets
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncbuild: $(BUILD_32_and_64)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinstall: $(INSTALL_32_and_64)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsynctest: $(TEST_32_and_64)
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += library/libxml2
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += library/libxslt
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += runtime/python-26
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += runtime/python-27
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += shell/ksh93
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += system/library
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += system/library/math
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncREQUIRED_PACKAGES += system/linker
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync