1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-07-04 03:42:07 +00:00
parent 76981d8bb8
commit 66cae063e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360536
2 changed files with 5 additions and 19 deletions

View File

@ -14,26 +14,17 @@ BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
fc-cache:${PORTSDIR}/x11-fonts/fontconfig
USE_BZIP2= yes
USES= tar:bzip2
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
FONTNAME= ${PORTNAME}
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
NO_BUILD= yes
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
FCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v
NO_STAGE= yes
post-extract:
@cd ${WRKSRC}/&&${MV} TibMachUni-${DISTVERSION}.ttf tmu.ttf
do-build:
@cd ${WRKSRC}/ && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD}
do-install:
@${INSTALL} -d ${FONTSDIR}/
@${INSTALL_DATA} ${WRKSRC}/[ft]* ${FONTSDIR}/
@${ECHO_MSG} "===> Running fc-cache"
-${FCCACHE_CMD} ${FONTSDIR}
@${INSTALL} -d ${STAGEDIR}${FONTSDIR}/
@${INSTALL_DATA} ${WRKSRC}/tmu.ttf ${STAGEDIR}${FONTSDIR}/
.include <bsd.port.mk>

View File

@ -1,7 +1,2 @@
%%FONTSDIR%%/fonts.dir
%%FONTSDIR%%/fonts.scale
%%FONTSDIR%%/tmu.ttf
@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
@unexec rm -f %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || true
@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
@dirrm %%FONTSDIR%%
@fcfontsdir %%FONTSDIR%%