summaryrefslogtreecommitdiff
path: root/fonts/harfbuzz/Makefile
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-08-08 19:11:13 +0000
committernia <nia@pkgsrc.org>2020-08-08 19:11:13 +0000
commit15f037a4a9e1afa33483d4acb44302de4710028a (patch)
tree141cf1f9c236c0a02bb0e8a5a0f1ed6168868482 /fonts/harfbuzz/Makefile
parente226ea2c7c1ab290016fedd8da22b8e77582928c (diff)
downloadpkgsrc-15f037a4a9e1afa33483d4acb44302de4710028a.tar.gz
harfbuzz: Update to 2.7.0
Overview of changes leading to 2.7.0 Saturday, July 25, 2020 ==================================== - Use an implementation for round that always rounds up, some minor fluctuations are expected on var font specially when hb-ot callback is used. - Fix an AAT's `kerx` issue on broken rendering of Devanagari Sangam MN. - Remove AAT's `lcar` table support from _get_ligature_carets API, not even much use on macOS installed fonts (only two files). GDEF support is the recommended one and expected to work properly after issues fixed two releases ago. - Minor memory fixes to handle OOM better specially in hb-ft. - Minor .so files versioning scheme change and remove stable/unstable scheme differences, was never used in practice (always default to stable scheme). - We are now suggesting careful packaging of the library using meson, https://github.com/harfbuzz/harfbuzz/wiki/Notes-on-migration-to-meson for more information. - Distribution package URL is changed, either use GitHub generated tarballs, `https://github.com/harfbuzz/harfbuzz/archive/$pkgver.tar.gz` or, even more preferably use commit hash of the release and git checkouts like, `git+https://github.com/harfbuzz/harfbuzz#commit=$commit`
Diffstat (limited to 'fonts/harfbuzz/Makefile')
-rw-r--r--fonts/harfbuzz/Makefile43
1 files changed, 24 insertions, 19 deletions
diff --git a/fonts/harfbuzz/Makefile b/fonts/harfbuzz/Makefile
index 9c190640e20..a3902d6a620 100644
--- a/fonts/harfbuzz/Makefile
+++ b/fonts/harfbuzz/Makefile
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.130 2020/06/29 13:44:02 nia Exp $
+# $NetBSD: Makefile,v 1.131 2020/08/08 19:11:13 nia Exp $
-DISTNAME= harfbuzz-2.6.8
+DISTNAME= harfbuzz-2.7.0
CATEGORIES= fonts
MASTER_SITES= ${MASTER_SITE_GITHUB:=harfbuzz/}
-GITHUB_RELEASE= ${PKGVERSION_NOREV}
-EXTRACT_SUFX= .tar.xz
+GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://harfbuzz.github.io/
@@ -15,24 +14,28 @@ LICENSE= mit
GCC_REQD+= 4.9
.include "../../mk/bsd.prefs.mk"
-PLIST_VARS+= graphite2
.include "../../graphics/librsvg/available.mk"
-USE_LANGUAGES= c c++11
-USE_LIBTOOL= yes
-USE_TOOLS+= gmake pkg-config
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-cairo=no
+USE_LANGUAGES= c 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
+
+PLIST_VARS+= graphite2
.if ${LIBRSVG_TYPE} == "rust"
-CONFIGURE_ARGS+= --with-graphite2=yes
+MESON_ARGS+= -Dgraphite=enabled
PLIST.graphite2= yes
.else
-CONFIGURE_ARGS+= --with-graphite2=no
+MESON_ARGS+= -Dgraphite=disabled
.endif
-PKGCONFIG_OVERRIDE+= src/harfbuzz.pc.in
-PKGCONFIG_OVERRIDE+= src/harfbuzz-icu.pc.in
-PKGCONFIG_OVERRIDE+= src/harfbuzz-subset.pc.in
+PKGCONFIG_OVERRIDE+= output/meson-private/*.pc
+
+PKGCONFIG_OVERRIDE_STAGE= pre-install
LDFLAGS.OpenBSD+= -lz
@@ -46,7 +49,7 @@ PLIST_VARS+= coretext
.if ${OPSYS} == "Darwin"
. if !empty(OS_VERSION:M[0-8].*)
# MacOS X < 10.5 does not have CoreText.
-CONFIGURE_ARGS+= --with-coretext=no
+MESON_ARGS+= -Dcoretext=disabled
. elif !empty(OS_VERSION:M9.*)
# MacOS X 10.5 has CoreText but it's
@@ -54,17 +57,19 @@ CONFIGURE_ARGS+= --with-coretext=no
# 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
-CONFIGURE_ARGS+= --with-coretext=no
+MESON_ARGS+= -Dcoretext=disabled
. else
-CONFIGURE_ARGS+= --with-coretext=yes
+MESON_ARGS+= -Dcoretext=enabled
PLIST.coretext= yes
. endif
.endif
+PYTHON_FOR_BUILD_ONLY= tool
+
+.include "../../devel/meson/build.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
-#cairo is only needed for the hb-view command line utility
#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.8.0
#.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"