2012-10-25 08:55:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.37 2012/10/25 06:55:57 asau Exp $
|
2001-03-14 13:10:22 +01:00
|
|
|
#
|
|
|
|
|
2005-07-07 14:42:20 +02:00
|
|
|
DISTNAME= ispell-3.3.02
|
|
|
|
PKGNAME= ispell-base-3.3.02
|
2001-03-14 13:10:22 +01:00
|
|
|
CATEGORIES= textproc
|
2004-12-01 13:18:21 +01:00
|
|
|
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/
|
2002-06-30 01:51:30 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-11-19 17:59:07 +01:00
|
|
|
HOMEPAGE= http://ficus-www.cs.ucla.edu/geoff/ispell.html
|
2001-03-14 13:10:22 +01:00
|
|
|
COMMENT= Interactive spelling checker
|
|
|
|
|
|
|
|
CONFLICTS+= ispell-[0-9]*
|
|
|
|
|
2006-06-06 23:55:41 +02:00
|
|
|
USE_TOOLS+= mktemp:run yacc
|
2007-03-24 20:21:18 +01:00
|
|
|
INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
|
2005-07-07 14:42:20 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_FLAGS+= TMPDIR=${WRKDIR:Q}
|
2008-10-21 20:25:48 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
2001-03-14 14:49:25 +01:00
|
|
|
|
2004-12-01 13:18:21 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2001-03-14 13:10:22 +01:00
|
|
|
|
2008-12-20 11:31:21 +01:00
|
|
|
.if exists(/usr/include/inttypes.h) && empty(MACHINE_PLATFORM:MIRIX-5.3-*)
|
2001-03-14 13:10:22 +01:00
|
|
|
CFLAGS+= -DHAVE_INTTYPES_H
|
|
|
|
.endif
|
|
|
|
|
2001-06-20 11:29:26 +02:00
|
|
|
|
2003-01-10 16:30:24 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
EXTRADICT=/usr/dict/words
|
|
|
|
.else
|
|
|
|
EXTRADICT=/usr/share/dict/words
|
|
|
|
.endif
|
|
|
|
|
2004-12-01 13:18:21 +01:00
|
|
|
.if !exists(${EXTRADICT})
|
|
|
|
EXTRADICT=
|
|
|
|
.endif
|
|
|
|
|
2001-03-14 13:10:22 +01:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}; \
|
2005-07-07 14:42:20 +02:00
|
|
|
${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.bsd >local.h; \
|
2003-01-10 16:30:24 +01:00
|
|
|
${ECHO} "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=${EXTRADICT}}\"" >>local.h; \
|
2004-12-01 13:18:21 +01:00
|
|
|
${ECHO} "#define MASTERHASH \"americanmed+.hash\"" >>local.h; \
|
2001-03-15 16:22:00 +01:00
|
|
|
${ECHO} "#define MASKBITS 64" >>local.h; \
|
2001-03-14 13:10:22 +01:00
|
|
|
${ECHO} "#undef WORDS" >> local.h ; \
|
2003-01-10 16:30:24 +01:00
|
|
|
${ECHO} '#define WORDS "${EXTRADICT}"' >> local.h ; \
|
2005-12-27 19:27:16 +01:00
|
|
|
${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> local.h ; \
|
2011-12-26 02:50:24 +01:00
|
|
|
${ECHO} "#define LIBES \"${LDFLAGS}\"" >> local.h ; \
|
2005-12-27 19:27:16 +01:00
|
|
|
${ECHO} "#define MAN1DIR \"${PREFIX}/${PKGMANDIR}/man1\"" >> local.h ; \
|
|
|
|
${ECHO} "#define MAN45DIR \"${PREFIX}/${PKGMANDIR}/man5\"" >> local.h ;
|
2003-01-10 16:30:24 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${ECHO} "#define USG" >> local.h;
|
|
|
|
.endif
|
2005-03-24 18:08:02 +01:00
|
|
|
.if ${OPSYS} == "Interix"
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${ECHO} "#define SORTTMP \"\"" >> local.h; \
|
|
|
|
${ECHO} "#define MAKE_SORTTMP \"\"" >> local.h;
|
|
|
|
.endif
|
2001-03-14 13:10:22 +01:00
|
|
|
|
2009-07-21 11:59:09 +02:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
2001-03-14 13:10:22 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|