python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / libexpat / Makefile
blob19c2e61c0821ec6f718cad3fca365d92be7c9e40
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, 2012, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2017, Aurelien Larcher
25 # Copyright (c) 2019, Michal Nowak
28 BUILD_BITS= 64_and_32
29 USE_PARALLEL_BUILD= yes
30 USE_DEFAULT_TEST_TRANSFORMS= yes
31 include ../../../make-rules/shared-macros.mk
33 COMPONENT_NAME= expat
34 COMPONENT_VERSION= 2.6.4
35 COMPONENT_VERSION_U= $(subst .,_,$(COMPONENT_VERSION))
36 COMPONENT_SUMMARY= libexpat - XML parser library
37 COMPONENT_DESCRIPTION= A fast, non-validating, stream-oriented XML parsing library
38 COMPONENT_PROJECT_URL= https://libexpat.github.io
39 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
40 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.lz
41 COMPONENT_ARCHIVE_HASH= sha256:80a5bec283c7cababb3c6ec145feb4f34a7741eae69f9e6654cc82f5890f05e2
42 COMPONENT_ARCHIVE_URL= https://github.com/libexpat/libexpat/releases/download/R_$(COMPONENT_VERSION_U)/$(COMPONENT_ARCHIVE)
43 COMPONENT_FMRI= library/expat
44 COMPONENT_CLASSIFICATION= System/Libraries
45 COMPONENT_LICENSE= MIT
46 COMPONENT_LICENSE_FILE= COPYING
48 COMPONENT_FMRI.$(COMPONENT_NAME)-32 = $(COMPONENT_FMRI)/32
49 COMPONENT_SUMMARY.$(COMPONENT_NAME)-32 = $(COMPONENT_SUMMARY) (32-bit)
51 include $(WS_MAKE_RULES)/common.mk
53 CFLAGS += $(CPP_LARGEFILES)
55 CONFIGURE_OPTIONS += --disable-static
57 # Drop 32-bit binaries
58 COMPONENT_POST_INSTALL_ACTION.32 += $(RM) -r $(PROTOUSRBINDIR32) ;
60 # Workaround for the following expat bug:
61 # https://github.com/libexpat/libexpat/issues/501
62 COMPONENT_POST_INSTALL_ACTION.64 += \
63 $(GSED) -i -e '/^get_filename_component.*CMAKE/{n; p;}' $(PROTOUSRLIBDIR64)/cmake/$(COMPONENT_SRC)/expat.cmake ; \
64 $(GSED) -i -e 's/$(MACH64)/lib\/&/' $(PROTOUSRLIBDIR64)/cmake/$(COMPONENT_SRC)/expat-noconfig.cmake ;
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES += system/library