diff options
author | cjep <cjep@pkgsrc.org> | 2003-01-10 15:30:24 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2003-01-10 15:30:24 +0000 |
commit | 7494168fb3e595a907179f7d772dc6387ba2d08e (patch) | |
tree | 234be77fabeeb549cea7c6d82add7c13e480e587 /textproc/ispell-base | |
parent | 32733224d5441c8cb49f2a27b5ddcc7f2c76b568 (diff) | |
download | pkgsrc-7494168fb3e595a907179f7d772dc6387ba2d08e.tar.gz |
Make this compile on SunOS
Diffstat (limited to 'textproc/ispell-base')
-rw-r--r-- | textproc/ispell-base/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/textproc/ispell-base/Makefile b/textproc/ispell-base/Makefile index 7af20d0a31b..aef78911cec 100644 --- a/textproc/ispell-base/Makefile +++ b/textproc/ispell-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2002/08/25 21:51:16 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2003/01/10 15:30:24 cjep Exp $ # DISTNAME= ispell-3.1.20 @@ -26,19 +26,32 @@ INFO_FILES= ispell.info CFLAGS+= -DHAVE_INTTYPES_H .endif + USE_BUILDLINK2= yes +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +EXTRADICT=/usr/dict/words +.else +EXTRADICT=/usr/share/dict/words +.endif + do-configure: cd ${WRKSRC}; \ ${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.samp >local.h; \ ${ECHO} "#undef NO8BIT" >> local.h ; \ - ${ECHO} "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}\"" >>local.h; \ + ${ECHO} "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=${EXTRADICT}}\"" >>local.h; \ ${ECHO} "#define MASKBITS 64" >>local.h; \ ${ECHO} "#undef WORDS" >> local.h ; \ - ${ECHO} '#define WORDS "/usr/share/dict/words"' >> local.h ; \ + ${ECHO} '#define WORDS "${EXTRADICT}"' >> local.h ; \ ${ECHO} '#undef ELISPDIR' >> local.h; \ ${ECHO} "#define ELISPDIR \"${PREFIX}/share/emacs/site-lisp\"" >> local.h; \ ${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> local.h +.if ${OPSYS} == "SunOS" + cd ${WRKSRC}; \ + ${ECHO} "#define USG" >> local.h; +.endif .include "../../mk/texinfo.mk" .include "../../mk/bsd.pkg.mk" |