freebsd-ports/www/neowebscript/files/Makefile.lib
Mikhail Teterin 40df453521 NeoWebScript[tm] is a module for the Apache webserver that allows you to
embed the  Tcl/Tk programming language  in your webpages as  a scripting
tool.  It was  invented by  Karl Lehenbauer,  NeoSoft's Chief  Technical
Officer, and documented, enhanced  and extended by NeoSoft's programmers
and technical writers.

WWW: http://www.sourceforge.net/projects/nws/

The changes:

	. don't build the Apache, TclX, gd, db, neo-tcl bundled in the
	  tarball, but use those that are installed by their ports
	. don't generate GIFs -- use PNGs
	. look in /var/log for Apache's log file
	. use /var/db/neowebscript for caches and per-user databases
	. expose some configuration knobs into the neowebscript.conf --
	  there should be no need to edit init.tcl itself anymore

All of the bundled demos work, except for the gd-based banner generator.
The demo code uses Gdtclft commands that don't exist in the modern Gdtclft.
2001-10-28 08:37:27 +00:00

35 lines
814 B
Text

TCL_VERSION?=8.3
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
# 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}
NOPROFILE= True # to avoid building profiled library
INTERNALLIB= True # to avoid building a static version
NOMAN= True # don't bother with the man-page here, let the port handle it
all: ${SHLIB_NAME}
.include <bsd.lib.mk>