summaryrefslogtreecommitdiffstats
path: root/www/mod_accounting/files/patch-Makefile
blob: 7a341994cd56aeb9c7c252e3a45f86c61eb5ffff (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
--- Makefile.orig	Sun Dec 30 14:11:43 2001
+++ Makefile	Tue Nov 19 21:07:22 2002
@@ -5,13 +5,24 @@
 ##
 
 #   the used tools
-APXS=apxs
+#APXS=apxs
 APACHECTL=apachectl
 
-#   here's what you may need to change
-DEF=-DNEED_POSTGRES -DNEED_MYSQL
-INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/
-LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient
+.if !defined(WITHOUT_PGSQL)
+DEF_PGSQL=      -DNEED_POSTGRES
+INC_PGSQL=      -I${LOCALBASE}/include
+LIB_PGSQL=      -L${LOCALBASE}/lib -lpq
+.endif
+
+.if !defined(WITHOUT_MYSQL)
+DEF_MYSQL=      -DNEED_MYSQL
+INC_MYSQL=      -I${LOCALBASE}/include
+LIB_MYSQL=      -L${LOCALBASE}/lib/mysql -lmysqlclient
+.endif
+
+DEF=${DEF_MYSQL} ${DEF_PGSQL}
+INC=${INC_MYSQL} ${INC_PGSQL}
+LIB=${LIB_MYSQL} ${LIB_PGSQL}
 
 #   the default target
 all: mod_accounting.so
OpenPOWER on IntegriCloud