diff options
author | rodent <rodent@pkgsrc.org> | 2013-04-24 02:20:36 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2013-04-24 02:20:36 +0000 |
commit | dcfc93316e81ab0ad3d750c5b22a2184f97c0b46 (patch) | |
tree | 94b50073c9bbbafed4f0ad14accbf17d48cf8d86 /textproc/ispell/Makefile | |
parent | 183ca5f95329cf1558c08d3d6058746c572a4d39 (diff) | |
download | pkgsrc-dcfc93316e81ab0ad3d750c5b22a2184f97c0b46.tar.gz |
Moving ispell-* packages as discussed on tech-pkg@. Reasons being:
1) Shorter package name;
2) Be consistent with kde3-l18n-*, kde4-l10n-*, hunspell-*, aspell-*,
lang-* PKG_OPTIONS;
3) Simplify modifications to PKGNAME in some Makefiles;
4) Accordance with international language naming standards;
and rename the ispell-base package to ispell, to be consistent with aspell
and hunspell. Bump PKGREVISION where necessary.
Diffstat (limited to 'textproc/ispell/Makefile')
-rw-r--r-- | textproc/ispell/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile new file mode 100644 index 00000000000..592bc2f6b0f --- /dev/null +++ b/textproc/ispell/Makefile @@ -0,0 +1,58 @@ +# $NetBSD: Makefile,v 1.25 2013/04/24 02:20:36 rodent Exp $ +# + +DISTNAME= ispell-3.3.02 +CATEGORIES= textproc +MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://ficus-www.cs.ucla.edu/geoff/ispell.html +COMMENT= Interactive spelling checker + +USE_TOOLS+= mktemp:run yacc +INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 + +MAKE_FLAGS+= TMPDIR=${WRKDIR:Q} +MAKE_JOBS_SAFE= no + +.include "../../mk/bsd.prefs.mk" + +.if exists(/usr/include/inttypes.h) && empty(MACHINE_PLATFORM:MIRIX-5.3-*) +CFLAGS+= -DHAVE_INTTYPES_H +.endif + + +.if ${OPSYS} == "SunOS" +EXTRADICT=/usr/dict/words +.else +EXTRADICT=/usr/share/dict/words +.endif + +.if !exists(${EXTRADICT}) +EXTRADICT= +.endif + +do-configure: + cd ${WRKSRC}; \ + ${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.bsd >local.h; \ + ${ECHO} "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=${EXTRADICT}}\"" >>local.h; \ + ${ECHO} "#define MASTERHASH \"americanmed+.hash\"" >>local.h; \ + ${ECHO} "#define MASKBITS 64" >>local.h; \ + ${ECHO} "#undef WORDS" >> local.h ; \ + ${ECHO} '#define WORDS "${EXTRADICT}"' >> local.h ; \ + ${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> local.h ; \ + ${ECHO} "#define LIBES \"${LDFLAGS}\"" >> local.h ; \ + ${ECHO} "#define MAN1DIR \"${PREFIX}/${PKGMANDIR}/man1\"" >> local.h ; \ + ${ECHO} "#define MAN45DIR \"${PREFIX}/${PKGMANDIR}/man5\"" >> local.h ; +.if ${OPSYS} == "SunOS" + cd ${WRKSRC}; \ + ${ECHO} "#define USG" >> local.h; +.endif +.if ${OPSYS} == "Interix" + cd ${WRKSRC}; \ + ${ECHO} "#define SORTTMP \"\"" >> local.h; \ + ${ECHO} "#define MAKE_SORTTMP \"\"" >> local.h; +.endif + +.include "../../mk/termcap.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |