pkgsrc/fonts/harfbuzz/Makefile.common
ryoon 5428de4702 harfbuzz: Update to 2.7.4
Changelog:
2.7.4
    Fix missing --enable-introspection configure option from previous release tarball.
    Documentation updates.

2.7.3
    Update USE shaper to 2020-08-13 specification, and other improvements.
    Don't disable liga feature in myanmar shaper, to match Uniscribe.
    Improvements to language and script tags handling.
    Update language system tag registry to OpenType 1.8.4
    Support for serializing and deserializing Unicode buffers. Serialized buffers
    are now delimited with <> or [] based on whether it is a Unicode or
    glyphs buffer.
    Increase buffer work limits to handle fonts with many complex lookups.
    Handle more shaping operations in trace output.
    Memory access fixes.
    More OOM fixes.
    Improved documentation.
    Build system improvements.
    New API:
    +hb_buffer_has_positions()
    +hb_buffer_serialize()
    +hb_buffer_serialize_unicode()
    +hb_buffer_deserialize_unicode()
2021-01-01 08:58:00 +00:00

87 lines
2.2 KiB
Text

# $NetBSD: Makefile.common,v 1.4 2021/01/01 08:58:00 ryoon Exp $
# used by fonts/harfbuzz-icu/Makefile
DISTNAME= harfbuzz-2.7.4
CATEGORIES= fonts
MASTER_SITES= ${MASTER_SITE_GITHUB:=harfbuzz/}
GITHUB_TAG= ${PKGVERSION_NOREV}
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+= -Dfontconfig=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