mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
72 lines
1.5 KiB
Makefile
72 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= nanumfonts
|
|
PORTVERSION= 20160201
|
|
PORTREVISION= 1
|
|
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})
|
|
|
|
BROKEN= unfetchable
|
|
|
|
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>
|