freebsd-ports/x11-fonts/ubuntu-font/Makefile
Eitan Adler c59a3834c4 At the moment 1385 ports use BUILD_DEPENDS= ${RUN_DEPENDS} and 450
ports use BUILD_DEPENDS:= ${RUN_DEPENDS}. This patch fixes ports that are
currently broken. This is a temporary measure until we organically stop using
:= or someone(s) spend a lot of time changing all the ports over.

Explicit duplication > := > = and this just moves ports one step to the left

Approved by:	portmgr
2012-01-21 17:40:15 +00:00

50 lines
1.1 KiB
Makefile

# 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
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://font.ubuntu.com/download/
DISTNAME= ${PORTNAME}-family-${PORTVERSION}
MAINTAINER= kevlo@FreeBSD.org
COMMENT= Ubuntu font family
LICENSE= UFL
LICENSE_FILE= ${WRKSRC}/LICENCE.txt
LICENSE_NAME= Ubuntu Font License (UFL)
LICENSE_PERMS= auto-accept
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_ZIP= yes
NO_BUILD= yes
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
SUB_FILES= pkg-message
SUB_LIST= FONTSDIR=${FONTSDIR}
WRKSRC= ${WRKDIR}/${DISTNAME}
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} *.txt ${DOCSDIR}
.endif
${MKDIR} ${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>