aboutsummaryrefslogtreecommitdiff
path: root/hebrew/hspell/files/patch-Makefile
blob: e1604f465087eeff1638c7d6a20ba6dc5a904f92 (plain) (blame)
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
--- Makefile.orig	Thu May  8 13:16:35 2003
+++ Makefile	Thu May  8 13:17:36 2003
@@ -14,10 +14,10 @@
 
 # build and installation paths
 DESTDIR =
-PREFIX = /usr/local
+PREFIX ?= /usr/local
 BIN = $(PREFIX)/bin
 SHARE = $(PREFIX)/share/hspell
-LIBEXEC = $(PREFIX)/lib/hspell
+LIBEXEC = $(PREFIX)/libexec/hspell
 MAN1 = $(PREFIX)/man/man1
 
 
@@ -51,8 +51,8 @@
 	sed 's+^my @dictionaries=.*$$+my @dictionaries=("gzip -dc $(SHARE)/wordlist.wgz|$(LIBEXEC)/wunzip|");+; s+my @likelyerror.*$$+my @likelyerror_dictionaries=("$(SHARE)/likelyerrors");+; s+@spellinghints_dictionaries=("spellinghints")+@spellinghints_dictionaries=("$(SHARE)/spellinghints")+' < hspell.pl > $@
 	chmod 755 $@
 
-CFLAGS=-O
-LDFLAGS=-s
+CFLAGS?=-O
+LDFLAGS?=-s
 wunzip:
 
 # experimental, not currently in use: