2004-04-16 20:08:19 +00:00
|
|
|
TCL_VERSION?=8.4
|
2001-10-28 08:37:27 +00:00
|
|
|
TCL_NDVER?=${TCL_VERSION:S/.//} # same, but without the dot
|
|
|
|
|
|
|
|
PREFIX?= /usr/local
|
|
|
|
|
|
|
|
INCLUDES= -I${PREFIX}/include/apache \
|
|
|
|
-I${PREFIX}/include/tcl${TCL_VERSION} \
|
|
|
|
-I${PREFIX}/include
|
|
|
|
|
|
|
|
CC!= ${PREFIX}/sbin/apxs -q CC
|
|
|
|
CFLAGS!= ${PREFIX}/sbin/apxs -q CFLAGS CFLAGS_SHLIB
|
|
|
|
CFLAGS+= ${INCLUDES} -DGDTCL
|
2003-06-03 16:48:42 +00:00
|
|
|
CFLAGS+= -DDEFAULT_XFERLOG=\"/var/log/httpd-access.log\"
|
|
|
|
|
2001-10-28 08:37:27 +00:00
|
|
|
# Ridiculous!
|
|
|
|
#CFLAGS+= -Dneo_log_module=log_neo_module \
|
|
|
|
# -Dtcl_auth_module=auth_tcl_module
|
|
|
|
|
|
|
|
SHLIB_NAME= ${SRCS:R}.so
|
|
|
|
|
|
|
|
LDADD= -L${PREFIX}/lib -ltcl${TCL_NDVER} -lm
|
|
|
|
|
|
|
|
USE_DB!= grep -l db.h ${.CURDIR}/${SRCS}
|
|
|
|
.if !empty(USE_DB)
|
|
|
|
LDADD+= -ldb2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#LDFLAGS= ${LDADD}
|
|
|
|
|
|
|
|
NOMAN= True # don't bother with the man-page here, let the port handle it
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|