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