Makefile revision 1200
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# The contents of this file are subject to the terms of the
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# Common Development and Distribution License (the "License").
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# You may not use this file except in compliance with the License.
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# or http://www.opensolaris.org/os/licensing.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# CDDL HEADER END
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude ../../make-rules/shared-macros.mk
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_NAME= libxslt
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_VERSION= 1.1.27
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_HASH= \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sha256:b6a8d9a421f2630999ca91d9f8c091ee8ea2d580e6be84c1d21b2a45e11e7e26
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic Updaterinclude ../../make-rules/prep.mk
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic Updaterinclude ../../make-rules/configure.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/ips.mk
bbb069be941f649228760edcc241122933c066d2Automatic Updaterinclude ../../make-rules/lint-libraries.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterLINT_FLAGS += -I/usr/include/libxml2
9d330c054e02f52cefd8dc0e71550b0fe07e077eAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += $(CPP_LARGEFILES)
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic UpdaterLDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
3a6600c8d319275d73c36eb625f77103cd83e824Automatic UpdaterCONFIGURE_OPTIONS += --disable-static
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCONFIGURE_OPTIONS += --with-pic
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += --without-crypto
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += --with-html-subdir=html
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_PREP_ACTION = \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews libtoolize --force --copy ; aclocal ; \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater automake --addmissing --copy ; autoconf)
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# After we have configured, make a copy of the python bits so we
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# can build separate python 2.7 support.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# After we have built/installed libxslt, rebuild/install the python
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews# support for python 2.7
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPONENT_POST_INSTALL_ACTION = \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews PYTHON=$(PYTHON.2.7.$(BITS)) \
a8644ebab678a1de66cbfaabb513651a739958afAutomatic Updater PYTHON_VERSION=2.7 \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews PYTHON_INCLUDES=/usr/include/python2.7 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater install)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# common targets
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsbuild: $(BUILD_32_and_64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninstall: $(INSTALL_32_and_64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updatertest: $(TEST_32_and_64)
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
bb93c8542756719b53096b9939e4041d0966026fAutomatic UpdaterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterinclude ../../make-rules/depend.mk
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater