e26a9ed756
run-time dependency (DEPENDS) on a tool is to append a ":run" modifier to the tool name, e.g., USE_TOOLS+= perl:run Tools without modifiers or with an explicit ":build" modifier will cause build dependencies (BUILD_DEPENDS) on those tools to be added. This makes the notation a bit more compact.
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2005/07/15 20:14:03 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= ispell-3.3.02
|
|
PKGNAME= ispell-base-3.3.02
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://ficus-www.cs.ucla.edu/geoff/ispell.html
|
|
COMMENT= Interactive spelling checker
|
|
|
|
CONFLICTS+= ispell-[0-9]*
|
|
|
|
USE_TOOLS+= mktemp:run
|
|
|
|
MAKE_FLAGS+= TMPDIR="${WRKDIR}"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if exists(/usr/include/inttypes.h) && ${LOWER_OPSYS} != "irix5.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
|
|
.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/bsd.pkg.mk"
|