1996770c3c
Fixes build. Also clean up insecure-temporary-files. PKGREVISION -> 1.
81 lines
1.9 KiB
Text
81 lines
1.9 KiB
Text
$NetBSD: patch-aa,v 1.4 2012/12/21 10:29:46 dholland Exp $
|
|
|
|
Configure for pkgsrc.
|
|
DESTDIR support.
|
|
|
|
--- 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 ${DESTDIR}$(INSTALL)
|
|
+ $(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Isearch ${DESTDIR}$(INSTALL)
|
|
+ $(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Iutil ${DESTDIR}$(INSTALL)
|
|
+ $(BSD_INSTALL_PROGRAM) $(BIN_DIR)/Iget ${DESTDIR}$(INSTALL)
|
|
+ $(BSD_INSTALL_PROGRAM) $(BIN_DIR)/zsearch ${DESTDIR}$(INSTALL)
|
|
+ $(BSD_INSTALL_PROGRAM) $(BIN_DIR)/zpresent ${DESTDIR}$(INSTALL)
|
|
@echo ""
|
|
@echo "To install Isearch-cgi, cd into the Isearch-cgi directory"
|
|
@echo "Then run the configure script"
|