blob: 9d3f469473ca85c6f7d07f1a6d3605927dc274c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: Nanum Hangul fonts
# Date created: August 4, 2011
# Whom: Jung-uk Kim <jkim@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nanumfonts
PORTVERSION= 3.0
CATEGORIES= korean
MASTER_SITES= http://cdn.naver.com/naver/NanumFont/fontfiles/
PKGNAMESUFFIX= -${FONTTYPE}
DISTNAME= NanumFont_${FONTTYPE:U}_ALL
MAINTAINER= jkim@FreeBSD.org
COMMENT= Nanum family Hangul fonts (${FONTFORMAT})
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
DISTINFO_FILE= ${PKGDIR}/distinfo.${FONTTYPE}
NO_WRKSUBDIR= yes
USE_ZIP= yes
FONTTYPE?= otf
FONTFORMAT?= OpenType
FONTSDIR= lib/X11/fonts/nanum-${FONTTYPE}
FONTLIST= NanumBrush \
NanumGothic \
NanumGothicBold \
NanumGothicExtraBold \
NanumMyeongjo \
NanumMyeongjoBold \
NanumMyeongjoExtraBold \
NanumPen
PLIST_DIRS= ${FONTSDIR}
.for f in ${FONTLIST}
PLIST_FILES+= ${FONTSDIR}/${f}.${FONTTYPE}
.endfor
PLIST_FILES+= ${FONTSDIR}/fonts.dir \
${FONTSDIR}/fonts.scale
do-build:
${LOCALBASE}/bin/mkfontscale ${WRKSRC}
${LOCALBASE}/bin/mkfontdir ${WRKSRC}
do-install:
${MKDIR} ${PREFIX}/${FONTSDIR}
.for f in ${FONTLIST}
${INSTALL_DATA} ${WRKSRC}/${f}.${FONTTYPE} ${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>
|