Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/fonts.mk
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
fonts_ARGS= fcfontsdir | fonts_ARGS= fcfontsdir | ||||
.endif | .endif | ||||
.if !empty(fonts_ARGS:Nfc:Nfontsdir:Nfcfontsdir:Nnone) | .if !empty(fonts_ARGS:Nfc:Nfontsdir:Nfcfontsdir:Nnone) | ||||
IGNORE= USES=fonts - invalid ARGS (${fonts_ARGS}) | IGNORE= USES=fonts - invalid ARGS (${fonts_ARGS}) | ||||
.endif | .endif | ||||
.if !empty(fonts_ARGS:Mfc) || !empty(fonts_ARGS:Mfcfontsdir) | .if !empty(fonts_ARGS:Mfc) || !empty(fonts_ARGS:Mfcfontsdir) | ||||
RUN_DEPENDS+= fc-cache:${PORTSDIR}/x11-fonts/fontconfig | RUN_DEPENDS+= fc-cache:x11-fonts/fontconfig | ||||
.endif | .endif | ||||
.if !empty(fonts_ARGS:Mfontsdir) || !empty(fonts_ARGS:Mfcfontsdir) | .if !empty(fonts_ARGS:Mfontsdir) || !empty(fonts_ARGS:Mfcfontsdir) | ||||
RUN_DEPENDS+= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ | RUN_DEPENDS+= mkfontdir:x11-fonts/mkfontdir \ | ||||
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale | mkfontscale:x11-fonts/mkfontscale | ||||
.endif | .endif | ||||
FONTNAME?= ${PORTNAME} | FONTNAME?= ${PORTNAME} | ||||
FONTSDIR?= ${PREFIX}/share/fonts/${FONTNAME} | FONTSDIR?= ${PREFIX}/share/fonts/${FONTNAME} | ||||
.if !empty(fonts_ARGS:Nnone) | .if !empty(fonts_ARGS:Nnone) | ||||
PLIST_FILES+= "@${fonts_ARGS} ${FONTSDIR}" | PLIST_FILES+= "@${fonts_ARGS} ${FONTSDIR}" | ||||
.endif | .endif | ||||
SUB_LIST+= FONTSDIR="${FONTSDIR}" | SUB_LIST+= FONTSDIR="${FONTSDIR}" | ||||
PLIST_SUB+= FONTSDIR="${FONTSDIR}" | PLIST_SUB+= FONTSDIR="${FONTSDIR}" | ||||
.endif | .endif | ||||