1 |
laffer1 |
11230 |
# $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.12 2011/02/02 20:09:16 laffer1 Exp $ |
2 |
laffer1 |
861 |
|
3 |
|
|
PORTNAME= sqlite |
4 |
laffer1 |
11230 |
PORTVERSION= 3.6.19 |
5 |
laffer1 |
5460 |
CATEGORIES= databases lang tcl |
6 |
laffer1 |
861 |
MASTER_SITES= http://www.sqlite.org/ |
7 |
laffer1 |
11230 |
DISTNAME= sqlite-${PORTVERSION} |
8 |
laffer1 |
861 |
|
9 |
laffer1 |
2255 |
MAINTAINER= ports@MidnightBSD.org |
10 |
laffer1 |
861 |
COMMENT= An SQL database engine in a C library w/ Tcl wrapper |
11 |
laffer1 |
3749 |
LICENSE= publicdom |
12 |
laffer1 |
861 |
|
13 |
|
|
USE_GMAKE= YES |
14 |
laffer1 |
10704 |
USE_AUTOTOOLS= libtool |
15 |
laffer1 |
861 |
USE_LDCONFIG= YES |
16 |
|
|
GNU_CONFIGURE= YES |
17 |
laffer1 |
11230 |
USE_GNOME= gnomehack pkgconfig |
18 |
|
|
USE_TCL_BUILD= 84+ |
19 |
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} |
20 |
|
|
CONFIGURE_ENV+= TCLSH_CMD="${TCLSH}" \ |
21 |
|
|
TCLLIBDIR=${PREFIX}/lib/${PORTNAME} \ |
22 |
|
|
ac_cv_search_pthread_create="" |
23 |
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd7.0 |
24 |
laffer1 |
861 |
|
25 |
|
|
OPTIONS= DEBUG "Enable debugging & verbose explain" off \ |
26 |
laffer1 |
11230 |
FTS3 "Enable FTS3 (Full Text Search) module" off \ |
27 |
|
|
RTREE "Enable R*Tree module" off \ |
28 |
laffer1 |
5460 |
RAMTABLE "Store temporary tables in RAM" off \ |
29 |
laffer1 |
11230 |
TCLWRAPPER "Enable TCL wrapper" off \ |
30 |
|
|
METADATA "Enable column metadata" on \ |
31 |
|
|
THREADSAFE "Build thread-safe library" on |
32 |
laffer1 |
861 |
|
33 |
|
|
.include <bsd.port.pre.mk> |
34 |
|
|
|
35 |
|
|
.if defined(WITH_DEBUG) |
36 |
|
|
CONFIGURE_ARGS+= --enable-debug |
37 |
|
|
.endif |
38 |
|
|
|
39 |
laffer1 |
3749 |
.if defined(WITH_FTS3) |
40 |
laffer1 |
11230 |
CFLAGS+= -DSQLITE_ENABLE_FTS3=1 |
41 |
laffer1 |
2255 |
.endif |
42 |
|
|
|
43 |
laffer1 |
11230 |
.if defined(WITH_RTREE) |
44 |
|
|
CFLAGS+= -DSQLITE_ENABLE_RTREE=1 |
45 |
|
|
.endif |
46 |
|
|
|
47 |
laffer1 |
5460 |
.if defined(WITH_RAMTABLE) |
48 |
laffer1 |
11230 |
CONFIGURE_ARGS+= --enable-tempstore=yes |
49 |
laffer1 |
5460 |
.endif |
50 |
|
|
|
51 |
laffer1 |
861 |
.if defined(WITH_TCLWRAPPER) |
52 |
laffer1 |
11230 |
CATEGORIES+= lang tcl |
53 |
|
|
COMMENT+= with TCL Wrapper |
54 |
|
|
USE_TCL_RUN= 84+ |
55 |
|
|
CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} |
56 |
laffer1 |
861 |
PLIST_SUB+= WITH_TCLWRAPPER="" |
57 |
laffer1 |
11230 |
ALL_TARGET= all tclsqlite3 |
58 |
|
|
INSTALL_TARGET= install tcl_install |
59 |
laffer1 |
861 |
.else |
60 |
|
|
CONFIGURE_ARGS+= --disable-tcl |
61 |
|
|
PLIST_SUB+= WITH_TCLWRAPPER="@comment " |
62 |
|
|
.endif |
63 |
|
|
|
64 |
laffer1 |
7256 |
.if !defined(WITHOUT_METADATA) |
65 |
|
|
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1 |
66 |
|
|
.endif |
67 |
|
|
|
68 |
laffer1 |
11230 |
.if !defined(WITHOUT_THREADSAFE) |
69 |
|
|
CONFIGURE_ARGS+= --enable-threadsafe \ |
70 |
|
|
--enable-threads-override-locks |
71 |
|
|
.else |
72 |
|
|
CONFIGURE_ARGS+= --disable-threadsafe |
73 |
laffer1 |
2255 |
.endif |
74 |
|
|
|
75 |
laffer1 |
11230 |
.if defined(WITH_TCLWRAPPER) |
76 |
laffer1 |
861 |
post-install: |
77 |
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin |
78 |
laffer1 |
2255 |
@${MKDIR} ${EXAMPLESDIR} |
79 |
|
|
@${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} |
80 |
laffer1 |
861 |
.endif |
81 |
|
|
|
82 |
|
|
.include <bsd.port.post.mk> |