aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ispell/Makefile
blob: 5e58ddb476140e9b86bc1255a831ba23915c4e52 (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
51
52
53
54
55
56
# New ports collection makefile for:    ispell
# Version required:     3.1.20
# Date created:         6 November 1994
# Whom:                 jmz
#
# $Id: Makefile,v 1.14 1996/11/17 09:05:56 obrien Exp $
#

DISTNAME=   ispell-3.1
PKGNAME=    ispell-3.1.20
CATEGORIES= misc
MASTER_SITES=   ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
DISTFILES=  ispell-3.1.20.tar.gz

MAINTAINER= jmz@FreeBSD.org

# French
#EXTRA_DICT=       francais-IREQ-1.3.tar.gz
#MASTER_SITES+=    ftp://ftp.ireq-robot.hydro.qc.ca/pub/ispell/

DISTFILES+=    ${EXTRA_DICT}

MAKE_FLAGS= TMPDIR=${.CURDIR} -f 
MAN1=       buildhash.1 findaffix.1 ispell.1 munchlist.1 \
        sq.1 tryaffix.1 unsq.1
MAN4=       ispell.4 english.4

pre-extract:
.if !defined(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} LANG=british all 

pre-install:
    @${MKDIR} ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/lib
    @${MKDIR} ${PREFIX}/man/man1
    @${MKDIR} ${PREFIX}/man/man4

.include <bsd.port.mk>