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
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
18 USE_PARALLEL_BUILD
= yes
20 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_VERSION
= 72.1
24 COMPONENT_REVISION
= 5
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
:a2d2d38217092a7ed56635e34467f92f976b370e20182ad325edea6681a71d68
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_FMRI
= library
/icu
32 COMPONENT_CLASSIFICATION
= System
/Internationalization
33 COMPONENT_LICENSE
= ICU
34 COMPONENT_LICENSE_FILE
= LICENSE
36 # Force gcc version to avoid surprises for already built software
39 include $(WS_MAKE_RULES
)/common.mk
41 # Testing expects GNU diff in PATH
44 # https://unicode-org.atlassian.net/browse/ICU-22629
45 CXXFLAGS
+= -fexcess-precision
=fast
47 COMPONENT_BUILD_TARGETS
= all
49 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/source
/runConfigureICU
51 CONFIGURE_OPTIONS
= Solaris
/GCC
52 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
53 CONFIGURE_OPTIONS
+= --with-data-packaging
=library
54 CONFIGURE_OPTIONS
+= --enable-shared
55 CONFIGURE_OPTIONS
+= --disable-static
56 CONFIGURE_OPTIONS
+= --disable-samples
57 CONFIGURE_OPTIONS
+= --disable-renaming
58 CONFIGURE_OPTIONS
+= --prefix=$(CONFIGURE_PREFIX
)
59 CONFIGURE_OPTIONS
+= --libdir=$(CONFIGURE_LIBDIR.
$(BITS
))
60 CONFIGURE_OPTIONS
+= --bindir=$(CONFIGURE_BINDIR.
$(BITS
))
62 CFLAGS
+= -D__EXTENSIONS__
-DDECCHECK
-D_XOPEN_SOURCE
=600
63 CXXFLAGS
+= -D__EXTENSIONS__
-DDECCHECK
-D_XOPEN_SOURCE
=600 -std
=c
++11
65 COMPONENT_POST_CONFIGURE_ACTION
= \
66 (echo
'CPPFLAGS += -DICU_DATA_DIR=\"$(CONFIGURE_PREFIX)/share/icu/$(COMPONENT_VERSION)\"' >> $(@D
)/icudefs.mk
)
68 COMPONENT_TEST_TRANSFORMS
+= \
70 '-e "/^All tests OK: testdata intltest iotest cintltst/p" ' \
71 '-e "/^PASS: config selfcheck OK/p" '
73 # Auto-generated dependencies
74 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
75 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
76 REQUIRED_PACKAGES
+= system
/library
77 REQUIRED_PACKAGES
+= system
/library
/math