2015-03-19 18:03:01 +01:00
|
|
|
# $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
|
|
|
|
|
2015-03-19 18:03:01 +01:00
|
|
|
.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}
|
2015-03-22 00:05:19 +01:00
|
|
|
FONTSDIR?= ${PREFIX}/share/fonts/${FONTNAME}
|
2015-03-19 18:03:01 +01:00
|
|
|
PLIST_FILES+= "@fcfontsdir ${FONTSDIR}"
|
2015-03-19 19:52:19 +01:00
|
|
|
SUB_LIST+= FONTSDIR="${FONTSDIR}"
|
|
|
|
PLIST_SUB+= FONTSDIR="${FONTSDIR}"
|
2015-03-19 18:03:01 +01:00
|
|
|
.endif
|
|
|
|
|