mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# New ports collection makefile for: Nanum Gothic Coding Hangul font
|
|
# Date created: August 4, 2011
|
|
# Whom: Jung-uk Kim <jkim@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nanumcoding
|
|
PORTVERSION= 2.0
|
|
CATEGORIES= korean
|
|
MASTER_SITES= http://dev.naver.com/frs/download.php/441/
|
|
PKGNAMESUFFIX= -ttf
|
|
DISTNAME= NanumGothicCoding-${PORTVERSION}
|
|
|
|
MAINTAINER= jkim@FreeBSD.org
|
|
COMMENT= NanumGothic Coding Hangul font (TrueType)
|
|
|
|
LICENSE= OFL
|
|
LICENSE_NAME= Open Font License version 1.1
|
|
LICENSE_FILE= ${FILESDIR}/LICENSE
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
|
|
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
|
|
|
NO_WRKSUBDIR= yes
|
|
USE_ZIP= yes
|
|
FONTSDIR= lib/X11/fonts/nanum-coding${PKGNAMESUFFIX}
|
|
FONTLIST= NanumGothicCoding \
|
|
NanumGothicCoding-Bold
|
|
|
|
PLIST_DIRS= ${FONTSDIR}
|
|
.for f in ${FONTLIST}
|
|
PLIST_FILES+= ${FONTSDIR}/${f}.ttf
|
|
.endfor
|
|
PLIST_FILES+= ${FONTSDIR}/fonts.dir \
|
|
${FONTSDIR}/fonts.scale
|
|
|
|
post-extract:
|
|
@# XXX File names are encoded in EUC-KR.
|
|
${MV} ${WRKSRC}/*-Bold.ttf ${WRKSRC}/NanumGothicCoding-Bold.tmp
|
|
${MV} ${WRKSRC}/*.ttf ${WRKSRC}/NanumGothicCoding.ttf
|
|
${MV} ${WRKSRC}/*-Bold.tmp ${WRKSRC}/NanumGothicCoding-Bold.ttf
|
|
|
|
do-build:
|
|
${LOCALBASE}/bin/mkfontscale ${WRKSRC}
|
|
${LOCALBASE}/bin/mkfontdir ${WRKSRC}
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${FONTSDIR}
|
|
.for f in ${FONTLIST}
|
|
${INSTALL_DATA} ${WRKSRC}/${f}.ttf ${PREFIX}/${FONTSDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/fonts.dir ${PREFIX}/${FONTSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/fonts.scale ${PREFIX}/${FONTSDIR}
|
|
|
|
post-install:
|
|
@${ECHO_CMD} "@exec fc-cache -s %D/${FONTSDIR} 2>/dev/null || true" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@unexec fc-cache -s %D/${FONTSDIR} 2>/dev/null || true" >> ${TMPPLIST}
|
|
@-${LOCALBASE}/bin/fc-cache -s ${PREFIX}/${FONTSDIR} 2>/dev/null
|
|
|
|
.include <bsd.port.mk>
|