1 |
< |
# ex:ts=8 |
2 |
< |
# New ports collection makefile for: sqlite |
3 |
< |
# Date created: Feb 21, 2001 |
4 |
< |
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org> |
5 |
< |
# |
6 |
< |
# $FreeBSD: ports/databases/sqlite3/Makefile,v 1.21 2006/11/21 12:25:46 mnag Exp $ |
7 |
< |
# $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.5 2008/03/29 05:27:11 laffer1 Exp $ |
8 |
< |
# |
1 |
> |
# $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.6 2008/06/13 14:03:52 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= sqlite |
4 |
< |
PORTVERSION= 3.5.6 |
4 |
> |
PORTVERSION= 3.6.10 |
5 |
|
CATEGORIES= databases lang tcl |
6 |
|
MASTER_SITES= http://www.sqlite.org/ |
7 |
|
.if defined(USE_THOL) |
18 |
|
USE_GMAKE= YES |
19 |
|
USE_GNOME= pkgconfig |
20 |
|
USE_AUTOTOOLS= libtool:15 |
28 |
– |
USE_DOS2UNIX= *.pc.in |
21 |
|
USE_LDCONFIG= YES |
22 |
|
GNU_CONFIGURE= YES |
23 |
|
CONFIGURE_ARGS= --prefix=${PREFIX} --with-hints=freebsd.hints |
24 |
< |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.0 |
24 |
> |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.1 |
25 |
|
|
34 |
– |
DOCSDIR= ${PREFIX}/share/doc/sqlite3 |
35 |
– |
EXAMPLESDIR= ${PREFIX}/share/examples/sqlite3 |
36 |
– |
|
26 |
|
OPTIONS= DEBUG "Enable debugging & verbose explain" off \ |
38 |
– |
DOCS "Building docs (depends on TCL)" on \ |
27 |
|
FTS3 "Enable FTS3 (Full Text Search) module" off \ |
28 |
|
RAMTABLE "Store temporary tables in RAM" off \ |
29 |
< |
TCLWRAPPER "TCL wrapper for SQLITE" off |
29 |
> |
TCLWRAPPER "TCL wrapper for SQLITE" off \ |
30 |
> |
METADATA "Enable column metadata" on |
31 |
|
|
43 |
– |
# Defaults, for building the docs: |
44 |
– |
TCL_V?= 8.4 |
45 |
– |
MAKE_ARGS+= TCLSH=tclsh${TCL_V} |
46 |
– |
MAKE_ENV+= TCL_VER=${TCL_V} |
47 |
– |
|
32 |
|
.if !defined(USE_THOL) |
33 |
|
OPTIONS+= THREADS "Enable threads support" off |
34 |
|
PLIST_SUB+= THOL="@comment " |
47 |
|
CONFIGURE_ARGS+= --enable-debug |
48 |
|
.endif |
49 |
|
|
66 |
– |
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) |
67 |
– |
BUILD_DEPENDS+= tclsh${TCL_V}:${PORTSDIR}/lang/tcl${TCL_V:S/.//} |
68 |
– |
ALL_TARGET+= all doc |
69 |
– |
PORTDOCS= * |
70 |
– |
.endif |
71 |
– |
|
50 |
|
.if defined(WITH_FTS3) |
51 |
< |
CFLAGS+= -DSQLITE_CORE=1 -DSQLITE_ENABLE_FTS3 |
51 |
> |
CFLAGS+= -DSQLITE_CORE=1 -DSQLITE_ENABLE_FTS3=1 |
52 |
> |
EXTRA_PATCHES+= ${FILESDIR}/fts3_patch-Makefile.in |
53 |
|
.endif |
54 |
|
|
55 |
|
.if defined(WITH_RAMTABLE) |
57 |
|
.endif |
58 |
|
|
59 |
|
.if defined(WITH_TCLWRAPPER) |
60 |
< |
ALL_TARGET+= tclsqlite3 |
60 |
> |
TCL_V?= 8.4 |
61 |
> |
MAKE_ARGS+= TCLSH=tclsh${TCL_V} |
62 |
> |
MAKE_ENV+= TCL_VER=${TCL_V} |
63 |
|
LIB_DEPENDS+= tcl${TCL_V:S/.//}:${PORTSDIR}/lang/tcl${TCL_V:S/.//} |
64 |
|
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TCL_V} |
65 |
|
PLIST_SUB+= WITH_TCLWRAPPER="" |
68 |
|
PLIST_SUB+= WITH_TCLWRAPPER="@comment " |
69 |
|
.endif |
70 |
|
|
71 |
+ |
.if !defined(WITHOUT_METADATA) |
72 |
+ |
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1 |
73 |
+ |
.endif |
74 |
+ |
|
75 |
|
post-extract: |
76 |
|
@${FIND} ${WRKSRC} -type d -name 'CVS' | ${XARGS} rm -r |
77 |
|
|
87 |
|
> ${WRKSRC}/freebsd.hints |
88 |
|
@${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_V:S/.//}\"" \ |
89 |
|
>> ${WRKSRC}/freebsd.hints |
90 |
+ |
${REINPLACE_CMD} -e "slfts3.cllg" \ |
91 |
+ |
-e "slfts3_expr.cllg" ${WRKSRC}/tool/mksqlite3c.tcl |
92 |
|
|
93 |
|
pre-configure: |
94 |
|
.if defined(WITH_THREADS) || defined(USE_THOL) |
108 |
|
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin |
109 |
|
@${MKDIR} ${EXAMPLESDIR} |
110 |
|
@${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} |
124 |
– |
.endif |
125 |
– |
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) |
126 |
– |
@${MKDIR} ${DOCSDIR} |
127 |
– |
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} |
111 |
|
.endif |
112 |
|
.if defined(USE_THOL) |
113 |
|
@${MKDIR} ${DATADIR} |