Makefile revision 148
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl#
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# CDDL HEADER START
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl#
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# The contents of this file are subject to the terms of the
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# Common Development and Distribution License (the "License").
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# You may not use this file except in compliance with the License.
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl#
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# or http://www.opensolaris.org/os/licensing.
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# See the License for the specific language governing permissions
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl# and limitations under the License.
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl#
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco# When distributing Covered Code, include this CDDL HEADER in each
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco# If applicable, add the following below this CDDL HEADER, with the
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco# fields enclosed by brackets "[]" replaced with your own identifying
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco# information: Portions Copyright [yyyy] [name of copyright owner]
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco# CDDL HEADER END
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco#
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riescoinclude ../../make-rules/shared-macros.mk
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoCOMPONENT_NAME= libxslt
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoCOMPONENT_VERSION= 1.1.26
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoCOMPONENT_ARCHIVE_HASH= sha1:69f74df8228b504a87e2b257c2d5238281c65154
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riescoinclude ../../make-rules/prep.mk
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riescoinclude ../../make-rules/configure.mk
b9840e4ee6fda6e42fa4ee9f337482ccc4839a39Adrián Riescoinclude ../../make-rules/ips.mk
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoLIBNAME= xslt
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoLIBNAME2= exslt
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoLINTOUT= lint.out
223be434693e8c97e2522ac19155a284b3536035Adrián Riesco
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoCFLAGS += $(CPP_LARGEFILES)
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
223be434693e8c97e2522ac19155a284b3536035Adrián Riesco
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoCONFIGURE_OPTIONS += --disable-static
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoCONFIGURE_OPTIONS += --with-pic
223be434693e8c97e2522ac19155a284b3536035Adrián RiescoCONFIGURE_OPTIONS += --with-threads
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
51c15129e8118fed5c33c334f8df82619ce98e7dAdrián RiescoCONFIGURE_OPTIONS += --without-crypto
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoPKG_PROTO_DIRS += $(COMPONENT_DIR)/$(COMPONENT_SRC)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCOMPONENT_PREP_ACTION = \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco cp ../mapfile.exslt libexslt/libexslt.syms ; \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco libtoolize --force --copy ; aclocal-1.10 ; \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco automake-1.10 --addmissing --copy ; autoconf)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCOMPONENT_POST_BUILD_ACTION = \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco (cd $(@D); $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
aea9000fc94442cbfc92596f4264473c0fce51e4Adrián Riesco -I/usr/include/libxml2 \
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco $(COMPONENT_DIR)/llib-l$(LIBNAME) > $(LINTOUT) 2>&1 ; \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME2) -I$(@D) \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco -I/usr/include/libxml2 \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco $(COMPONENT_DIR)/llib-l$(LIBNAME2) >> $(LINTOUT) 2>&1)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoCOMPONENT_POST_INSTALL_ACTION = \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco (cd $(@D); $(INSTALL) llib-l$(LIBNAME).ln \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) ; \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco $(INSTALL) llib-l$(LIBNAME2).ln \
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)))
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
7474965b2e6323002c96c0b39a59843cde201870Adrián Riesco# common targets
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riescobuild: $(BUILD_32_and_64)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riescoinstall: $(INSTALL_32_and_64)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riescotest: $(TEST_32_and_64)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco$(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco (cd $(@D) ; gmake tests || exit 0)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián RiescoBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
7474965b2e6323002c96c0b39a59843cde201870Adrián Riescoinclude ../../make-rules/depend.mk
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco