aboutsummaryrefslogtreecommitdiffstats
path: root/games/tuxpaint-fonts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/tuxpaint-fonts/Makefile')
-rw-r--r--games/tuxpaint-fonts/Makefile39
1 files changed, 25 insertions, 14 deletions
diff --git a/games/tuxpaint-fonts/Makefile b/games/tuxpaint-fonts/Makefile
index 79ae91dcd100..8b042f473952 100644
--- a/games/tuxpaint-fonts/Makefile
+++ b/games/tuxpaint-fonts/Makefile
@@ -6,49 +6,56 @@
#
PORTNAME= tuxpaint
-PORTVERSION= 1
-PORTREVISION= 4
+PORTVERSION= 2004.06.05
CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-fonts/chinese-2003.0${PORTVERSION}.05
+MASTER_SITES= #
PKGNAMESUFFIX= -fonts
DISTFILES= #
MAINTAINER= ports@FreeBSD.org
COMMENT= TuxPaint Localized Fonts
-RUN_DEPENDS= tuxpaint:${PORTSDIR}/games/tuxpaint
+RUN_DEPENDS= tuxpaint>=0.9.21:${PORTSDIR}/games/tuxpaint
NO_BUILD= yes
NO_WRKSUBDIR= yes
# Available font languages.
-LANGS= Chinese Chinese_Simplified Korean
+LANGS= Chinese_Simplified Korean Vietnamese
# Define distfiles for all languages.
-CHINESE_DISTFILES= ${PORTNAME}-ttf-chinese-2003.01.05
-CHINESE_SIMPLIFIED_DISTFILES= ${PORTNAME}-ttf-chinese-simplified-2004.06.05
-KOREAN_DISTFILES= ${PORTNAME}-ttf-korean-2002.12.05
+CHINESE_SIMPLIFIED_DISTNAME= chinese-simplified-2004.06.05
+KOREAN_DISTNAME= korean-2002.12.05
+VIETNAMESE_DISTNAME= vietnamese-2004.04.15
# Define language codes.
-CHINESE_CODE= zh
CHINESE_SIMPLIFIED_CODE= zh_cn
KOREAN_CODE= ko
+VIETNAMESE_CODE= vi
# Generate options menu.
.for l in ${LANGS}
OPTIONS+= ${l:U} "${l:S/_/ /} fonts" on
.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.pre.mk>
# Set DISTFILES and PLIST_FILES according to OPTIONS.
-.for l in ${LANGS:U}
-. if !defined(WITHOUT_${l})
-DISTFILES+= ${${l}_DISTFILES}${EXTRACT_SUFX}
-PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l}_CODE}.ttf
+.for l in ${LANGS}
+. if !defined(WITHOUT_${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
@@ -58,8 +65,12 @@ do-install:
.for l in ${LANGS}
. if defined(WITH_${l:U})
${INSTALL_DATA} \
- ${WRKSRC}/${${l:U}_DISTFILES}/${${l:U}_CODE}.ttf \
+ ${WRKSRC}/${PORTNAME}-ttf-${${l:U}_DISTNAME}/${${l:U}_CODE}.ttf \
${DATADIR}/fonts/locale
+ ${MKDIR} ${DATADIR}/fonts/locale/${${l:U}_CODE}_docs
+ ${INSTALL_DATA} \
+ ${WRKSRC}/${PORTNAME}-ttf-${${l:U}_DISTNAME}/*.txt \
+ ${DATADIR}/fonts/locale/${${l:U}_CODE}_docs
. endif
.endfor