freebsd-ports/textproc/en-hunspell/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2011-07-20 11:35:28 +02:00
# $FreeBSD$
PORTNAME= hunspell
2011-07-20 11:35:28 +02:00
PORTVERSION= 7.1
PORTREVISION= 1
2011-07-20 11:35:28 +02:00
CATEGORIES= textproc
MASTER_SITES= SF/wordlist/Hunspell%20en_US/${PORTVERSION}-0/ \
SF/wordlist/Hunspell%20en_CA/${PORTVERSION}-0/:CA \
LOCAL/sunpoet/${PORTNAME}/:GB
PKGNAMEPREFIX= en-
2011-07-20 11:35:28 +02:00
DISTFILES= hunspell-en_US-${PORTVERSION}-0${EXTRACT_SUFX} \
hunspell-en_CA-${PORTVERSION}-0${EXTRACT_SUFX}:CA \
en_GB-1.20.zip:GB
DIST_SUBDIR= ${PORTNAME}
2011-07-20 11:35:28 +02:00
MAINTAINER= office@FreeBSD.org
COMMENT= English hunspell dictionaries
2011-07-20 11:35:28 +02:00
2014-07-16 19:48:46 +02:00
# en_CA and en_US are licensed under BSD
# en_GB is licensed under LGPL3
LICENSE= BSD3CLAUSE LGPL3
LICENSE_COMB= multi
2014-03-10 18:25:25 +01:00
USES= zip
2011-07-20 11:35:28 +02:00
NO_BUILD= yes
NO_WRKSUBDIR= yes
2011-07-20 11:35:28 +02:00
PLIST_FILES= %%DATADIR%%/en_CA.aff \
%%DATADIR%%/en_CA.dic \
%%DATADIR%%/en_GB.dic \
%%DATADIR%%/en_GB.aff \
%%DATADIR%%/en_US.aff \
%%DATADIR%%/en_US.dic
PLIST_DIRSTRY= %%DATADIR%%
2011-07-20 11:35:28 +02:00
GBALIASES= en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN \
en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW
2011-07-20 11:35:28 +02:00
USALIASES= en_PH
.for ALIAS in ${GBALIASES} ${USALIASES}
PLIST_FILES+= %%DATADIR%%/${ALIAS}.aff \
%%DATADIR%%/${ALIAS}.dic
.endfor
2011-07-20 11:35:28 +02:00
do-install:
2013-09-23 23:34:48 +02:00
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/*.aff ${WRKSRC}/*.dic ${STAGEDIR}${DATADIR}/
2011-07-20 11:35:28 +02:00
.for ALIAS in ${GBALIASES}
2013-09-23 23:34:48 +02:00
${LN} -s en_GB.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff
${LN} -s en_GB.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic
2011-07-20 11:35:28 +02:00
.endfor
.for ALIAS in ${USALIASES}
2013-09-23 23:34:48 +02:00
${LN} -s en_US.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff
${LN} -s en_US.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic
2011-07-20 11:35:28 +02:00
.endfor
.include <bsd.port.mk>