1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

"I have made a couple of changes to the ispell port so that

you can have either a British dictionary or an American dictionary
as they are already built into the prog."
Reviewed by:
Submitted by:	 Chris Stenton <jacs@gnome.co.uk>
Obtained from:
This commit is contained in:
Jean-Marc Zucconi 1995-07-21 13:22:21 +00:00
parent 2269d793e3
commit c60de042c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2001
2 changed files with 28 additions and 2 deletions

View File

@ -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>

View File

@ -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