pkgsrc/textproc/ispell-base/Makefile

55 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2003/03/29 12:42:38 jmmv Exp $
#
DISTNAME= ispell-3.1.20
PKGNAME= ispell-base-3.1.20
PKGREVISION= 2
WRKSRC= ${WRKDIR}/ispell-3.1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
PATCH_SITES= ftp://kdstevens.com/pub/stevens/
PATCHFILES= ispell-patch1.gz
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnu.org/software/ispell/ispell.html
COMMENT= Interactive spelling checker
CONFLICTS+= ispell-[0-9]*
MAKE_FLAGS+= TMPDIR="${WRKDIR}"
INFO_FILES= ispell.info
.if exists(/usr/include/inttypes.h)
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=${EXTRADICT}}\"" >>local.h; \
${ECHO} "#define MASKBITS 64" >>local.h; \
${ECHO} "#undef 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"