summaryrefslogtreecommitdiff
path: root/www/analog/patches/patch-aa
blob: 02274b7f3d61215e3cf51d3f5825cf1ee6c3a87a (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
$NetBSD: patch-aa,v 1.17 2001/05/19 22:30:59 tron Exp $

--- Makefile.orig	Tue May  1 12:38:33 2001
+++ Makefile	Mon May 14 22:29:27 2001
@@ -1,12 +1,17 @@
 # Makefile for analog 5.01
 # Please read docs/Readme.html, or http://www.analog.cx/
-CC = gcc           # which compiler to use: eg cc, acc, gcc. NB Different
+#CC = gcc           # which compiler to use: eg cc, acc, gcc. NB Different
 #                    compilers need different CFLAGS, e.g., -O instead of -O2.
-CFLAGS = -O2    # options, e.g. for optimisation or ANSI compilation.
+#CFLAGS = -O2    # options, e.g. for optimisation or ANSI compilation.
 #                 HP/UX cc needs CFLAGS = -Aa (HP/UX 9) or -Ae (HP/UX 10)
 #                 BS2000/OSD needs CFLAGS = -XLLML -XLLMK
 #                 NeXTSTEP needs CFLAGS = -O2 -pipe -no-precomp 
-DEFS =          # any combination of -DNOPIPES -DNODNS -DNODIRENT -DNOGLOB ...
+DEFS =        -DANALOGDIR=\"${PREFIX}/lib/analog/\" \
+      -DDEFAULTCONFIGFILE=\"${PREFIX}/etc/analog.cfg\" \
+      -DIMAGEDIR=\"/images/\" \
+      -DLANGDIR=\"${PREFIX}/lib/analog/lang/\" \
+      -DLOGFILE=\"/var/log/httpd-access.log\"
+#                 any combination of -DNOPIPES -DNODNS -DNODIRENT -DNOGLOB ...
 #                 ... -DNOOPEN -DNOFOLLOW -DNOALARM -DNOGRAPHICS -DNOGMTIME ...
 #                 ... -DEBCDIC -DUSE_PLAIN_SETJMP -DHAVE_GD -DHAVE_PCRE ...
 #                 ... -DNEED_STRCMP -DNEED_MEMMOVE -DNEED_STRTOUL ...