freebsd-ports/x11-fonts/croscorefonts-fonts-ttf/Makefile
Sunpoet Po-Chuan Hsieh 8d60c347fa - Update to 1.23.0
- Pet portlint: add my LOCAL to MASTER_SITES
- Temporarily comment LICENSE_* due to the removal of LICENSE in tarball
- Sort BUILD_DEPENDS
- Cleanup Makefile header
- Fix typo and reformat pkg-descr

Feature safe:	yes
2013-04-21 14:33:09 +00:00

53 lines
1.2 KiB
Makefile

# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= croscorefonts
PORTVERSION= 1.23.0
CATEGORIES= x11-fonts
MASTER_SITES= http://gsdview.appspot.com/chromeos-localmirror/distfiles/ \
LOCAL/sunpoet
MAINTAINER= office@FreeBSD.org
COMMENT= Fonts created from by Google for ChromeOS to replace MS TTF
#LICENSE= OFL
#LICENSE_NAME= SIL OPEN FONT LICENSE Version 1.1
#LICENSE_FILE= ${WRKSRC}/LICENSE
#LICENSE_PERMS= auto-accept
BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
FETCH_ARGS= -Fpr
USE_XORG= x11
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTDIR=${FONTDIR}
FONTNAME= ChromeOS
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
INSTDAT= fonts.dir fonts.scale
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
do-build:
cd ${WRKSRC} && ${MKFONTSCL_CMD}
${REINPLACE_CMD} -e 's|-misc-|-google-|' ${WRKSRC}/fonts.scale
cd ${WRKSRC} && ${MKFONTDIR_CMD}
do-install:
${MKDIR} ${FONTDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>