aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-07-04 14:15:57 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-07-04 14:15:57 +0000
commit01a7b2de3a64926cf167f8d86d45e7efb61bc932 (patch)
treee74c965374abc4d939971c7ec3c4829f33298cbd /x11-fonts
parent0008376d9323a7e5e342ebfc010b68dbf9240647 (diff)
downloadports-01a7b2de3a64926cf167f8d86d45e7efb61bc932.tar.gz
ports-01a7b2de3a64926cf167f8d86d45e7efb61bc932.zip
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/sourcecodepro-ttf/Makefile22
-rw-r--r--x11-fonts/sourcecodepro-ttf/pkg-plist5
2 files changed, 6 insertions, 21 deletions
diff --git a/x11-fonts/sourcecodepro-ttf/Makefile b/x11-fonts/sourcecodepro-ttf/Makefile
index 4fd3ceaec78c..bba61d19a0a9 100644
--- a/x11-fonts/sourcecodepro-ttf/Makefile
+++ b/x11-fonts/sourcecodepro-ttf/Makefile
@@ -13,7 +13,8 @@ COMMENT= A set of fonts by Adobe designed for coders
LICENSE= OFL11
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
- mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ fc-cache:${PORTSDIR}/x11-fonts/fontconfig
USES= zip
USE_XORG= x11
@@ -26,24 +27,11 @@ SUB_LIST= FONTDIR=${FONTDIR}
FONTNAME= SourceCodePro
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
-INSTDAT= fonts.dir fonts.scale
-
-MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
-MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
-
-NO_STAGE= yes
-do-build:
- cd ${WRKSRC}/TTF/ && ${MKFONTSCL_CMD}
- cd ${WRKSRC}/TTF/ && ${MKFONTDIR_CMD}
+NO_BUILD= yes
do-install:
- ${MKDIR} ${FONTDIR}
+ ${MKDIR} ${STAGEDIR}${FONTDIR}
cd ${WRKSRC}/TTF/ && \
- ${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
-
-post-install:
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
+ ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTDIR}
.include <bsd.port.mk>
diff --git a/x11-fonts/sourcecodepro-ttf/pkg-plist b/x11-fonts/sourcecodepro-ttf/pkg-plist
index 339a0988b999..c2d51a49ec41 100644
--- a/x11-fonts/sourcecodepro-ttf/pkg-plist
+++ b/x11-fonts/sourcecodepro-ttf/pkg-plist
@@ -5,7 +5,4 @@
%%FONTDIR%%/SourceCodePro-Medium.ttf
%%FONTDIR%%/SourceCodePro-Regular.ttf
%%FONTDIR%%/SourceCodePro-Semibold.ttf
-%%FONTDIR%%/fonts.dir
-%%FONTDIR%%/fonts.scale
-@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
-@dirrm %%FONTDIR%%
+@fcfontsdir %%FONTDIR%%