freebsd-ports/www/neowebscript/files/Makefile.lib
Mikhail Teterin 8e6385511c Allow use of Tcl-8.5 in both tcl-neo and neowebscript (its the former's primary
consumer). Clean up another ton of warnings (to the level of WARNS=3 in tcl-neo
and WARNS=2 in neowebscript).

Update the installation of neowebscript.conf so as to not overwrite the existing
version, if any.
2010-01-19 05:43:57 +00:00

33 lines
761 B
Text

TCL_VERSION?=8.4
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
CFLAGS+= -DDEFAULT_XFERLOG=\"/var/log/httpd-access.log\" -Werror
# 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
WARNS= 2
USE_DB!= grep -l db.h ${.CURDIR}/${SRCS}
.if !empty(USE_DB)
LDADD+= -ldb2
.endif
#LDFLAGS= ${LDADD}
NO_MAN= True # don't bother with the man-page here, let the port handle it
.include <bsd.lib.mk>