- 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:
parent
e46a267dbc
commit
baeee6846f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521478
@ -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}/,,}"
|
||||
|
Loading…
Reference in New Issue
Block a user