176b88c4f4
* Use GitHub release tarball as distfile. Changelog: Overview of changes leading to 3.3.1 Monday, January 31, 2022 ==================================== - Fix heap-use-after-free in harfbuzz-subset introduced in previous release. (Garret Rieger) Overview of changes leading to 3.3.0 Monday, January 31, 2022 ==================================== - Improved documentation. (Matthias Clasen) - Internal code cleanup, using C++ standard library more. (Behdad Esfahbod) - The low 16-bits of face index will be used by hb_face_create() to select a face inside a font collection file format, while the high 16-bits will be used by hb_font_create() to load the named instance. (Behdad Esfahbod) - Glyph positions and other font metrics now apply synthetic slant set by hb_font_set_synthetic_slant(), for improved positioning for synthetically slanted fonts. (Behdad Esfahbod) - Fixed unintentional locale dependency in hb_variation_to_string() for decimal point representation. (Matthias Clasen) - When applying pair positioning (kerning) the positioning value is split between the two sides of the pair for improved cursor positioning between such pairs. (Behdad Esfahbod) - Introduced new HB_GLYPH_FLAG_UNSAFE_TO_CONCAT, to be used in conjunction with HB_GLYPH_FLAG_UNSAFE_TO_BREAK for optimizing re-shaping during line breaking. Check the documentation for further details. (Behdad Esfahbod) - Improved handling of macrolanguages when mapping BCP 47 codes to OpenType tags. (David Corbett) - New API: +HB_GLYPH_FLAG_UNSAFE_TO_CONCAT +hb_segment_properties_overlay() +hb_buffer_create_similar() +hb_font_set_synthetic_slant() +hb_font_get_synthetic_slant() +hb_font_get_var_coords_design() Overview of changes leading to 3.2.0 Friday, November 26, 2021 ==================================== "harfbuzz" library improvements: - Fixed shaping of Apple Color Emoji flags in right-to-left context. (Behdad Esfahbod) - Fixed positioning of CFF fonts in HB_TINY profile. (Behdad Esfahbod) - OpenType 1.9 language tags update. (David Corbett) - Add HB_NO_VERTICAL config option. - Add HB_CONFIG_OVERRIDE_H for easier configuration. (Behdad Esfahbod) "harfbuzz-subset" library improvements: - Improved packing of cmap, loca, and Ligature tables. (Garret Rieger) - Significantly improved overflow-resolution strategy in the repacker. (Garret Rieger)
87 lines
2.2 KiB
Makefile
87 lines
2.2 KiB
Makefile
# $NetBSD: Makefile.common,v 1.11 2022/02/04 16:39:36 ryoon Exp $
|
|
# used by fonts/harfbuzz-icu/Makefile
|
|
|
|
DISTNAME= harfbuzz-3.3.1
|
|
CATEGORIES= fonts
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=harfbuzz/}
|
|
GITHUB_RELEASE= ${PKGVERSION_NOREV}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://harfbuzz.github.io/
|
|
LICENSE= mit
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../fonts/harfbuzz/distinfo
|
|
#PATCHDIR= ${.CURDIR}/../../fonts/harfbuzz/patches
|
|
|
|
# C++11
|
|
GCC_REQD+= 4.9
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../graphics/librsvg/available.mk"
|
|
|
|
USE_LANGUAGES= c99 c++
|
|
USE_TOOLS+= pkg-config
|
|
|
|
# cairo/fontconfig are only needed for command line utilities
|
|
MESON_ARGS+= -Dcairo=disabled
|
|
MESON_ARGS+= -Dintrospection=disabled
|
|
MESON_ARGS+= -Dbenchmark=disabled
|
|
|
|
PLIST_VARS+= graphite2
|
|
.if ${LIBRSVG_TYPE} == "rust"
|
|
MESON_ARGS+= -Dgraphite=enabled
|
|
PLIST.graphite2= yes
|
|
.else
|
|
MESON_ARGS+= -Dgraphite=disabled
|
|
.endif
|
|
|
|
PKGCONFIG_OVERRIDE+= output/meson-private/*.pc
|
|
|
|
PKGCONFIG_OVERRIDE_STAGE= pre-install
|
|
|
|
LDFLAGS.OpenBSD+= -lz
|
|
|
|
.include "../../fonts/harfbuzz/options.mk"
|
|
|
|
# gcc too old
|
|
BUILDLINK_TRANSFORM.MirBSD+= rm:-fvisibility-inlines-hidden
|
|
|
|
PLIST_VARS+= coretext
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
. if !empty(OS_VERSION:M[0-8].*)
|
|
# MacOS X < 10.5 does not have CoreText.
|
|
MESON_ARGS+= -Dcoretext=disabled
|
|
|
|
. elif !empty(OS_VERSION:M9.*)
|
|
# MacOS X 10.5 has CoreText but it's
|
|
# buggy. CTLineCreateWithAttributedString() seemingly fails when
|
|
# trying to use a font which isn't installed into the system standard
|
|
# path.
|
|
# See http://forum.libcinder.org/topic/text-not-working-in-leopard-osx-10-5
|
|
MESON_ARGS+= -Dcoretext=disabled
|
|
|
|
. else
|
|
MESON_ARGS+= -Dcoretext=enabled
|
|
PLIST.coretext= yes
|
|
. endif
|
|
.endif
|
|
|
|
PYTHON_FOR_BUILD_ONLY= tool
|
|
REPLACE_PYTHON+= src/*.py
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
.include "../../devel/meson/build.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.8.0
|
|
#.include "../../graphics/cairo/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.if ${LIBRSVG_TYPE} == "rust"
|
|
# graphite2 support breaks graphics/librsvg-c
|
|
.include "../../graphics/graphite2/buildlink3.mk"
|
|
.endif
|
|
.include "../../lang/python/tool.mk"
|