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]
23 # Copyright (c) 2015-2018, Aurelien Larcher. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2021-2023, Andreas Wacknitz
30 include ..
/..
/..
/make-rules
/shared-macros.mk
32 COMPONENT_NAME
= harfbuzz
33 COMPONENT_VERSION
= 8.2.1
34 COMPONENT_FMRI
= library
/c
++/harfbuzz
35 COMPONENT_SUMMARY
= HarfBuzz
- an OpenType text shaping engine.
36 COMPONENT_CLASSIFICATION
=System
/Libraries
37 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
38 COMPONENT_PROJECT_URL
= https
://www.freedesktop.org
/wiki
/Software
/HarfBuzz
/
39 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
40 COMPONENT_ARCHIVE_HASH
= sha256
:0fec78f98c9c8faf228957a201c8846f809452c20f8445eb092a1ba6f22dbea5
41 COMPONENT_ARCHIVE_URL
= https
://github.com
/harfbuzz
/harfbuzz
/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
42 COMPONENT_LICENSE
= MIT
43 COMPONENT_LICENSE_FILE
= COPYING
45 include $(WS_MAKE_RULES
)/common.mk
49 # We want graphite2 support:
50 CONFIGURE_OPTIONS
+= -Dgraphite
=enabled
51 # Creating documentation fails:
52 CONFIGURE_OPTIONS
+= -Ddocs
=disabled
53 # We don't have gobject-introspection for 32-bit:
54 CONFIGURE_OPTIONS
.32 += -Dintrospection
=disabled
55 # Building benchmark fails:
56 CONFIGURE_OPTIONS
.64 += -Dbenchmark
=disabled
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))"
68 COMPONENT_TEST_TRANSFORMER
= $(NAWK
)
69 COMPONENT_TEST_TRANSFORMS
= "'/Ok:|Expected Fail:|Fail:|Unexpected Pass:|Skipped:|Timeout:/'"
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
+= library
/c
++/graphite2
77 REQUIRED_PACKAGES
+= library
/desktop
/cairo
78 REQUIRED_PACKAGES
+= library
/glib2
79 REQUIRED_PACKAGES
+= library
/icu
80 REQUIRED_PACKAGES
+= system
/library
81 REQUIRED_PACKAGES
+= system
/library
/freetype-2
82 REQUIRED_PACKAGES
+= system
/library
/math