blob: 82d2c8b90272dfc908a060581a403032af619f2d (
plain)
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
|
# $FreeBSD$
PORTNAME= nanumfonts
PORTVERSION= 20160201
CATEGORIES= korean
MASTER_SITES= http://appdown.naver.com/naver/font/NanumFont/setup/ \
LOCAL/jkim
PKGNAMESUFFIX= -${FONTTYPE}
DISTFILES= ${DISTFILE_LIST:S/^/${DISTFILE_PRFX}/:S/$/${DISTFILE_SUFX}/}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= jkim@FreeBSD.org
COMMENT= Nanum family Hangul fonts (${FONTFORMAT})
LICENSE= OFL11
DISTFILE_LIST= ALL
DISTFILE_PRFX= NanumFontSetup_${FONTTYPE:tu}_
DISTFILE_SUFX= _hangeulcamp.exe
DISTINFO_FILE= ${PKGDIR}/distinfo.${FONTTYPE}
EXTRACT_AFTER_ARGS= ${EXTRACT_SUBDIR}
EXTRACT_SUBDIR= \$$WINDIR/Fonts
NO_ARCH= yes
NO_BUILD= yes
USES= 7z:p7zip fonts
FONTTYPE?= otf
FONTFORMAT?= OpenType
FONTNAME= nanum-${FONTTYPE}
FONTLIST= BarunGothic \
BarunGothicBold \
BarunGothicLight \
BarunGothicUltraLight \
BarunpenB \
BarunpenR \
Brush \
Gothic \
GothicBold \
GothicExtraBold \
GothicLight \
Myeongjo \
MyeongjoBold \
MyeongjoExtraBold \
Pen
FONTFILES= ${FONTLIST:S|^|Nanum|:S|$|.${FONTTYPE}|}
PLIST_FILES= ${FONTFILES:S|^|${FONTSDIR}/|}
OPTIONS_DEFINE= ECO
ECO_DESC= Include Eco family fonts
ECO_VARS= DISTFILE_LIST+="GOTHICECO MYUNGJOECO"
.for f in GothicEco MyeongjoEco
ECO_VARS+= FONTLIST+="${f} ${f}Bold ${f}ExtraBold"
.endfor
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
.for f in ${FONTFILES}
${INSTALL_DATA} ${WRKDIR}/${EXTRACT_SUBDIR}/${f} ${STAGEDIR}${FONTSDIR}
.endfor
.include <bsd.port.post.mk>
|