2004-01-20 13:18:15 +01:00
|
|
|
# $NetBSD: Makefile,v 1.9 2004/01/20 12:26:49 agc Exp $
|
2001-03-14 13:12:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ispell-3.1.20
|
|
|
|
PKGNAME= ispell-${DICT_LANG}-3.1.20
|
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-03-14 13:12:21 +01:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/ispell/ispell.html
|
|
|
|
COMMENT= British dictionary for interactive spelling checker
|
|
|
|
|
2001-03-15 16:27:40 +01:00
|
|
|
DEPENDS+= ispell-base>=3.1.20:../../textproc/ispell-base
|
2001-03-14 13:12:21 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/ispell-3.1
|
2001-03-14 13:12:21 +01:00
|
|
|
ALL_TARGET= config.sh all-languages
|
|
|
|
|
|
|
|
DICT_LANG= british
|
|
|
|
|
2001-04-15 23:22:15 +02:00
|
|
|
MAKE_FLAGS+= TMPDIR="${WRKDIR}"
|
|
|
|
|
2003-01-10 16:30:46 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
WORDS= /usr/dict/words
|
|
|
|
.else
|
|
|
|
WORDS= /usr/share/dict/words
|
|
|
|
.endif
|
|
|
|
|
2001-03-14 13:12:21 +01:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.samp >local.h; \
|
|
|
|
${ECHO} "#undef NO8BIT" >> 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 ; \
|
2003-01-10 16:30:46 +01:00
|
|
|
${ECHO} '#define WORDS "${WORDS}"' >> local.h ; \
|
2001-03-14 13:12:21 +01:00
|
|
|
${ECHO} '#undef ELISPDIR' >> local.h; \
|
|
|
|
${ECHO} "#define ELISPDIR \"${PREFIX}/share/emacs/site-lisp\"" >> local.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${CP} ${WRKSRC}/languages/${DICT_LANG}/${DICT_LANG}xlg.hash ${PREFIX}/lib
|
|
|
|
cd ${PREFIX}/lib; \
|
|
|
|
${RM} -f ${DICT_LANG}.hash; \
|
|
|
|
${LN} ${DICT_LANG}xlg.hash ${DICT_LANG}.hash
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|