Makefile revision 148
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER START
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f808c858fa61e7769218966759510a8b1190dfcfraf# or http://www.opensolaris.org/os/licensing.
f808c858fa61e7769218966759510a8b1190dfcfraf# See the License for the specific language governing permissions
f808c858fa61e7769218966759510a8b1190dfcfraf# and limitations under the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# When distributing Covered Code, include this CDDL HEADER in each
f808c858fa61e7769218966759510a8b1190dfcfraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f808c858fa61e7769218966759510a8b1190dfcfraf# If applicable, add the following below this CDDL HEADER, with the
f808c858fa61e7769218966759510a8b1190dfcfraf# fields enclosed by brackets "[]" replaced with your own identifying
f808c858fa61e7769218966759510a8b1190dfcfraf# information: Portions Copyright [yyyy] [name of copyright owner]
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER END
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
f808c858fa61e7769218966759510a8b1190dfcfraf#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude ../../make-rules/shared-macros.mk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_NAME= libxslt
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_VERSION= 1.1.26
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE_HASH= sha1:69f74df8228b504a87e2b257c2d5238281c65154
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude ../../make-rules/prep.mk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude ../../make-rules/configure.mk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude ../../make-rules/ips.mk
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafLIBNAME= xslt
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiLIBNAME2= exslt
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiLINTOUT= lint.out
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCFLAGS += $(CPP_LARGEFILES)
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += --disable-static
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += --with-pic
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += --with-threads
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += --without-crypto
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiPKG_PROTO_DIRS += $(COMPONENT_DIR)/$(COMPONENT_SRC)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
3ed623140e27064f81020d9d47f9fb17489d1190Ali BahramiCOMPONENT_PREP_ACTION = \
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami cp ../mapfile.exslt libexslt/libexslt.syms ; \
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami libtoolize --force --copy ; aclocal-1.10 ; \
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami automake-1.10 --addmissing --copy ; autoconf)
3ed623140e27064f81020d9d47f9fb17489d1190Ali Bahrami
f808c858fa61e7769218966759510a8b1190dfcfrafCOMPONENT_POST_BUILD_ACTION = \
f808c858fa61e7769218966759510a8b1190dfcfraf (cd $(@D); $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
f808c858fa61e7769218966759510a8b1190dfcfraf -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
f808c858fa61e7769218966759510a8b1190dfcfraf -I/usr/include/libxml2 \
f808c858fa61e7769218966759510a8b1190dfcfraf $(COMPONENT_DIR)/llib-l$(LIBNAME) > $(LINTOUT) 2>&1 ; \
f808c858fa61e7769218966759510a8b1190dfcfraf $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME2) -I$(@D) \
f808c858fa61e7769218966759510a8b1190dfcfraf -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
f808c858fa61e7769218966759510a8b1190dfcfraf -I/usr/include/libxml2 \
f808c858fa61e7769218966759510a8b1190dfcfraf $(COMPONENT_DIR)/llib-l$(LIBNAME2) >> $(LINTOUT) 2>&1)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafCOMPONENT_POST_INSTALL_ACTION = \
f808c858fa61e7769218966759510a8b1190dfcfraf (cd $(@D); $(INSTALL) llib-l$(LIBNAME).ln \
f808c858fa61e7769218966759510a8b1190dfcfraf $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) ; \
f808c858fa61e7769218966759510a8b1190dfcfraf $(INSTALL) llib-l$(LIBNAME2).ln \
f808c858fa61e7769218966759510a8b1190dfcfraf $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)))
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf# common targets
f808c858fa61e7769218966759510a8b1190dfcfrafbuild: $(BUILD_32_and_64)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinstall: $(INSTALL_32_and_64)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraftest: $(TEST_32_and_64)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf$(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built
f808c858fa61e7769218966759510a8b1190dfcfraf (cd $(@D) ; gmake tests || exit 0)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinclude ../../make-rules/depend.mk
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf