aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-03-20 01:03:01 +0800
committerbapt <bapt@FreeBSD.org>2015-03-20 01:03:01 +0800
commitc37da57cb6d3366101e124d8c68bd903ceaaf424 (patch)
treee2bd15e2668c1b249cd642340958335ad9abebca /Mk/Uses
parent1ef94a38ef9d7b016a9d9846d6c82a47f23e34f6 (diff)
downloadfreebsd-ports-gnome-c37da57cb6d3366101e124d8c68bd903ceaaf424.tar.gz
freebsd-ports-gnome-c37da57cb6d3366101e124d8c68bd903ceaaf424.tar.zst
freebsd-ports-gnome-c37da57cb6d3366101e124d8c68bd903ceaaf424.zip
Add a new USES=fonts to simplify handling of fonts ports
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
+