firefox: update to 128.0.3
[oi-userland.git] / components / library / harfbuzz / Makefile
blobf6604101dcf984708eb1df7a3e52f7a8d8bfeecb
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.illumos.org/license/CDDL.
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) 2015-2018, Aurelien Larcher. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2021-2023, Andreas Wacknitz
28 BUILD_STYLE= meson
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= harfbuzz
32 COMPONENT_VERSION= 9.0.0
33 COMPONENT_FMRI= library/c++/harfbuzz
34 COMPONENT_SUMMARY= HarfBuzz - an OpenType text shaping engine.
35 COMPONENT_CLASSIFICATION=System/Libraries
36 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
37 COMPONENT_PROJECT_URL= https://www.freedesktop.org/wiki/Software/HarfBuzz/
38 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
39 COMPONENT_ARCHIVE_HASH= sha256:a41b272ceeb920c57263ec851604542d9ec85ee3030506d94662067c7b6ab89e
40 COMPONENT_ARCHIVE_URL= https://github.com/harfbuzz/harfbuzz/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
41 COMPONENT_LICENSE= MIT
42 COMPONENT_LICENSE_FILE= COPYING
44 include $(WS_MAKE_RULES)/common.mk
46 PATH= $(PATH.gnu)
48 # We want graphite2 support:
49 CONFIGURE_OPTIONS += -Dgraphite=enabled
50 # Creating documentation fails:
51 CONFIGURE_OPTIONS += -Ddocs=disabled
52 # We don't have gobject-introspection for 32-bit:
53 CONFIGURE_OPTIONS.32 += -Dintrospection=disabled
54 # Building benchmark fails:
55 CONFIGURE_OPTIONS.64 += -Dbenchmark=disabled
57 CXXFLAGS += -std=c++17
58 LDFLAGS += -lm
60 # Workaround for build failures due to pango Makefiles not passing CFLAGS or
61 # LDFLAGS, especially the -m32/64 flag, to g-ir-scanner
62 COMPONENT_BUILD_ENV += CC="$(strip $(CC))"
63 COMPONENT_BUILD_ENV += CFLAGS="$(strip $(CFLAGS))"
64 COMPONENT_BUILD_ENV += LDFLAGS="$(strip $(LDFLAGS))"
66 unexport SHELLOPTS
68 COMPONENT_TEST_TRANSFORMER = $(NAWK)
69 COMPONENT_TEST_TRANSFORMS = "'/Ok:|Expected Fail:|Fail:|Unexpected Pass:|Skipped:|Timeout:/'"
71 # Build dependencies
72 # Make sure the following package is synchronized with library/icu at major version changes
73 REQUIRED_PACKAGES += developer/icu
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += $(ICU_LIBRARY_PKG)
77 REQUIRED_PACKAGES += library/c++/graphite2
78 REQUIRED_PACKAGES += library/desktop/cairo
79 REQUIRED_PACKAGES += library/glib2
80 REQUIRED_PACKAGES += system/library
81 REQUIRED_PACKAGES += system/library/freetype-2
82 REQUIRED_PACKAGES += system/library/math