summaryrefslogtreecommitdiff
path: root/textproc/ispell-british
diff options
context:
space:
mode:
authorcjep <cjep@pkgsrc.org>2003-01-10 15:30:46 +0000
committercjep <cjep@pkgsrc.org>2003-01-10 15:30:46 +0000
commitf6aeb07bb8b0e2fe19e335b6fdd6e08c1c76f66d (patch)
tree8c18fe04d4730e4160ab990cb9c3e8029dfebda1 /textproc/ispell-british
parent7494168fb3e595a907179f7d772dc6387ba2d08e (diff)
downloadpkgsrc-f6aeb07bb8b0e2fe19e335b6fdd6e08c1c76f66d.tar.gz
Compatibility with SunOS
Diffstat (limited to 'textproc/ispell-british')
-rw-r--r--textproc/ispell-british/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/textproc/ispell-british/Makefile b/textproc/ispell-british/Makefile
index eedc9cba958..93bcb3de768 100644
--- a/textproc/ispell-british/Makefile
+++ b/textproc/ispell-british/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2001/04/15 21:22:15 agc Exp $
+# $NetBSD: Makefile,v 1.5 2003/01/10 15:30:46 cjep Exp $
#
DISTNAME= ispell-3.1.20
@@ -20,6 +20,13 @@ DICT_LANG= british
MAKE_FLAGS+= TMPDIR="${WRKDIR}"
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+WORDS= /usr/dict/words
+.else
+WORDS= /usr/share/dict/words
+.endif
+
do-configure:
cd ${WRKSRC}; \
${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.samp >local.h; \
@@ -27,7 +34,7 @@ do-configure:
${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 "/usr/share/dict/words"' >> local.h ; \
+ ${ECHO} '#define WORDS "${WORDS}"' >> local.h ; \
${ECHO} '#undef ELISPDIR' >> local.h; \
${ECHO} "#define ELISPDIR \"${PREFIX}/share/emacs/site-lisp\"" >> local.h