1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/tuxpaint-fonts/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

76 lines
2.0 KiB
Makefile

# 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
# Generate options menu.
.for l in ${LANGS}
OPTIONS_DEFINE+= ${l:tu}
OPTIONS_DEFAULT+= ${l:tu}
${l:tu}_DESC= ${l:S/_/ /} fonts
.endfor
# Set MASTER_SITES
.for l in ${LANGS}
MASTER_SITES+= SF/${PORTNAME}/${PORTNAME}-fonts/${${l:tu}_DISTNAME}:${l:tu}
.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:tu}}
DISTFILES+= ${PORTNAME}-ttf-${${l:tu}_DISTNAME}${EXTRACT_SUFX}:${l:tu}
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l:tu}_CODE}.ttf
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l:tu}_CODE}_docs/COPYING.txt
PLIST_FILES+= %%DATADIR%%/fonts/locale/${${l:tu}_CODE}_docs/README.txt
PLIST_DIRS+= %%DATADIR%%/fonts/locale/${${l:tu}_CODE}_docs
. endif
.endfor
# Install seleted fonts.
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/fonts/locale
.for l in ${LANGS}
. if ${PORT_OPTIONS:M${l:tu}}
${INSTALL_DATA} \
${WRKSRC}/${PORTNAME}-ttf-${${l:tu}_DISTNAME}/${${l:tu}_CODE}.ttf \
${STAGEDIR}${DATADIR}/fonts/locale
@${MKDIR} ${STAGEDIR}${DATADIR}/fonts/locale/${${l:tu}_CODE}_docs
${INSTALL_DATA} \
${WRKSRC}/${PORTNAME}-ttf-${${l:tu}_DISTNAME}/*.txt \
${STAGEDIR}${DATADIR}/fonts/locale/${${l:tu}_CODE}_docs
. endif
.endfor
.include <bsd.port.mk>