2013-06-05 21:46:49 +00:00
|
|
|
# Created by: Matthew Luckie <mjl@luckie.org.nz>
|
2006-02-19 08:58:10 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= thunderbird-dictionaries
|
2006-02-23 19:42:02 +00:00
|
|
|
PORTVERSION= 20060220
|
2014-09-10 20:50:31 +00:00
|
|
|
PORTREVISION= 11
|
2006-02-19 08:58:10 +00:00
|
|
|
CATEGORIES= mail
|
2006-05-02 14:46:57 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZDEV}
|
|
|
|
MASTER_SITE_SUBDIR= dictionaries
|
2006-02-19 08:58:10 +00:00
|
|
|
DISTFILES= # filled in later after options
|
|
|
|
DIST_SUBDIR= thunderbird
|
|
|
|
|
|
|
|
MAINTAINER= mjl@luckie.org.nz
|
|
|
|
COMMENT= Dictionaries for Mozilla Thunderbird
|
|
|
|
|
2011-08-22 14:41:49 +00:00
|
|
|
RUN_DEPENDS= thunderbird>=6.0:${PORTSDIR}/mail/thunderbird
|
2006-02-19 08:58:10 +00:00
|
|
|
|
2014-03-11 06:40:21 +00:00
|
|
|
USES= zip:infozip
|
2013-06-05 21:46:49 +00:00
|
|
|
NO_BUILD= yes
|
2006-02-19 08:58:10 +00:00
|
|
|
WRKSRC= ${WRKDIR}/dictionaries
|
|
|
|
|
2013-06-05 21:46:49 +00:00
|
|
|
.include "${.CURDIR}/Makefile.options"
|
2006-02-19 08:58:10 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-06-05 21:46:49 +00:00
|
|
|
.include "${.CURDIR}/Makefile.dict"
|
|
|
|
|
2006-02-19 08:58:10 +00:00
|
|
|
# For batch building, build all dictionaries
|
|
|
|
.if defined(BATCH)
|
2013-06-05 21:46:49 +00:00
|
|
|
PORT_OPTIONS+= ${ALLDICTS}
|
2006-02-19 08:58:10 +00:00
|
|
|
.endif
|
|
|
|
|
2013-06-05 21:46:49 +00:00
|
|
|
# All available dictionaries are listed in Makefile.dict
|
2006-02-19 08:58:10 +00:00
|
|
|
|
|
|
|
# this dictionary requires special handling in do-install
|
|
|
|
BG_DICT= BG
|
|
|
|
|
|
|
|
# Build and install all dictionaries
|
2013-06-05 21:46:49 +00:00
|
|
|
.if ${PORT_OPTIONS:MALL}
|
|
|
|
PORT_OPTIONS+= ${ALLDICTS}
|
2006-02-19 08:58:10 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Figure out which distfiles to use, and how to construct the plist
|
|
|
|
.for f in ${ALLDICTS}
|
2013-06-05 21:46:49 +00:00
|
|
|
.if ${PORT_OPTIONS:M${f}}
|
2006-02-19 08:58:10 +00:00
|
|
|
PLIST_SUB+= ${f}=""
|
|
|
|
HAVE_DICT= yes
|
|
|
|
DISTFILES+= ${${f}_FILE}
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ${f}="@comment "
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Extract the relevant distfiles
|
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
.for f in ${ALLDICTS}
|
2013-07-14 16:22:29 +00:00
|
|
|
.if ${PORT_OPTIONS:M${f}}
|
2006-02-19 08:58:10 +00:00
|
|
|
@${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/${${f}_FILE} -d ${WRKSRC}/${${f}_FILE}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Install the requested dictionaries
|
|
|
|
do-install:
|
2014-04-09 15:14:54 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/thunderbird/dictionaries
|
2006-02-19 08:58:10 +00:00
|
|
|
.for f in ${ALLDICTS}
|
2013-06-05 21:46:49 +00:00
|
|
|
.if ${PORT_OPTIONS:M${f}}
|
2006-02-19 08:58:10 +00:00
|
|
|
.if ${BG_DICT}==${f}
|
2014-04-09 15:14:54 +00:00
|
|
|
${INSTALL_DATA} \
|
2006-02-19 08:58:10 +00:00
|
|
|
${WRKSRC}/${${f}_FILE}/bin/components/myspell/${${f}_FILE:S/spell-//:S/xpi//}aff \
|
2014-04-09 15:14:54 +00:00
|
|
|
${STAGEDIR}${PREFIX}/lib/thunderbird/dictionaries
|
|
|
|
${INSTALL_DATA} \
|
2006-02-19 08:58:10 +00:00
|
|
|
${WRKSRC}/${${f}_FILE}/bin/components/myspell/${${f}_FILE:S/spell-//:S/xpi//}dic \
|
2014-04-09 15:14:54 +00:00
|
|
|
${STAGEDIR}${PREFIX}/lib/thunderbird/dictionaries
|
2006-02-19 08:58:10 +00:00
|
|
|
.else
|
2014-04-09 15:14:54 +00:00
|
|
|
${INSTALL_DATA} \
|
2006-02-19 08:58:10 +00:00
|
|
|
${WRKSRC}/${${f}_FILE}/${${f}_FILE:S/spell-//:S/xpi//}aff \
|
2014-04-09 15:14:54 +00:00
|
|
|
${STAGEDIR}${PREFIX}/lib/thunderbird/dictionaries
|
|
|
|
${INSTALL_DATA} \
|
2006-02-19 08:58:10 +00:00
|
|
|
${WRKSRC}/${${f}_FILE}/${${f}_FILE:S/spell-//:S/xpi//}dic \
|
2014-04-09 15:14:54 +00:00
|
|
|
${STAGEDIR}${PREFIX}/lib/thunderbird/dictionaries
|
2006-02-19 08:58:10 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|