blob: a08d0ef51d00af921f07c320d46e54ab360199e6 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= tuxpaint
PORTVERSION= 2004.06.05
CATEGORIES= games
MASTER_SITES= #
PKGNAMESUFFIX= -fonts
DISTFILES= #
MAINTAINER= ports@FreeBSD.org
COMMENT= TuxPaint Localized Fonts
RUN_DEPENDS= tuxpaint>=0.9.21:${PORTSDIR}/games/tuxpaint
NO_BUILD= yes
NO_WRKSUBDIR= yes
# Available font languages.
LANGS= Chinese_Simplified Korean Vietnamese
# Define distfiles for all languages.
CHINESE_SIMPLIFIED_DISTNAME= chinese-simplified-2004.06.05
KOREAN_DISTNAME= korean-2002.12.05
VIETNAMESE_DISTNAME= vietnamese-2004.04.15
# Define language codes.
CHINESE_SIMPLIFIED_CODE= zh_cn
KOREAN_CODE= ko
VIETNAMESE_CODE= vi
#Bmake compatibility
.MAKE.FreeBSD_UL= yes
# Generate options menu.
.for l in ${LANGS}
OPTIONS_DEFINE+= ${l:U}
OPTIONS_DEFAULT+= ${l:U}
${l:U}_DESC= ${l:S/_/ /} fonts
.endfor
# Set MASTER_SITES
.for l in ${LANGS}
MASTER_SITES+= SF/${PORTNAME}/${PORTNAME}-fonts/${${l:U}_DISTNAME}:${l:U}
.endfor
# Do not use the same OPTIONS directory as "games/tuxpaint".
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
.include <bsd.port.options.mk>
# Set DISTFILES and PLIST_FILES according to OPTIONS.
.for l in ${LANGS}
. if ${PORT_OPTIONS:M${l:U}}
DISTFILES+= ${PORTNAME}-ttf-${${l:U}_DISTNAME}${EXTRACT_SUFX}:${l:U}
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l:U}_CODE}.ttf
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l:U}_CODE}_docs/COPYING.txt
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l:U}_CODE}_docs/README.txt
PLIST_DIRS+= %%DATADIR%%/fonts/locale/${${l:U}_CODE}_docs
. endif
.endfor
# Install seleted fonts.
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/fonts/locale
.for l in ${LANGS}
. if ${PORT_OPTIONS:M${l:U}}
${INSTALL_DATA} \
${WRKSRC}/${PORTNAME}-ttf-${${l:U}_DISTNAME}/${${l:U}_CODE}.ttf \
${STAGEDIR}${DATADIR}/fonts/locale
@${MKDIR} ${STAGEDIR}${DATADIR}/fonts/locale/${${l:U}_CODE}_docs
${INSTALL_DATA} \
${WRKSRC}/${PORTNAME}-ttf-${${l:U}_DISTNAME}/*.txt \
${STAGEDIR}${DATADIR}/fonts/locale/${${l:U}_CODE}_docs
. endif
.endfor
.include <bsd.port.mk>
|