summaryrefslogtreecommitdiff
path: root/textproc/isearch/patches/patch-aa
blob: 8a466219e626ce0081b460ede21d45ef5f4da80d (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
$NetBSD: patch-aa,v 1.2 2002/05/03 22:36:09 jtb Exp $

--- Makefile.orig	Mon Apr 29 11:36:52 2002
+++ Makefile	Mon Apr 29 11:42:53 2002
@@ -18,14 +18,14 @@
 #       zsearch - XML command line searching utility
 #       zpresent - XML command line document retrieval utility
 #
-SHELL=/bin/sh
+SHELL=$(SH)
 
 #
 # Compiler
 #
-CC=g++
+CC=$(CXX)
 
-DTCC=g++
+DTCC=$(CXX)
 #CC=/sw/CenterLine/bin/CC
 
 #
@@ -39,13 +39,13 @@
 #
 # for Solaris, SunOS, Ultrix, OSF
 #
-#CFLAGS=-O2 -DUNIX -DMULTI
-#CFLAGS=-O2 -DUNIX
+#CFLAGS= -O2 -DUNIX -DMULTI
+CFLAGS+= -DUNIX
 
 #
 # for Linux
 #
-CFLAGS=-O2 -DUNIX -fwritable-strings
+#CFLAGS=-O2 -DUNIX -fwritable-strings
 #CFLAGS=-g -fwritable-strings -Wall -Wno-unused -DUNIX # -DVERBOSE -DDEBUG
 
 #
@@ -76,8 +76,8 @@
 #
 # Where should I install executables (make install)?
 #
-INSTALL=/usr/local/bin
-CGI_INSTALL=/home/httpd/cgi-bin
+INSTALL=$(PREFIX)/bin
+CGI_INSTALL=$(PREFIX)/libexec/cgi-bin
 
 #
 # Executables Directory
@@ -116,7 +116,7 @@
 #
 
 RM = rm -f
-LDFLAGS=
+#LDFLAGS=
 VER=1.47.01
 #DIST=Isearch-$(VER)
 DIST=Isearch
@@ -189,12 +189,12 @@
 
 install:
 	@echo "*** Copying Isearch executables to $(INSTALL) ***"
-	cp $(BIN_DIR)/Iindex $(INSTALL)
-	cp $(BIN_DIR)/Isearch $(INSTALL)
-	cp $(BIN_DIR)/Iutil $(INSTALL)
-	cp $(BIN_DIR)/Iget $(INSTALL)
-	cp $(BIN_DIR)/zsearch $(INSTALL)
-	cp $(BIN_DIR)/zpresent $(INSTALL)
+	$(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Iindex $(INSTALL)
+	$(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Isearch $(INSTALL)
+	$(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Iutil $(INSTALL)
+	$(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Iget $(INSTALL)
+	$(BSD_INSTALL_PROGRAM) $(BIN_DIR)/zsearch $(INSTALL)
+	$(BSD_INSTALL_PROGRAM) $(BIN_DIR)/zpresent $(INSTALL)
 	@echo ""
 	@echo "To install Isearch-cgi, cd into the Isearch-cgi directory"
 	@echo "Then run the configure script"