- Use ${RLN} to create a symlink of a relative path.

- Use ${_USES_install} for the additional target.

Pointed out by:	mat
This commit is contained in:
Hiroki Sato 2019-12-30 10:09:56 +00:00
parent e46a267dbc
commit baeee6846f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521478

View File

@ -65,11 +65,10 @@ PLIST_FILES+= "@${fonts_ARGS} ${FONTSDIR}"
.if defined(FONTPATHSPEC) && !empty(FONTPATHSPEC)
FONTPATHD?= ${LOCALBASE}/etc/X11/fontpath.d
PLIST_FILES+= "${FONTPATHD}/${FONTPATHSPEC}"
post-install-fontpathd:
_USES_install+= 690:fonts-install-fontpathd
fonts-install-fontpathd:
@${MKDIR} ${STAGEDIR}${FONTPATHD}
${LN} -s -f ../../../${FONTSDIR:S,^${PREFIX}/,,} \
${STAGEDIR}${FONTPATHD}/${FONTPATHSPEC}
post-install: post-install-fontpathd
${RLN} ${STAGEDIR}${FONTSDIR} ${STAGEDIR}${FONTPATHD}/${FONTPATHSPEC}
.endif
SUB_LIST+= FONTSDIR="${FONTSDIR}"
PLIST_SUB+= FONTSDIR="${FONTSDIR:S,^${PREFIX}/,,}"