diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ispell/Makefile | 18 | ||||
-rw-r--r-- | textproc/ispell/scripts/configure | 12 |
2 files changed, 28 insertions, 2 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile index d004d705363c..d0d9d19032ea 100644 --- a/textproc/ispell/Makefile +++ b/textproc/ispell/Makefile @@ -3,7 +3,7 @@ # Date created: 6 November 1994 # Whom: jmz # -# $Id$ +# $Id: Makefile,v 1.8 1995/04/15 03:45:43 asami Exp $ # DISTNAME= ispell-3.1 @@ -22,6 +22,14 @@ DISTFILES+= ${EXTRA_DICT} MAKE_FLAGS= TMPDIR=${.CURDIR} -f +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 @@ -29,6 +37,10 @@ pre-configure: @echo -n .endif +british: + @echo "Okay, making a british version of ispell...." + @${MAKE} ${.MAKEFLAGS} LANG=british all + pre-install: @mkdir -p ${PREFIX}/bin @mkdir -p ${PREFIX}/lib @@ -36,3 +48,7 @@ pre-install: @mkdir -p ${PREFIX}/man/man4 .include <bsd.port.mk> + + + + diff --git a/textproc/ispell/scripts/configure b/textproc/ispell/scripts/configure index efad2d30d55f..61e3f7ffdd6e 100644 --- a/textproc/ispell/scripts/configure +++ b/textproc/ispell/scripts/configure @@ -24,9 +24,19 @@ if [ -f $WRKDIR/extra_dict ]; then ;; esac fi + sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1; echo "#undef NO8BIT" >> local.h -echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1; +case $LANG in + british) + echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1; + echo '#define MASTERHASH "britishxlg.hash"' >> local.h + break ;; + *) + echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1; + :;; +esac + echo "#undef WORDS" >> local.h echo '#define WORDS "/usr/share/dict/words"' >> local.h echo '#undef ELISPDIR' >> local.h |