summaryrefslogtreecommitdiff
path: root/textproc/aspell/Makefile
blob: d0c96643af9fcfdbe2e3b9090ccd088704806eac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	aspell
# Version required:	0.27.2
# Date created:		7 December 1998
# Whom:			Josh Gilliam <josh@quick.net>
#
# $Id: Makefile,v 1.6 1999/08/17 19:36:53 cpiazza Exp $
#

DISTNAME=	aspell-.27.2
PKGNAME=	aspell-0.27.2
CATEGORIES=	textproc
MASTER_SITES=	http://metalab.unc.edu/kevina/aspell/ \
		ftp://ftp.kddlabs.co.jp/pub/Tools/aspell/ \
		ftp://maroon.webmaster.com/pub/aspell/

MAINTAINER=	ade@lovett.com

.include <bsd.port.pre.mk>
.if ${OSVERSION} < 400004
BUILD_DEPENDS=	g++295:${PORTSDIR}/lang/egcs
CC=	gcc295
CXX=	g++295
.endif

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CXXFLAGS="${CXXFLAGS} -I${WRKSRC}"
USE_GMAKE=	yes
MAKE_ARGS=	NOPORTDOCS=${NOPORTDOCS}

WORDLIST?=	/usr/share/dict/words

.if !exists(${WORDLIST})
WORDLIST=	${WRKSRC}/english.wl
.endif

post-patch:
	@${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.pre_sed
	@${SED} -e 's%@WORDLIST@%${WORDLIST}%' \
	< ${WRKSRC}/Makefile.in.pre_sed > ${WRKSRC}/Makefile.in
	@${ECHO_MSG} "===>  Using ${WORDLIST} as English word list."

pre-install:
	@${RM} -f ${WRKSRC}/manual/man-html/C_Credits.html \
	          ${WRKSRC}/manual/man-html/D_Glossary.html \
	          ${WRKSRC}/manual/man-html/E_Copyright.html \
	          ${WRKSRC}/manual/man-text/C_Credits.txt \
	          ${WRKSRC}/manual/man-text/D_Glossary.txt \
	          ${WRKSRC}/manual/man-text/E_Copyright.txt

.include <bsd.port.post.mk>