mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# Created by: 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}
|
|
|
|
NO_STAGE= yes
|
|
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>
|