2005-07-19 21:36:46 +00:00
|
|
|
# New ports collection makefile for: tuxpaint-fonts
|
|
|
|
# Date created: 15 Jul 2005
|
|
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tuxpaint
|
|
|
|
PORTVERSION= 1
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 4
|
2005-07-19 21:36:46 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-fonts/chinese-2003.0${PORTVERSION}.05
|
2005-07-19 21:36:46 +00:00
|
|
|
PKGNAMESUFFIX= -fonts
|
2006-04-24 21:16:27 +00:00
|
|
|
DISTFILES= #
|
2005-07-19 21:36:46 +00:00
|
|
|
|
2010-10-11 05:41:24 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-07-19 21:36:46 +00:00
|
|
|
COMMENT= TuxPaint Localized Fonts
|
|
|
|
|
|
|
|
RUN_DEPENDS= tuxpaint:${PORTSDIR}/games/tuxpaint
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Available font languages.
|
2006-11-12 14:58:00 +00:00
|
|
|
LANGS= Chinese Chinese_Simplified Korean
|
2005-07-19 21:36:46 +00:00
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Define distfiles for all languages.
|
2005-07-19 21:36:46 +00:00
|
|
|
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
|
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Define language codes.
|
2005-07-19 21:36:46 +00:00
|
|
|
CHINESE_CODE= zh
|
|
|
|
CHINESE_SIMPLIFIED_CODE= zh_cn
|
|
|
|
KOREAN_CODE= ko
|
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Generate options menu.
|
2005-07-19 21:36:46 +00:00
|
|
|
.for l in ${LANGS}
|
|
|
|
OPTIONS+= ${l:U} "${l:S/_/ /} fonts" on
|
|
|
|
.endfor
|
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Do not use the same OPTIONS directory as "games/tuxpaint".
|
2005-07-19 21:36:46 +00:00
|
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Set DISTFILES and PLIST_FILES according to OPTIONS.
|
2005-07-19 21:36:46 +00:00
|
|
|
.for l in ${LANGS:U}
|
2005-11-25 21:46:33 +00:00
|
|
|
. if !defined(WITHOUT_${l})
|
2005-07-19 21:36:46 +00:00
|
|
|
DISTFILES+= ${${l}_DISTFILES}${EXTRACT_SUFX}
|
|
|
|
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l}_CODE}.ttf
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2006-04-24 21:16:27 +00:00
|
|
|
# Install seleted fonts.
|
2005-07-19 21:36:46 +00:00
|
|
|
do-install:
|
2006-04-24 21:16:27 +00:00
|
|
|
${MKDIR} ${DATADIR}/fonts/locale
|
2005-07-19 21:36:46 +00:00
|
|
|
.for l in ${LANGS}
|
|
|
|
. if defined(WITH_${l:U})
|
2006-04-24 21:16:27 +00:00
|
|
|
${INSTALL_DATA} \
|
2005-07-19 21:36:46 +00:00
|
|
|
${WRKSRC}/${${l:U}_DISTFILES}/${${l:U}_CODE}.ttf \
|
2006-04-24 21:16:27 +00:00
|
|
|
${DATADIR}/fonts/locale
|
2005-07-19 21:36:46 +00:00
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|