-- Aspell is an Open Source spell checker designed to eventually replace Ispell. Its main feature is that it does a much better job of coming up with possible suggestions than Ispell does. In fact recent tests shows that it even does better than Microsoft Word 97's spell checker or just about any other spell checker I have seen. It also has support for checking (La)TeX and Html files, and run time support for other non English languages. Aspell also is a library however the recommend way to use aspell is through the Pspell library as the actual interface to the aspell library is constantly changing. WWW: http://aspell.sourceforge.net/
31 lines
1.1 KiB
Makefile
31 lines
1.1 KiB
Makefile
# $OpenBSD: danish-Makefile,v 1.1.1.1 2001/05/23 21:25:43 lebel Exp $
|
|
|
|
CONFIG=dansk.dat
|
|
PHONET=dansk_phonet.dat
|
|
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
|
|
pkgdatadir = `$(WRKSRC)/src/aspell dump config | grep "data-dir current" | grep -v "local-data-dir current" | sed 's/^.*: \(.*\)$$/\1/'`
|
|
pkglibdir = `$(WRKSRC)/src/aspell dump config | grep "dict-dir current" | grep -v "local-data-dir current" | sed 's/^.*: \(.*\)$$/\1/'`
|
|
pspell_pkgdatadir=`pspell-config pkgdatadir`
|
|
|
|
all: build da-aspell.pwli
|
|
|
|
build:
|
|
@(for i in $(WRKSRC)/data/*.dat; do ln -sf $$i; done)
|
|
./unsq < words-da.sq | $(WRKSRC)/src/aspell --data-dir=. --lang=dansk \
|
|
create master ./dansk
|
|
|
|
da-aspell.pwli:
|
|
@echo $(pkglibdir)/dansk > da-aspell.pwli
|
|
|
|
install: dansk
|
|
${INSTALL} -d $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(pkglibdir) $(DESTDIR)$(pspell_pkgdatadir)
|
|
${INSTALL_DATA} $(CONFIG) $(DESTDIR)$(pkgdatadir)
|
|
${INSTALL_DATA} $(PHONET) $(DESTDIR)$(pkgdatadir)
|
|
${INSTALL_DATA} ./dansk $(DESTDIR)$(pkglibdir)
|
|
ln -sf dansk $(DESTDIR)$(pkglibdir)/danish
|
|
${INSTALL_DATA} da-aspell.pwli $(DESTDIR)$(pspell_pkgdatadir)
|
|
|
|
# vim:sw=8:tw=72:ts=8:ft=make
|