blob: f8d98a0d7b08f79fafb9b24d964ca474f055d15a (
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
|
# $FreeBSD$
PORTNAME= nanumfonts
PORTVERSION= 3.1
CATEGORIES= korean
MASTER_SITES= http://cdn.naver.com/naver/NanumFont/fontfiles/ \
LOCAL
MASTER_SITE_SUBDIR= jkim
PKGNAMESUFFIX= -${FONTTYPE}
DISTFILES= NanumFont_${FONTTYPE:tu}_ALL${EXTRACT_SUFX} \
NanumFontSetup_${FONTTYPE:tu}_GOTHICECO${EXTRACT_SUFX} \
NanumFontSetup_${FONTTYPE:tu}_GOTHICLIGHT${EXTRACT_SUFX} \
NanumFontSetup_${FONTTYPE:tu}_MYUNGJOECO${EXTRACT_SUFX}
MAINTAINER= jkim@FreeBSD.org
COMMENT= Nanum family Hangul fonts (${FONTFORMAT})
LICENSE= OFL11
BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
DISTINFO_FILE= ${PKGDIR}/distinfo.${FONTTYPE}
NO_WRKSUBDIR= yes
USES= zip
FONTTYPE?= otf
FONTFORMAT?= OpenType
FONTSDIR= lib/X11/fonts/nanum-${FONTTYPE}
FONTLIST= NanumBrush \
NanumGothic \
NanumGothicBold \
NanumGothicEco \
NanumGothicEcoBold \
NanumGothicEcoExtraBold \
NanumGothicExtraBold \
NanumGothicLight \
NanumMyeongjo \
NanumMyeongjoBold \
NanumMyeongjoEco \
NanumMyeongjoEcoBold \
NanumMyeongjoEcoExtraBold \
NanumMyeongjoExtraBold \
NanumPen
FONTFILES= ${FONTLIST:S/$/.${FONTTYPE}/} fonts.dir fonts.scale
PLIST_DIRS= ${FONTSDIR}
PLIST_FILES= ${FONTFILES:S|^|${FONTSDIR}/|}
do-build:
${LOCALBASE}/bin/mkfontscale ${WRKSRC}
${LOCALBASE}/bin/mkfontdir ${WRKSRC}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${FONTSDIR}
${INSTALL_DATA} ${FONTFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${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}
.include <bsd.port.mk>
|