aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/fonts.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/Mk/Uses/fonts.mk b/Mk/Uses/fonts.mk
new file mode 100644
index 000000000000..377f087c87d3
--- /dev/null
+++ b/Mk/Uses/fonts.mk
@@ -0,0 +1,18 @@
+# $FreeBSD$
+#
+# handle fonts
+# Feature: fonts
+# Usage: USES=fonts
+
+.if !defined(_INCLUDE_USES_FONTS_MK)
+.if !empty(fonts_ARGS)
+IGNORE= USES=fonts - expecting no arguments
+.endif
+
+RUN_DEPENDS+= fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
+ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+
+PLIST_FILES+= "@fcfontsdir ${FONTSDIR}"
+.endif
+