jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / libxslt / Makefile
blob42171962de0b8cc9500572467d46677c7bfbb7b7
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.
24 # Copyright (c) 2022, Friedrich Kink. All rights reserved.
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= libxslt
30 HUMAN_VERSION= 1.1.42
31 COMPONENT_SUMMARY= XSLT support for libxml2 (XML toolkit from the GNOME project)
32 COMPONENT_PROJECT_URL= http://xmlsoft.org/XSLT/
33 COMPONENT_ARCHIVE_HASH= sha256:85ca62cac0d41fc77d3f6033da9df6fd73d20ea2fc18b0a3609ffb4110e1baeb
34 COMPONENT_FMRI= library/libxslt
35 COMPONENT_CLASSIFICATION= System/Libraries
36 COMPONENT_LICENSE= MIT
37 COMPONENT_LICENSE_FILE= Copyright
39 include $(WS_MAKE_RULES)/gnome.mk
40 include $(WS_MAKE_RULES)/common.mk
42 CFLAGS += $(CPP_LARGEFILES)
43 LDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
45 CONFIGURE_OPTIONS += --disable-static
46 CONFIGURE_OPTIONS += --with-pic
47 CONFIGURE_OPTIONS += --with-python=$(PYTHON)
48 CONFIGURE_OPTIONS += --with-crypto
49 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
50 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
51 CONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
53 CONFIGURE_ENV += PYTHON=$(PYTHON)
54 COMPONENT_INSTALL_ARGS += pythondir=$(PYTHON_VENDOR_PACKAGES)
55 COMPONENT_INSTALL_ARGS += pyexecdir=$(PYTHON_VENDOR_PACKAGES)
56 COMPONENT_BUILD_ARGS += pythondir=$(PYTHON_VENDOR_PACKAGES)
57 COMPONENT_BUILD_ARGS += pyexecdir=$(PYTHON_VENDOR_PACKAGES)
59 CONFIGURE_ENV += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
61 COMPONENT_PREP_ACTION = \
62 (cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
63 $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
64 PATH="$(PATH)" libtoolize --force --copy ; aclocal ; \
65 automake -f -a --copy ; autoconf)
67 # After we have built/installed libxml2, build/install the python
68 # support for python (only 64 bit is available)
69 COMPONENT_POST_INSTALL_ACTION = ( \
70 cd $(@D)/python; \
71 $(GMAKE) pythondir=$(PYTHON_VENDOR_PACKAGES) \
72 pyexecdir=$(PYTHON_VENDOR_PACKAGES) \
73 DESTDIR=$(PROTO_DIR) \
74 install ; \
75 $(MV) $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)/libxsltmod.so $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)/libxsltmod.cpython-$(subst .,,$(PYTHON_VERSION)).so; \
76 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES); \
79 # system-test should really use system version library
80 COMPONENT_PRE_SYSTEM_TEST_ACTION = ($(RM) $(@D)/libxslt/.libs/*)
82 # It's nice to test also python modules (LC_ALL is set to avoid test failure).
83 COMPONENT_POST_TEST_ACTION = \
84 cd $(@D)/python; \
85 LC_ALL=en_US.UTF-8 $(GMAKE) $(COMPONENT_TEST_ARGS) check
87 COMPONENT_TEST_TRANSFORMS = \
88 '-e "/^-- /p" ' \
89 '-e "/^OK /p" ' \
90 '-e "/^\#\# Running .* tests/p" ' \
91 '-e "/^\#\# running Python regression tests/p" ' \
92 '-e "/ result /p" ' \
93 '-e "/failed/p" ' \
94 '-e "/.*/d" '
96 # Auto-generated dependencies
97 REQUIRED_PACKAGES += library/libxml2
98 REQUIRED_PACKAGES += library/security/libgpg-error
99 REQUIRED_PACKAGES += shell/ksh93
100 REQUIRED_PACKAGES += system/library
101 REQUIRED_PACKAGES += system/library/math
102 REQUIRED_PACKAGES += system/library/security/libgcrypt