ports/databases/sqlite2/files/Makefile.bsd
Mikhail Teterin 55b0526ba9 A number of things:
. changed maintainership to ports@;
	. build with TCL support (``package require sqlite'');
	. run the vendor's tests after build (sorry, Maxim) -- zero errors;
	. generate from the TCL sources and install the HTML documentation;
	  (unless NOPORTDOCS is set);
	. build and install two usefull tools, which come with the software:
		gdbmdump and gdbmstat;
	. build and install the shared version of -lsqlite -- usefull and
	  needed for dynamic loading into TCL interpreter;
	. lastly: the new functionality (TCL, tools, docs) called for the
	  PORTREVISION bump.

Approved by: after the previous maintainer suggested the first point above,
	the rest was easy :-)
2001-06-11 23:32:07 +00:00

36 lines
891 B
Text

TCL_VER ?= 8.3
TCL_DVER = ${TCL_VER:S/.//}
PREFIX ?= /usr/local
CFLAGS += -DHAVE_READLINE=1 -DOS_UNIX=1 -DOS_WIN=0
CFLAGS += -I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include
CFLAGS += -I${.CURDIR}/src -I${.CURDIR}
LDADD += -lreadline -L${PREFIX}/lib -ltcl${TCL_DVER} -lm -lgdbm
.PATH: ${.CURDIR}/src
SRCS = build.c dbbe.c dbbegdbm.c dbbemem.c delete.c expr.c insert.c \
main.c parse.y printf.c random.c select.c table.c tokenize.c \
update.c util.c vdbe.c where.c tclsqlite.c
INCS = sqlite.h
LIB = sqlite
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
sqlite.h: sqlite.h.in VERSION
sed -e s/--VERS--/`cat ${.CURDIR}/VERSION`/ \
-e s/--ENCODING--/ISO8859/ \
${.CURDIR}/src/sqlite.h.in > sqlite.h
parse.h parse.c: parse.y
lemon o=parse ${.ALLSRC}
INCDIR = ${PREFIX}/include
LIBDIR = ${PREFIX}/lib
.include <bsd.lib.mk>
${OBJS} ${SOBJS}: parse.h sqlite.h