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