2012-10-25 08:55:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2012/10/25 06:55:57 asau Exp $
|
2001-03-14 13:12:21 +01:00
|
|
|
#
|
|
|
|
|
2005-07-07 14:44:44 +02:00
|
|
|
DISTNAME= ispell-3.3.02
|
|
|
|
PKGNAME= ispell-${DICT_LANG}-3.3.02
|
2001-03-14 13:12:21 +01:00
|
|
|
CATEGORIES= textproc
|
2004-12-01 13:23:30 +01:00
|
|
|
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/
|
2001-03-14 13:12:21 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-12-01 13:23:30 +01:00
|
|
|
HOMEPAGE= http://ficus-www.cs.ucla.edu/geoff/ispell.html
|
2001-03-14 13:12:21 +01:00
|
|
|
COMMENT= British dictionary for interactive spelling checker
|
|
|
|
|
2005-07-07 14:44:44 +02:00
|
|
|
DEPENDS+= ispell-base>=3.3.02:../../textproc/ispell-base
|
2001-03-14 13:12:21 +01:00
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= config.sh all-languages
|
2001-03-14 13:12:21 +01:00
|
|
|
|
|
|
|
DICT_LANG= british
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_FLAGS+= TMPDIR=${WRKDIR:Q}
|
2001-04-15 23:22:15 +02:00
|
|
|
|
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
|
|
|
|
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}; \
|
2005-07-07 14:44:44 +02:00
|
|
|
${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.bsd >local.h; \
|
2001-03-14 13:12:21 +01:00
|
|
|
${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 ; \
|
2005-12-05 21:49:47 +01:00
|
|
|
${ECHO} '#define WORDS "${WORDS}"' >> local.h
|
2001-03-14 13:12:21 +01:00
|
|
|
|
|
|
|
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; \
|
2001-03-14 13:12:21 +01:00
|
|
|
${RM} -f ${DICT_LANG}.hash; \
|
|
|
|
${LN} ${DICT_LANG}xlg.hash ${DICT_LANG}.hash
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|