summaryrefslogtreecommitdiff
path: root/textproc/ispell/Makefile
blob: 33f893e47c048c2ee10f33256801476261a256da (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $NetBSD: Makefile,v 1.16 1999/02/21 21:25:03 agc Exp $
# FreeBSD Id: Makefile,v 1.21 1997/08/13 23:29:52 jmz Exp
#

DISTNAME=	ispell-3.1.20
CATEGORIES=	textproc
MASTER_SITES=	ftp://ftp.cs.ucla.edu/pub/ispell-3.1/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.gnu.org/software/ispell/ispell.html

WRKSRC=		${WRKDIR}/ispell-3.1

MAKE_FLAGS=	TMPDIR=${WRKDIR}
SCRIPTS_ENV=	"LANG=${ISPELL_LANG}"

USE_GTEXINFO=	yes
INFO_FILES=	ispell.info

.include "../../mk/bsd.prefs.mk"

_INTTYPES!=	if [ -e /usr/include/inttypes.h ]; then ${ECHO} "Exists"; else ${ECHO} "No go"; fi

.if (${_INTTYPES} == "Exists")
CFLAGS+= -DHAVE_INTTYPES_H
.endif

pre-extract pre-build pre-install:
.if !defined(ISPELL_FR)
	@${ECHO} '******************************************************'
	@${ECHO} '* Note that you can build a french/english version   *'
	@${ECHO} '* by typing "make french"                            *'
	@${ECHO} '******************************************************'
.else
EXTRA_DICT=	francais-IREQ-1.4.tar.gz
MASTER_SITES+=	ftp://ftp.robot.ireq.ca/pub/ispell/
DISTFILES+=	${EXTRA_DICT}
.endif

pre-extract:
.if !defined(ISPELL_LANG)
	@${ECHO} '******************************************************'
	@${ECHO} '* Note that you can build a british version by       *'
	@${ECHO} '* typing "make british" following a "make clean"     *'
	@${ECHO} '******************************************************'
.endif

pre-configure:
.if defined(EXTRA_DICT)
	@${ECHO} ${EXTRA_DICT} > ${WRKDIR}/extra_dict
.else
	@${ECHO} -n
.endif

post-configure:
	@${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h

british:
	@${ECHO} "Okay, making a british version of ispell...."
	@${MAKE} ${.MAKEFLAGS} ISPELL_LANG=british all

french:
	@${ECHO} "Okay, making a french/english version of ispell...."
	@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes

pre-install:
	@${MKDIR} ${PREFIX}/share/emacs/site-lisp

.include "../../mk/bsd.pkg.mk"