python/manuel: update to 1.13.0
[oi-userland.git] / components / developer / fmtlib / Makefile
blob02b20450291d6d1f18940325dc03cb853568b087
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2023 Friedrich Kink
13 # Copyright 2023 Niklas Poslovski
16 BUILD_STYLE= cmake
17 USE_DEFAULT_TEST_TRANSFORMS= yes
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= fmt
21 COMPONENT_VERSION= 11.0.2
22 COMPONENT_SUMMARY= fmt is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
23 COMPONENT_PROJECT_URL= https://github.com/fmtlib/$(COMPONENT_NAME)
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_VERSION).tar.gz
26 COMPONENT_ARCHIVE_URL= https://github.com/$(COMPONENT_NAME)lib/$(COMPONENT_NAME)/archive/refs/tags/$(COMPONENT_ARCHIVE)
27 COMPONENT_ARCHIVE_HASH= sha256:6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f
28 COMPONENT_FMRI= developer/fmt
29 COMPONENT_CLASSIFICATION=Development/Other Languages
30 COMPONENT_LICENSE= MIT
31 COMPONENT_LICENSE_FILE= LICENSE
33 PATH= $(PATH.gnu)
35 include $(WS_MAKE_RULES)/common.mk
37 COMPONENT_TEST_ENV += TZ=UTC
39 # SPARC needs math library.
40 ifeq ($(MACH), sparc)
41 REQUIRED_PACKAGES += system/library/math
42 endif
44 CMAKE_OPTIONS += -DFMT_MASTER_PROJECT=ON
45 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
46 CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
47 CMAKE_OPTIONS += -DBUILD_STATIC_LIBS=OFF
49 # Auto-generated dependencies
50 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
51 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
52 REQUIRED_PACKAGES += system/library