Tweak korean/p5-Lingua-KO-Hangul-Util version 0.28
[dports.git] / korean / sourcehansans-otf / Makefile
1 PORTNAME=               sourcehansans
2 PORTVERSION=            2.000
3 DISTVERSIONSUFFIX=      R
4 CATEGORIES=             korean x11-fonts
5 PKGNAMESUFFIX=          -otf
6 # Note: the following PKGNAMEPREFIX is here only for self-documenting purpose;
7 #       actual prefixing is done by the `korean' category itself.
8 #PKGNAMEPREFIX=         ko-
9
10 MAINTAINER=             hyun@caffeinated.codes
11 COMMENT=                Korean font by Adobe designed for user interfaces
12
13 LICENSE=                OFL11
14 LICENSE_FILE=           ${WRKSRC}/LICENSE.txt
15
16 USES=                   fonts
17 USE_GITHUB=             yes
18 GH_ACCOUNT=             adobe-fonts
19 GH_PROJECT=             source-han-sans
20
21 NO_ARCH=                yes
22 NO_BUILD=               yes
23 SUB_FILES=              pkg-message
24
25 OPTIONS_DEFINE=         HW
26 OPTIONS_SINGLE=         TYPE
27 OPTIONS_SINGLE_TYPE=    FULL SUBSET
28 OPTIONS_DEFAULT=        FULL
29 OPTIONS_SUB=            yes
30
31 HW_DESC=                Install the half-width font in addition to the full font
32 FULL_DESC=              Install the full font (can display all CJK)
33 SUBSET_DESC=            Install the subset font (can display Korean only)
34 SUBSET_PREVENTS=        HW
35 SUBSET_PREVENTS_MSG=    Half-width can only be installed in addition to the full font
36
37 FULL_VARS=              FONTNAME=SourceHanSansK SRCFONTSDIR=OTF/Korean
38 SUBSET_VARS=            FONTNAME=SourceHanSansKR SRCFONTSDIR=SubsetOTF/KR
39
40 do-install:
41         @${MKDIR} ${STAGEDIR}${FONTSDIR}
42         ${INSTALL_DATA} ${WRKSRC}/${SRCFONTSDIR}/*.otf ${STAGEDIR}${FONTSDIR}
43
44 post-install-HW-on:
45         ${INSTALL_DATA} ${WRKSRC}/OTF/KoreanHW/*.otf ${STAGEDIR}${FONTSDIR}
46
47 .include <bsd.port.mk>