1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/www/analog/files/patch-aa
Andrey A. Chernov ce048dc96f upgrade to 4.04
2000-03-23 09:35:43 +00:00

25 lines
1.2 KiB
Plaintext

--- Makefile.orig Tue Mar 21 12:58:01 2000
+++ Makefile Thu Mar 23 12:25:23 2000
@@ -7,7 +7,11 @@
# -Ae (HP/UX 10); BS2000/OSD requires -XLLML -XLLMK;
# NeXTSTEP apparently needs...
# CEXTRAFLAGS = -O2 -pipe -no-precomp
-DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN -DNOREGEX ...
+#DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN -DNOREGEX ...
+DEFS = -DANALOGDIR=\"$(PREFIX)/lib/analog/\" \
+ -DLOGFILE=\"/var/log/httpd-access.log\" \
+ -DIMAGEDIR=\"/images/\" \
+ -DDEFAULTCONFIGFILE=\"$(PREFIX)/etc/analog.cfg\"
# ... -DEBCDIC -DNOGMTIME -DNEED_STRCMP -DNEED_MEMMOVE ...
# ... -DNEED_STRTOUL -DNEED_DIFFTIME -DNEED_FLOATINGPOINT_H
# Solaris 2 (SunOS 5) might need DEFS = -DNEED_STRCMP
@@ -29,7 +33,7 @@
input.o macinput.o macstuff.o output.o output2.o process.o settings.o \
sort.o tree.o utils.o win32.o
HEADERS = anlghead.h anlghea2.h anlghea3.h anlghea4.h macdir.h
-CFLAGS = $(CEXTRAFLAGS) $(DEFS) -D$(OS)
+CFLAGS += $(DEFS) -D$(OS)
$(PROGRAM): $(OBJS) $(HEADERS) Makefile
$(CC) $(CEXTRAFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)