aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/ubuntu-font/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fonts/ubuntu-font/Makefile')
-rw-r--r--x11-fonts/ubuntu-font/Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/x11-fonts/ubuntu-font/Makefile b/x11-fonts/ubuntu-font/Makefile
index 6590a3ff293..1a24176d306 100644
--- a/x11-fonts/ubuntu-font/Makefile
+++ b/x11-fonts/ubuntu-font/Makefile
@@ -7,30 +7,31 @@
PORTNAME= ubuntu-font
PORTVERSION= 0.80
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://font.ubuntu.com/download/
DISTNAME= ${PORTNAME}-family-${PORTVERSION}
MAINTAINER= kevloFreeBSD.org
-COMMENT= Ubuntu Font Family
+COMMENT= Ubuntu font family
LICENSE= UFL
LICENSE_FILE= ${WRKSRC}/LICENCE.txt
LICENSE_NAME= Ubuntu Font License (UFL)
LICENSE_PERMS= auto-accept
-BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
- mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= ${BUILD_DEPENDS}
USE_ZIP= yes
+NO_BUILD= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}
+PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
-
-do-build:
- cd ${WRKSRC} && ${LOCALBASE}/bin/mkfontscale
- cd ${WRKSRC} && ${LOCALBASE}/bin/mkfontdir
+SUB_FILES= pkg-message
+SUB_LIST= FONTSDIR=${FONTSDIR}
+WRKSRC= ${WRKDIR}/${DISTNAME}
do-install:
.if !defined(NOPORTDOCS)
@@ -38,7 +39,11 @@ do-install:
cd ${WRKSRC} && ${INSTALL_DATA} *.txt ${DOCSDIR}
.endif
${MKDIR} ${FONTSDIR}
- cd ${WRKSRC} && \
- ${INSTALL_DATA} fonts.dir fonts.scale *.ttf ${FONTSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${FONTSDIR}
+
+post-install:
+ @${ECHO_MSG} "===> Running fc-cache"
+ -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>