aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/noto-serif-tc/Makefile
blob: 21c28aaf958e511cfd7003056a623b3e7a8a0409 (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
PORTNAME=	noto
PORTVERSION=	2.001
CATEGORIES=	x11-fonts
MASTER_SITES=	https://github.com/notofonts/noto-cjk/raw/Serif${PORTVERSION}/ \
		https://github.com/notofonts/noto-cjk/raw/Serif${PORTVERSION}/Serif/OTF/TraditionalChinese/:cjk \
		https://github.com/notofonts/noto-cjk/raw/Serif${PORTVERSION}/Serif/SubsetOTF/TC/:subset
PKGNAMESUFFIX=	-serif-tc
DISTFILES=	LICENSE \
		${CJK_FONTS:S|$|:cjk|} \
		${SUBSET_FONTS:S|$|:subset|}
DIST_SUBDIR=	Noto/CJK/${PORTVERSION}
EXTRACT_ONLY=	# empty

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Google Noto Serif (Traditional Chinese)
WWW=		https://fonts.google.com/noto \
		https://github.com/notofonts/noto-cjk

LICENSE=	OFL11
LICENSE_FILE=	${DISTDIR}/${DIST_SUBDIR}/LICENSE

USES=		fonts

NO_ARCH=	yes
NO_BUILD=	yes

CJK_FONTS=	NotoSerifCJKtc-Black.otf \
		NotoSerifCJKtc-Bold.otf \
		NotoSerifCJKtc-ExtraLight.otf \
		NotoSerifCJKtc-Light.otf \
		NotoSerifCJKtc-Medium.otf \
		NotoSerifCJKtc-Regular.otf \
		NotoSerifCJKtc-SemiBold.otf
SUBSET_FONTS=	NotoSerifTC-Black.otf \
		NotoSerifTC-Bold.otf \
		NotoSerifTC-ExtraLight.otf \
		NotoSerifTC-Light.otf \
		NotoSerifTC-Medium.otf \
		NotoSerifTC-Regular.otf \
		NotoSerifTC-SemiBold.otf

do-install:
	${MKDIR} ${STAGEDIR}${FONTSDIR}
	cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${CJK_FONTS} ${MONO_FONTS} ${SUBSET_FONTS} ${STAGEDIR}${FONTSDIR}

.include <bsd.port.mk>