diff options
author | cjep <cjep> | 2003-01-10 15:30:24 +0000 |
---|---|---|
committer | cjep <cjep> | 2003-01-10 15:30:24 +0000 |
commit | 961c5dab2261175cc464d9bf85c4aa562d9f592a (patch) | |
tree | 234be77fabeeb549cea7c6d82add7c13e480e587 /textproc/ispell-base | |
parent | 78707695d5ee5ff086b5257faab88e106deb2f84 (diff) | |
download | pkgsrc-961c5dab2261175cc464d9bf85c4aa562d9f592a.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" |