blob: 0d754f29b139164a3e7bd46f78bda5486513ad48 (
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
|
#!/bin/sh
#
# $NetBSD: configure,v 1.2 1998/08/07 11:14:14 agc Exp $
#
if [ "`echo a|sed -e P`" = "aa" ]; then
echo You need a newer version of sed. Use sed from -current or gnu sed
exit 1
fi
if [ ! -f /usr/share/dict/words ]; then
echo "you need to install /usr/share/dict/words from the 'dict' distribution first"
exit 1
fi
cd $WRKSRC || exit 1;
if [ -f $WRKDIR/extra_dict ]; then
extra_dict=`cat $WRKDIR/extra_dict`;
case $extra_dict in
francais-IREQ*)
mkdir -p $WRKSRC/languages/francais-IREQ
LOCAL=' {francais-IREQ}'
for i in $WRKDIR/[A-Za-z]*; do
if [ -f $i ]; then cp $i $WRKSRC/languages/francais-IREQ/; fi
done
(echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
>> $WRKSRC/languages/francais-IREQ/Makefile
;;
*)
echo "I don't now how to configure ispell with $extra_dict"
exit 1;
;;
esac
fi
sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
echo "#undef NO8BIT" >> local.h
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
echo "#define ELISPDIR \"$PREFIX/share/emacs/site-lisp\"" >> local.h
mv Makefile Makefile.orig
sed -e 's/^[ ]*$/\
/' <Makefile.orig >Makefile
exit 0;
|