aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-02-12 23:47:09 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-02-12 23:47:09 +0800
commit9d8ab31b937e8a1a6b55123e2d25d42c896e345a (patch)
treead89c7d8aeb8b9e68ceeeb9a9f69964c0a9498c1 /x11-fonts
parent1ec390ad562e335701e28701f40de2847a442fcb (diff)
downloadfreebsd-ports-gnome-9d8ab31b937e8a1a6b55123e2d25d42c896e345a.tar.gz
freebsd-ports-gnome-9d8ab31b937e8a1a6b55123e2d25d42c896e345a.tar.zst
freebsd-ports-gnome-9d8ab31b937e8a1a6b55123e2d25d42c896e345a.zip
- Generate and install fonts.dir and fonts.scale
- Bump PORTREVISION for package change PR: ports/179965 Submitted by: Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/dejavu/Makefile14
-rw-r--r--x11-fonts/dejavu/pkg-plist2
2 files changed, 12 insertions, 4 deletions
diff --git a/x11-fonts/dejavu/Makefile b/x11-fonts/dejavu/Makefile
index bf55cc3d3924..f032f11d5d3a 100644
--- a/x11-fonts/dejavu/Makefile
+++ b/x11-fonts/dejavu/Makefile
@@ -3,6 +3,7 @@
PORTNAME= dejavu
PORTVERSION= 2.34
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
@@ -10,13 +11,14 @@ DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Bitstream Vera Fonts clone with a wider range of characters
-BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
+ ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ ${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+RUN_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig
OPTIONS_DEFINE= DOCS LINKS
LINKS_DESC= Install links of configuration files in conf.d
-NO_BUILD= yes
USE_BZIP2= yes
FCDIR= ${PREFIX}/${FCDIR_REL}
@@ -37,10 +39,14 @@ PLIST_SUB+= FCDIR_LINKS="${FCDIR_LINKS}"
PLIST_SUB+= FCDIR_LINKS="@comment "
.endif
+do-build:
+ @cd ${WRKSRC}/ && ${LOCALBASE}/bin/mkfontscale
+ @cd ${WRKSRC}/ && ${LOCALBASE}/bin/mkfontdir
+
do-install:
${MKDIR} ${STAGEDIR}${FCDIR}/ ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ ${STAGEDIR}${FONTSDIR}/
${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${FCDIR}/
- ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/fonts.* ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
diff --git a/x11-fonts/dejavu/pkg-plist b/x11-fonts/dejavu/pkg-plist
index 03ad39fca800..efb7290041b7 100644
--- a/x11-fonts/dejavu/pkg-plist
+++ b/x11-fonts/dejavu/pkg-plist
@@ -31,4 +31,6 @@
%%FONTSDIR_REL%%/DejaVuSerifCondensed-BoldItalic.ttf
%%FONTSDIR_REL%%/DejaVuSerifCondensed-Italic.ttf
%%FONTSDIR_REL%%/DejaVuSerifCondensed.ttf
+%%FONTSDIR_REL%%/fonts.dir
+%%FONTSDIR_REL%%/fonts.scale
@dirrm %%FONTSDIR_REL%%