gst-libav1: update to 1.24.9
[oi-userland.git] / components / library / icu-74 / Makefile
bloba7858d0be0c6209fdec96de08ef71b993f3247c7
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Alexander Pyhalov
14 # Copyright 2021, 2023 Andreas Wacknitz
17 BUILD_BITS= 64_and_32
18 USE_PARALLEL_BUILD = yes
20 include ../../../make-rules/shared-macros.mk
22 COMPONENT_NAME = icu
23 COMPONENT_VERSION = 74.2
24 COMPONENT_REVISION = 2
25 COMPONENT_SUMMARY = International Components for Unicode
26 COMPONENT_SRC = $(COMPONENT_NAME)
27 COMPONENT_ARCHIVE = icu4c-$(subst .,_,$(HUMAN_VERSION))-src.tgz
28 COMPONENT_ARCHIVE_HASH = sha256:68db082212a96d6f53e35d60f47d38b962e9f9d207a74cfac78029ae8ff5e08c
29 COMPONENT_PROJECT_URL = https://icu.unicode.org/
30 COMPONENT_ARCHIVE_URL = https://github.com/unicode-org/icu/releases/download/release-$(subst .,-,$(HUMAN_VERSION))/$(COMPONENT_ARCHIVE)
31 COMPONENT_VERSION_MAJOR = $(firstword $(subst ., ,$(HUMAN_VERSION)))
32 COMPONENT_FMRI = library/icu-$(COMPONENT_VERSION_MAJOR)
33 COMPONENT_CLASSIFICATION = System/Internationalization
34 COMPONENT_LICENSE = ICU
35 COMPONENT_LICENSE_FILE = LICENSE
37 COMPONENT_FMRI.library-32 = $(COMPONENT_FMRI)/32
38 COMPONENT_SUMMARY.library-32 = $(COMPONENT_SUMMARY) (32-bit)
40 include $(WS_MAKE_RULES)/common.mk
42 # Testing expects GNU diff in PATH
43 PATH = $(PATH.gnu)
45 # https://unicode-org.atlassian.net/browse/ICU-22629
46 CXXFLAGS += -fexcess-precision=fast
48 COMPONENT_BUILD_TARGETS = all
50 CONFIGURE_SCRIPT = $(SOURCE_DIR)/source/runConfigureICU
52 CONFIGURE_OPTIONS = Solaris/GCC
53 CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
54 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
55 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
56 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
57 CONFIGURE_OPTIONS += --with-data-packaging=library
58 CONFIGURE_OPTIONS += --enable-shared
59 CONFIGURE_OPTIONS += --disable-static
60 CONFIGURE_OPTIONS += --disable-samples
61 CONFIGURE_OPTIONS += --enable-renaming
63 COMPONENT_TEST_TRANSFORMS += \
64 '-n ' \
65 '-e "/^All tests OK: testdata intltest iotest cintltst/p" ' \
66 '-e "/^PASS: config selfcheck OK/p" '
68 # Replace COMPONENT_VERSION_MAJOR in library symlink path
69 GENERATE_EXTRA_CMD += | \
70 $(GSED) -e 's|^\(link .*path=usr/lib/.*lib.*\.so\.\)$(COMPONENT_VERSION_MAJOR) |\1$$(COMPONENT_VERSION_MAJOR) |'
71 PKG_MACROS += COMPONENT_VERSION_MAJOR=$(COMPONENT_VERSION_MAJOR)
73 # Sanity check
74 ifneq ($(strip $(COMPONENT_FMRI.developer)),)
75 ifneq ($(strip $(COMPONENT_VERSION_MAJOR)),$(strip $(ICU_VERSION)))
76 $(error ICU_VERSION does not match developer/icu version)
77 endif
78 endif
80 # Auto-generated dependencies
81 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
82 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
83 REQUIRED_PACKAGES += system/library
84 REQUIRED_PACKAGES += system/library/math