freebsd-ports/www/mod_accounting/files/patch-Makefile
Daichi GOTO 70a3cf2a95 update www/mod_accounting: CVS version, which is in port is not usable
PR:		55211
Submitted by:	Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer)
Pointed out by:	Alexandr Kovalenko <never@nevermind.kiev.ua>
2003-08-05 05:30:15 +00:00

33 lines
845 B
Text

--- 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