diff options
author | ryoon <ryoon@pkgsrc.org> | 2019-06-02 03:11:30 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2019-06-02 03:11:30 +0000 |
commit | 0300837f054337c6f144fc52613b01120f8247bb (patch) | |
tree | 5957c334ed3197bd4f7b49f9e88540f9bf429bc1 /fonts/harfbuzz | |
parent | 9f70a6abdcf3994605c2dbd48a946f702398f55b (diff) | |
download | pkgsrc-0300837f054337c6f144fc52613b01120f8247bb.tar.gz |
Add graphite2 to librsvg via pango and harfbuzz
librsvg with pango and harfbuzz with graphite2 is required for libreoffice.
librsvg-c has the problem on NetBSD and libreoffice uses internal static
harfbuzz library. Rust-based librsvg has no problem and libreoffice use
dynamic harfbuzz from fonts/harfbuzz.
Bump PKGREVISIONs.
Diffstat (limited to 'fonts/harfbuzz')
-rw-r--r-- | fonts/harfbuzz/Makefile | 20 | ||||
-rw-r--r-- | fonts/harfbuzz/PLIST | 3 |
2 files changed, 17 insertions, 6 deletions
diff --git a/fonts/harfbuzz/Makefile b/fonts/harfbuzz/Makefile index 53935648fbc..a0c5deec4cf 100644 --- a/fonts/harfbuzz/Makefile +++ b/fonts/harfbuzz/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.111 2019/04/07 18:16:07 adam Exp $ +# $NetBSD: Makefile,v 1.112 2019/06/02 03:11:30 ryoon Exp $ DISTNAME= harfbuzz-2.4.0 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= fonts MASTER_SITES= http://www.freedesktop.org/software/harfbuzz/release/ # XXX: 2.4.0 distfile has changed; remove on next update @@ -13,12 +13,20 @@ HOMEPAGE= http://harfbuzz.org/ COMMENT= OpenType text shaping engine LICENSE= mit +.include "../../mk/bsd.prefs.mk" +PLIST_VARS+= graphite2 + USE_LANGUAGES= c c++ USE_LIBTOOL= yes USE_TOOLS+= gmake pkg-config GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-cairo=no +.if !empty(PLATFORM_SUPPORTS_RUST:M[Yy][Ee][Ss]) +CONFIGURE_ARGS+= --with-graphite2=yes +PLIST.graphite2= yes +.else CONFIGURE_ARGS+= --with-graphite2=no +.endif GCC_REQD+= 4.9 PKGCONFIG_OVERRIDE+= src/harfbuzz.pc.in @@ -29,8 +37,6 @@ LDFLAGS.OpenBSD+= -lz .include "options.mk" -.include "../../mk/bsd.prefs.mk" - # gcc too old BUILDLINK_TRANSFORM.MirBSD+= rm:-fvisibility-inlines-hidden @@ -55,12 +61,16 @@ PLIST.coretext= yes . endif .endif +.include "../../lang/rust/platform.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" +.if !empty(PLATFORM_SUPPORTS_RUST:M[Yy][Ee][Ss]) # graphite2 support breaks graphics/librsvg -#.include "../../graphics/graphite2/buildlink3.mk" +.include "../../graphics/graphite2/buildlink3.mk" +.endif .include "../../mk/bsd.pkg.mk" diff --git a/fonts/harfbuzz/PLIST b/fonts/harfbuzz/PLIST index 4e07807cf34..20f34dd71d6 100644 --- a/fonts/harfbuzz/PLIST +++ b/fonts/harfbuzz/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.34 2019/04/02 08:58:47 wiz Exp $ +@comment $NetBSD: PLIST,v 1.35 2019/06/02 03:11:30 ryoon Exp $ bin/hb-ot-shape-closure bin/hb-shape bin/hb-subset @@ -13,6 +13,7 @@ include/harfbuzz/hb-face.h include/harfbuzz/hb-font.h include/harfbuzz/hb-ft.h include/harfbuzz/hb-glib.h +${PLIST.graphite2}include/harfbuzz/hb-graphite2.h ${PLIST.icu}include/harfbuzz/hb-icu.h include/harfbuzz/hb-map.h include/harfbuzz/hb-ot-color.h |