freebsd-ports/Mk/Uses/fonts.mk

25 lines
546 B
Makefile
Raw Normal View History

# $FreeBSD$
#
# handle fonts
# Feature: fonts
# Usage: USES=fonts
.if !defined(_INCLUDE_USES_FONTS_MK)
2015-06-12 21:52:27 +02:00
_INCLUDE_USES_FONTS_MK= yes
.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
2015-03-19 19:36:11 +01:00
FONTNAME?= ${PORTNAME}
FONTSDIR?= ${PREFIX}/share/fonts/${FONTNAME}
PLIST_FILES+= "@fcfontsdir ${FONTSDIR}"
SUB_LIST+= FONTSDIR="${FONTSDIR}"
PLIST_SUB+= FONTSDIR="${FONTSDIR}"
.endif