Revert "remove tsol from xorg-server"
[unleashed-userland.git] / components / libxslt / Makefile
blob9f4daa96b9e4c071bf9462721f3f551888630bc1
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= libxslt
29 COMPONENT_VERSION= 1.1.28
30 COMPONENT_REVISION= 3
31 COMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
36 COMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxslt/$(COMPONENT_ARCHIVE)
37 COMPONENT_BUGDB= library/libxslt
39 include ../../make-rules/prep.mk
40 include ../../make-rules/configure.mk
41 include ../../make-rules/ips.mk
43 LINT_FLAGS += -I/usr/include/libxml2
45 CFLAGS += $(CPP_LARGEFILES)
46 LDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
48 CONFIGURE_OPTIONS += --disable-static
49 CONFIGURE_OPTIONS += --with-pic
50 CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
51 CONFIGURE_OPTIONS += --without-crypto
52 CONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
53 CONFIGURE_OPTIONS += --with-html-subdir=html
54 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
55 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
56 CONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
58 COMPONENT_PREP_ACTION = \
59 (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
60 $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
61 libtoolize --force --copy ; aclocal ; \
62 automake -f -a --copy ; autoconf)
64 # common targets
65 build: $(BUILD_32_and_64)
67 install: $(INSTALL_32_and_64)
68 $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
70 test: $(TEST_32_and_64)
72 REQUIRED_PACKAGES += SUNWcs
73 REQUIRED_PACKAGES += library/libxml2
74 REQUIRED_PACKAGES += library/libxslt
75 REQUIRED_PACKAGES += runtime/python-27
76 REQUIRED_PACKAGES += system/library
77 REQUIRED_PACKAGES += system/library/math