pkgsrc/textproc/ispell-en_GB/Makefile

47 lines
1.4 KiB
Makefile
Raw Normal View History

2016-02-26 11:24:10 +01:00
# $NetBSD: Makefile,v 1.6 2016/02/26 10:32:47 jperkin Exp $
#
DISTNAME= ispell-3.4.00
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
PATCHDIR= ${.CURDIR}/../../textproc/ispell/patches
DISTINFO_FILE= ${.CURDIR}/../../textproc/ispell/distinfo
BUILD_TARGET= config.sh all-languages
DICT_LANG= british
MAKE_FLAGS+= TMPDIR=${WRKDIR:Q}
2009-02-17 15:43:05 +01:00
INSTALLATION_DIRS= lib
2009-03-09 22:37:17 +01:00
MAKE_JOBS_SAFE= no
2009-02-17 15:43:05 +01:00
2016-02-26 11:24:10 +01:00
OPSYSVARS+= WORDS
WORDS.SunOS= /usr/dict/words
WORDS.*= /usr/share/dict/words
2003-01-10 16:30:46 +01:00
do-configure:
cd ${WRKSRC}; \
2005-07-07 14:44:44 +02:00
${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.bsd >local.h; \
${ECHO} "#define LANGUAGES \"{${DICT_LANG},MASTERDICTS=${DICT_LANG}.xlg,HASHFILES=${DICT_LANG}xlg.hash,EXTRADICT=}\"" >>local.h; \
${ECHO} '#define MASTERHASH "${DICT_LANG}xlg.hash"' >> local.h ; \
${ECHO} "#undef WORDS" >> local.h ; \
${ECHO} '#define WORDS "${WORDS}"' >> local.h
do-install:
2009-02-17 15:43:05 +01:00
${CP} ${WRKSRC}/languages/${DICT_LANG}/${DICT_LANG}xlg.hash ${DESTDIR}${PREFIX}/lib
cd ${DESTDIR}${PREFIX}/lib; \
${RM} -f ${DICT_LANG}.hash; \
${LN} ${DICT_LANG}xlg.hash ${DICT_LANG}.hash
.include "../../mk/bsd.pkg.mk"