Makefile revision 155
1336N/A#
1336N/A# CDDL HEADER START
1336N/A#
1336N/A# The contents of this file are subject to the terms of the
1336N/A# Common Development and Distribution License (the "License").
1336N/A# You may not use this file except in compliance with the License.
1336N/A#
1336N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1336N/A# or http://www.opensolaris.org/os/licensing.
1336N/A# See the License for the specific language governing permissions
1336N/A# and limitations under the License.
1336N/A#
1336N/A# When distributing Covered Code, include this CDDL HEADER in each
1336N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1336N/A# If applicable, add the following below this CDDL HEADER, with the
1336N/A# fields enclosed by brackets "[]" replaced with your own identifying
1336N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1336N/A#
1336N/A# CDDL HEADER END
1336N/A#
1336N/A
1336N/A#
3639N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1336N/A#
1336N/A
1336N/Ainclude ../../make-rules/shared-macros.mk
1336N/A
1336N/ACOMPONENT_NAME= libxslt
3998N/ACOMPONENT_VERSION= 1.1.26
1336N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1336N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1336N/ACOMPONENT_ARCHIVE_HASH= sha1:69f74df8228b504a87e2b257c2d5238281c65154
1336N/ACOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
3998N/A
1336N/Ainclude ../../make-rules/prep.mk
1336N/Ainclude ../../make-rules/configure.mk
1336N/Ainclude ../../make-rules/ips.mk
3998N/A
2818N/ALIBNAME= xslt
3817N/ALIBNAME2= exslt
3817N/ALINTOUT= lint.out
3817N/A
1336N/ACFLAGS += $(CPP_LARGEFILES)
2790N/ALDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
2790N/A
4970N/ACONFIGURE_OPTIONS += --disable-static
4970N/ACONFIGURE_OPTIONS += --with-pic
4970N/ACONFIGURE_OPTIONS += --with-threads
4970N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
4970N/ACONFIGURE_OPTIONS += --without-crypto
4970N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4970N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
4970N/ACONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
4704N/A
4704N/ACOMPONENT_PREP_ACTION = \
4704N/A (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
1699N/A cp ../mapfile.exslt libexslt/libexslt.syms ; \
3639N/A $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
3639N/A libtoolize --force --copy ; aclocal-1.10 ; \
3639N/A automake-1.10 --addmissing --copy ; autoconf)
4704N/A
4704N/ACOMPONENT_POST_BUILD_ACTION = \
4704N/A (cd $(@D); $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
4704N/A -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
5026N/A -I/usr/include/libxml2 \
4704N/A $(COMPONENT_DIR)/llib-l$(LIBNAME) > $(LINTOUT) 2>&1 ; \
4704N/A $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME2) -I$(@D) \
4704N/A -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
3639N/A -I/usr/include/libxml2 \
4704N/A $(COMPONENT_DIR)/llib-l$(LIBNAME2) >> $(LINTOUT) 2>&1)
4704N/A
4704N/ACOMPONENT_POST_INSTALL_ACTION = \
4585N/A (cd $(@D); $(INSTALL) llib-l$(LIBNAME).ln \
4585N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) ; \
2790N/A $(INSTALL) llib-l$(LIBNAME2).ln \
1336N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)))
2790N/A
1336N/A# common targets
2790N/Abuild: $(BUILD_32_and_64)
1336N/A
4585N/Ainstall: $(INSTALL_32_and_64)
3998N/A
3817N/Atest: $(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