pkgsrc/textproc/ispell-en_GB/Makefile
gutteridge 0e70d0a6a9 ispell & ispell-en_GB: use Makefile.common
Centralize some basics so ispell-en_GB doesn't need to be manually
adjusted every time ispell gets an update. Addresses a lingering issue
from PR pkg/55972 noted by Greg A. Woods.
2021-06-10 23:43:26 +00:00

37 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2021/06/10 23:43:26 gutteridge Exp $
.include "../../textproc/ispell/Makefile.common"
PKGNAME= ${DISTNAME:S/-/-${DICT_LANG}-/1}
CATEGORIES= textproc
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ficus-www.cs.ucla.edu/geoff/ispell.html
COMMENT= British dictionary for interactive spelling checker
CONFLICTS+= ispell-british-[0-9]*
DEPENDS+= ispell>=3.3.02:../../textproc/ispell
WRKSRC= ${WRKDIR}/${DISTNAME}/languages/english
DICT_LANG= british
INSTALLATION_DIRS= lib
OPSYSVARS+= WORDS
WORDS.SunOS= /usr/dict/words
WORDS.*= /usr/share/dict/words
do-build:
cd ${WRKSRC}; \
${MAKE} CONFIG= MUNCHLIST=${PREFIX}/bin/munchlist VARIANTS=british \
EXTRADICT=${WORDS} SHELLDEBUG=+vx AFFIXES=english.aff english.xlg+; \
${MAKE} CONFIG= BUILDHASH=${PREFIX}/bin/buildhash EXTRADICT=${WORDS} \
AFFIXES=english.aff SHELLDEBUG=+vx xlg+.hash
do-install:
${INSTALL_DATA} ${WRKSRC}/english.aff ${DESTDIR}${PREFIX}/lib/${DICT_LANG}.aff
${INSTALL_DATA} ${WRKSRC}/xlg+.hash ${DESTDIR}${PREFIX}/lib/${DICT_LANG}.hash
.include "../../mk/bsd.pkg.mk"