summaryrefslogtreecommitdiff
path: root/textproc/aspell-slovak/patches/patch-aa
blob: 619d189824f001fac91e2aed3fc1542588183cdd (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
57
58
59
$NetBSD: patch-aa,v 1.2 2003/01/02 12:21:47 salo Exp $

--- Makefile.orig	Mon Dec 23 18:25:39 2002
+++ Makefile	Thu Jan  2 12:47:18 2003
@@ -1,27 +1,25 @@
-PREFIX=/usr
-
 ASPELLDATA=${PREFIX}/share/aspell
 ASPELLDICT=${PREFIX}/lib/aspell
 ASPELLDOC=${PREFIX}/share/doc/aspell-slovak
 PSPELLDATA=${PREFIX}/share/pspell
 
-ASPELL=aspell
-WORD_LIST_COMPRESS=word-list-compress
-INSTALL_DATA=install -c -m 644
-INSTALL_DATA_DIR=mkdir -p
+ASPELL=${PREFIX}/bin/aspell
+WORD_LIST_COMPRESS=${PREFIX}/bin/word-list-compress
+INSTALL_DATA=${BSD_INSTALL_DATA}
+INSTALL_DATA_DIR=${BSD_INSTALL_DATA_DIR}
 
 all: slovak
 
 slovak: decompress
 	$(ASPELL) --lang=slovak create master ./slovak-master < slovak-master.raw
 	$(ASPELL) --lang=slovak create master ./slovak-extend < slovak-extend.raw
-	echo $(ASPELLDICT) > sk-slovak-aspell.pwli
+	${ECHO} $(ASPELLDICT) > sk-slovak-aspell.pwli
 
 decompress: aspell.dat
 	$(WORD_LIST_COMPRESS) decompress < aspell.dat > slovak-master.raw
 	$(WORD_LIST_COMPRESS) decompress < aspell-misc.dat > tmp.raw
 	$(WORD_LIST_COMPRESS) decompress < aspell-skratky.dat >> tmp.raw
-	sort -uf <tmp.raw >  slovak-extend.raw
+	${SORT} -uf < tmp.raw >  slovak-extend.raw
 
 install: install-data install-doc
 
@@ -29,17 +27,18 @@
 	${INSTALL_DATA} slovak.dat $(ASPELLDATA)
 	${INSTALL_DATA} slovak_phonet.dat $(ASPELLDATA)
 	${INSTALL_DATA} sk-slovak-aspell.pwli $(PSPELLDATA)
-	${INSTALL_DATA} slovak-master $(ASPELLDICT)
+	${INSTALL_DATA} slovak-master $(ASPELLDICT)/slovak
 	${INSTALL_DATA} slovak-extend $(ASPELLDICT)
 	${INSTALL_DATA} slovak.multi $(ASPELLDICT)
 
 install-doc:
 	${INSTALL_DATA_DIR} $(ASPELLDOC)
+	${INSTALL_DATA_DIR} $(PREFIX)/share/examples/aspell-slovak
 	${INSTALL_DATA} AUTHORS $(ASPELLDOC)
 	${INSTALL_DATA} CHANGELOG $(ASPELLDOC)
 	${INSTALL_DATA} Copyright $(ASPELLDOC)
 	${INSTALL_DATA} README $(ASPELLDOC)
-	${INSTALL_DATA} sample.aspell.conf $(ASPELLDOC)
+	${INSTALL_DATA} sample.aspell.conf $(PREFIX)/share/examples/aspell-slovak/aspell.conf.default
 
 uninstall:
 	rm $(ASPELLDOC)/AUTHORS