diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2011-11-09 06:31:11 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2011-11-09 06:31:11 +0000 |
commit | 4ef8e47094b969996ee13dafa81019a9de7a99a4 (patch) | |
tree | 7fce1253a7644168e221fb0ddcd99d42148bc36e /x11-fonts/ubuntu-font/Makefile | |
parent | 2b946ea574a673cf031fb3895eca59f53ff06e47 (diff) | |
download | ports-4ef8e47094b969996ee13dafa81019a9de7a99a4.tar.gz ports-4ef8e47094b969996ee13dafa81019a9de7a99a4.zip |
Notes
Diffstat (limited to 'x11-fonts/ubuntu-font/Makefile')
-rw-r--r-- | x11-fonts/ubuntu-font/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/x11-fonts/ubuntu-font/Makefile b/x11-fonts/ubuntu-font/Makefile new file mode 100644 index 000000000000..6590a3ff2933 --- /dev/null +++ b/x11-fonts/ubuntu-font/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: ubuntu-font +# Date created: 09 November 2011 +# Whom: Kevin Lo <kevlo@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ubuntu-font +PORTVERSION= 0.80 +CATEGORIES= x11-fonts +MASTER_SITES= http://font.ubuntu.com/download/ + +DISTNAME= ${PORTNAME}-family-${PORTVERSION} + +MAINTAINER= kevloFreeBSD.org +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 + +USE_ZIP= yes + +WRKSRC= ${WRKDIR}/${DISTNAME} +FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME} + +do-build: + cd ${WRKSRC} && ${LOCALBASE}/bin/mkfontscale + cd ${WRKSRC} && ${LOCALBASE}/bin/mkfontdir + +do-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} *.txt ${DOCSDIR} +.endif + ${MKDIR} ${FONTSDIR} + cd ${WRKSRC} && \ + ${INSTALL_DATA} fonts.dir fonts.scale *.ttf ${FONTSDIR} + +.include <bsd.port.mk> |