summaryrefslogtreecommitdiff
path: root/fonts/harfbuzz
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2019-06-08 19:53:26 +0000
committerleot <leot@pkgsrc.org>2019-06-08 19:53:26 +0000
commit662c3a4a4fdb7d4544f5e90dd92541caba428ef0 (patch)
tree86274579c0c3920f48f36bbea0bc0aba2b42fcdd /fonts/harfbuzz
parent1e44ca4464c092dfd63804d2365b4be403569125 (diff)
downloadpkgsrc-662c3a4a4fdb7d4544f5e90dd92541caba428ef0.tar.gz
*: use LIBRSVG_TYPE instead of PLATFORM_SUPPORTS_RUST
Diffstat (limited to 'fonts/harfbuzz')
-rw-r--r--fonts/harfbuzz/Makefile8
-rw-r--r--fonts/harfbuzz/buildlink3.mk6
2 files changed, 7 insertions, 7 deletions
diff --git a/fonts/harfbuzz/Makefile b/fonts/harfbuzz/Makefile
index 2d4554d3f46..cbef95b7f39 100644
--- a/fonts/harfbuzz/Makefile
+++ b/fonts/harfbuzz/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.113 2019/06/03 12:27:48 ryoon Exp $
+# $NetBSD: Makefile,v 1.114 2019/06/08 19:53:26 leot Exp $
DISTNAME= harfbuzz-2.4.0
PKGREVISION= 3
@@ -15,14 +15,14 @@ LICENSE= mit
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= graphite2
-.include "../../lang/rust/platform.mk"
+.include "../../graphics/librsvg/available.mk"
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])
+.if ${LIBRSVG_TYPE} == "rust"
CONFIGURE_ARGS+= --with-graphite2=yes
PLIST.graphite2= yes
.else
@@ -68,7 +68,7 @@ PLIST.coretext= yes
#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])
+.if ${LIBRSVG_TYPE} == "rust"
# graphite2 support breaks graphics/librsvg
.include "../../graphics/graphite2/buildlink3.mk"
.endif
diff --git a/fonts/harfbuzz/buildlink3.mk b/fonts/harfbuzz/buildlink3.mk
index 63d95a0eb73..cfd1256a682 100644
--- a/fonts/harfbuzz/buildlink3.mk
+++ b/fonts/harfbuzz/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.10 2019/06/03 12:27:48 ryoon Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2019/06/08 19:53:26 leot Exp $
BUILDLINK_TREE+= harfbuzz
.if !defined(HARFBUZZ_BUILDLINK3_MK)
HARFBUZZ_BUILDLINK3_MK:=
-.include "../../lang/rust/platform.mk"
+.include "../../graphics/librsvg/available.mk"
BUILDLINK_API_DEPENDS.harfbuzz+= harfbuzz>=2.1.1
BUILDLINK_ABI_DEPENDS.harfbuzz+= harfbuzz>=2.1.1
@@ -13,7 +13,7 @@ BUILDLINK_PKGSRCDIR.harfbuzz?= ../../fonts/harfbuzz
.include "../../devel/glib2/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
-.if !empty(PLATFORM_SUPPORTS_RUST:M[Yy][Ee][Ss])
+.if ${LIBRSVG_TYPE} == "rust"
.include "../../graphics/graphite2/buildlink3.mk"
.endif
.endif # HARFBUZZ_BUILDLINK3_MK