summaryrefslogtreecommitdiff
path: root/www/webalizer/patches/patch-aa
blob: 9f190d49618580c465f81369befe29df113e9f92 (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
$NetBSD: patch-aa,v 1.3 1999/05/08 01:08:53 tv Exp $

--- Makefile.orig	Tue Mar  2 08:37:06 1999
+++ Makefile	Tue Mar 23 21:49:01 1999
@@ -17,14 +17,14 @@
 #LIBS   = -lgd -lm
 
 # These for Linux (most GCC based systems)
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
 CC     = gcc
-CFLAGS = -O2 -Wall -fsigned-char
-LIBS   = -lgd -lm
+CFLAGS = -O2 -Wall -fsigned-char -DPREFIX=\"${PREFIX}\"
+LIBS   = -L${PREFIX}/lib -lgd -lm ${LDFLAGS}
 
 # where are the GD header files?
-GDLIB  = /usr/local/include/gd
+GDLIB  = ${PREFIX}/include/gd
 
 # Shouldn't have to touch below here!
 
@@ -51,9 +51,9 @@
 install: all
 	cp webalizer.1 ${MANDIR}/webalizer.1
 	cp webalizer   ${BINDIR}/webalizer
-	cp sample.conf /etc/webalizer.conf.sample
+	cp sample.conf ${PREFIX}/etc/webalizer.conf.sample
 
 uninstall:
 	rm -f ${MANDIR}/webalizer.1
 	rm -f ${BINDIR}/webalizer
-	rm -f /etc/webalizer.conf.sample
+	rm -f ${PREFIX}/etc/webalizer.conf.sample