1 |
< |
# $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.20 2013/02/10 20:41:22 laffer1 Exp $ |
1 |
> |
# $MidnightBSD: mports/databases/sqlite3/Makefile,v 1.21 2013/05/04 23:41:15 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= sqlite3 |
4 |
< |
PORTVERSION= 3.7.16.1 |
5 |
< |
CATEGORIES= databases lang tcl |
4 |
> |
PORTVERSION= 3.7.17.0 |
5 |
> |
CATEGORIES= databases lang |
6 |
|
MASTER_SITES= http://www.sqlite.org/2013/ \ |
7 |
|
http://www2.sqlite.org/2013/ \ |
8 |
|
http://www3.sqlite.org/2013/ |
9 |
< |
DISTNAME= sqlite-autoconf-3071601 |
9 |
> |
DISTNAME= sqlite-autoconf-3071700 |
10 |
|
|
11 |
|
MAINTAINER= ports@MidnightBSD.org |
12 |
< |
COMMENT= An SQL database engine in a C library w/ Tcl wrapper |
12 |
> |
COMMENT= SQL database engine in a C library |
13 |
|
LICENSE= publicdom |
14 |
|
|
15 |
< |
USE_GMAKE= YES |
16 |
< |
USE_AUTOTOOLS= libtool |
15 |
> |
CONFLICTS= sqlite34-[0-9]* sqlcipher-[0-9]* |
16 |
> |
|
17 |
> |
USES= pkgconfig |
18 |
|
USE_LDCONFIG= YES |
19 |
|
GNU_CONFIGURE= YES |
19 |
– |
USE_GNOME= gnomehack pkgconfig |
20 |
– |
USE_TCL_BUILD= 84+ |
21 |
– |
CONFIGURE_ARGS= --prefix=${PREFIX} |
22 |
– |
CONFIGURE_ENV+= TCLSH_CMD="${TCLSH}" \ |
23 |
– |
TCLLIBDIR=${PREFIX}/lib/${PORTNAME} \ |
24 |
– |
ac_cv_search_pthread_create="" |
25 |
– |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd7.0 |
20 |
|
|
21 |
+ |
MAKE_JOBS_UNSAFE= yes |
22 |
+ |
|
23 |
+ |
# Compilation Options For SQLite http://www.sqlite.org/compile.html |
24 |
+ |
OPTIONS_DEFINE= FTS3 ICU RTREE RAMTABLE UPD_DEL_LIMIT URI SOUNDEX METADATA \ |
25 |
+ |
STAT3 DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY THREADSAFE \ |
26 |
+ |
EXTENSION |
27 |
+ |
OPTIONS_DEFAULT= FTS3 URI METADATA SECURE_DELETE UNLOCK_NOTIFY THREADSAFE EXTENSION |
28 |
+ |
FTS3_DESC= Enable FTS3/4 (Full Text Search) module |
29 |
+ |
ICU_DESC= Enable built with ICU |
30 |
+ |
RTREE_DESC= Enable R*Tree module (${RTREE_INT}) |
31 |
+ |
RAMTABLE_DESC= Store temporary tables in RAM = ${TEMP_STORE} |
32 |
+ |
UPD_DEL_LIMIT_DESC= ORDER BY and LIMIT on UPDATE and DELETE |
33 |
+ |
URI_DESC= Enable use the URI filename |
34 |
+ |
SOUNDEX_DESC= Enables the soundex() SQL function |
35 |
+ |
METADATA_DESC= Enable column metadata |
36 |
+ |
STAT3_DESC= Help SQLite to chose a better query plan |
37 |
+ |
DIRECT_READ_DESC= File is read directly from disk |
38 |
+ |
MEMMAN_DESC= Allows it to release unused memory |
39 |
+ |
SECURE_DELETE_DESC= Overwrite deleted information with zeros |
40 |
+ |
UNLOCK_NOTIFY_DESC= Enable notification on unlocking |
41 |
+ |
THREADSAFE_DESC= Build thread-safe library |
42 |
+ |
EXTENSION_DESC= Allow loadable extensions |
43 |
+ |
|
44 |
+ |
.include <bsd.mport.options.mk> |
45 |
+ |
|
46 |
+ |
.if !defined(NO_INSTALL_MANPAGES) |
47 |
|
MAN1= sqlite3.1 |
48 |
+ |
.endif |
49 |
|
|
50 |
< |
OPTIONS= DEBUG "Enable debugging & verbose explain" off \ |
51 |
< |
FTS3 "Enable FTS3 (Full Text Search) module" off \ |
52 |
< |
RTREE "Enable R*Tree module" off \ |
53 |
< |
RAMTABLE "Store temporary tables in RAM" off \ |
54 |
< |
TCLWRAPPER "Enable TCL wrapper" off \ |
55 |
< |
METADATA "Enable column metadata" on \ |
56 |
< |
THREADSAFE "Build thread-safe library" on \ |
36 |
< |
EXTENSION "Allow loadable extensions" on |
50 |
> |
# NAME83 "Enable use 8.3 filename for temp files" off \ |
51 |
> |
# Some devices are compelled to use an older file system with 8+3 filename |
52 |
> |
# restrictions for backwards compatibility, or due to other non-technical factors. |
53 |
> |
# http://www.sqlite.org/shortnames.html |
54 |
> |
.if ${PORT_OPTIONS:MNAME83} |
55 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_8_3_NAMES=1 |
56 |
> |
.endif |
57 |
|
|
58 |
< |
.include <bsd.port.pre.mk> |
58 |
> |
# The default numeric file permissions for newly created database files under unix. |
59 |
> |
# If not specified, the default is 0644 which means that the files is globally |
60 |
> |
# readable but only writable by the creator. |
61 |
> |
.ifdef DEFAULT_FILE_PERMISSIONS |
62 |
> |
CPPFLAGS+= -DSQLITE_DEFAULT_FILE_PERMISSIONS=${DEFAULT_FILE_PERMISSIONS} |
63 |
> |
.endif |
64 |
|
|
65 |
< |
.if defined(WITH_DEBUG) |
66 |
< |
CONFIGURE_ARGS+= --enable-debug |
65 |
> |
# This macro sets the default size of the page-cache for temporary files |
66 |
> |
# created by SQLite to store intermediate results, in pages. |
67 |
> |
.ifdef TEMP_CACHE_SIZE |
68 |
> |
CPPFLAGS+= -DSQLITE_DEFAULT_TEMP_CACHE_SIZE=${TEMP_CACHE_SIZE} |
69 |
|
.endif |
70 |
|
|
71 |
< |
.if defined(WITH_FTS3) |
72 |
< |
CFLAGS+= -DSQLITE_ENABLE_FTS3=1 |
71 |
> |
.if ${PORT_OPTIONS:MMEMMAN} |
72 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 |
73 |
|
.endif |
74 |
|
|
75 |
< |
.if defined(WITH_RTREE) |
76 |
< |
CFLAGS+= -DSQLITE_ENABLE_RTREE=1 |
75 |
> |
.if ${PORT_OPTIONS:MUPD_DEL_LIMIT} |
76 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 |
77 |
|
.endif |
78 |
|
|
79 |
< |
.if defined(WITH_RAMTABLE) |
80 |
< |
CONFIGURE_ARGS+= --enable-tempstore=yes |
79 |
> |
.if ${PORT_OPTIONS:MURI} |
80 |
> |
CPPFLAGS+= -DSQLITE_USE_URI=1 |
81 |
|
.endif |
82 |
|
|
83 |
< |
.if defined(WITH_TCLWRAPPER) |
84 |
< |
CATEGORIES+= lang tcl |
85 |
< |
COMMENT+= with TCL Wrapper |
86 |
< |
USE_TCL_RUN= 84+ |
87 |
< |
CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} |
88 |
< |
PLIST_SUB+= WITH_TCLWRAPPER="" |
89 |
< |
ALL_TARGET= all tclsqlite3 |
90 |
< |
INSTALL_TARGET= install tcl_install |
83 |
> |
.if ${PORT_OPTIONS:MSOUNDEX} |
84 |
> |
CPPFLAGS+= -DSQLITE_SOUNDEX=1 |
85 |
> |
.endif |
86 |
> |
|
87 |
> |
.if ${PORT_OPTIONS:MSTAT3} |
88 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_STAT3=1 |
89 |
> |
.endif |
90 |
> |
|
91 |
> |
.if ${PORT_OPTIONS:MDIRECT_READ} |
92 |
> |
CPPFLAGS+= -DSQLITE_DIRECT_OVERFLOW_READ=1 |
93 |
> |
.endif |
94 |
> |
|
95 |
> |
.if ${PORT_OPTIONS:MFTS3} |
96 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_FTS4=1 |
97 |
> |
.endif |
98 |
> |
|
99 |
> |
.if ${PORT_OPTIONS:MRTREE} |
100 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_RTREE=1 |
101 |
> |
.ifdef RTREE_INT |
102 |
> |
CPPFLAGS+= -DSQLITE_RTREE_INT_ONLY=1 |
103 |
> |
RTREE_INT= "int" |
104 |
|
.else |
105 |
< |
CONFIGURE_ARGS+= --disable-tcl |
66 |
< |
PLIST_SUB+= WITH_TCLWRAPPER="@comment " |
105 |
> |
RTREE_INT= "float" |
106 |
|
.endif |
107 |
+ |
.endif |
108 |
|
|
109 |
< |
.if !defined(WITHOUT_METADATA) |
110 |
< |
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1 |
109 |
> |
.if ${PORT_OPTIONS:MICU} |
110 |
> |
BUILD_DEPENDS+= ${LOCALBASE}/bin/icu-config:${PORTSDIR}/devel/icu |
111 |
> |
LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu |
112 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_ICU=1 |
113 |
> |
CPPFLAGS+= `${LOCALBASE}/bin/icu-config --cppflags` |
114 |
> |
LDFLAGS+= `${LOCALBASE}/bin/icu-config --ldflags` |
115 |
|
.endif |
116 |
|
|
117 |
< |
.if !defined(WITHOUT_THREADSAFE) |
118 |
< |
CONFIGURE_ARGS+= --enable-threadsafe \ |
119 |
< |
--enable-threads-override-locks |
117 |
> |
# Use an in-ram database for temporary tables (never,no,yes,always), |
118 |
> |
# which is equivalent of TEMP_STORE=[0,1,2,3], default = 1. |
119 |
> |
.if ${PORT_OPTIONS:MRAMTABLE} |
120 |
> |
TEMP_STORE?= 2 |
121 |
> |
CPPFLAGS+= -DSQLITE_TEMP_STORE=${TEMP_STORE} |
122 |
> |
.endif |
123 |
> |
|
124 |
> |
.if ${PORT_OPTIONS:MSECURE_DELETE} |
125 |
> |
CPPFLAGS+= -DSQLITE_SECURE_DELETE=1 |
126 |
> |
.endif |
127 |
> |
|
128 |
> |
.if ${PORT_OPTIONS:MUNLOCK_NOTIFY} |
129 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 |
130 |
> |
.endif |
131 |
> |
|
132 |
> |
.if ${PORT_OPTIONS:MMETADATA} |
133 |
> |
CPPFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1 |
134 |
> |
.endif |
135 |
> |
|
136 |
> |
.if ${PORT_OPTIONS:MTHREADSAFE} |
137 |
> |
CONFIGURE_ARGS+= --enable-threadsafe |
138 |
> |
LDFLAGS+= ${PTHREAD_LIBS} |
139 |
|
.else |
140 |
|
CONFIGURE_ARGS+= --disable-threadsafe |
141 |
|
.endif |
142 |
|
|
143 |
< |
.if !defined(WITHOUT_EXTENSION) |
144 |
< |
CONFIGURE_ARGS+= --enable-load-extension |
143 |
> |
.if ${PORT_OPTIONS:MEXTENSION} |
144 |
> |
CONFIGURE_ARGS+= --enable-dynamic-extensions |
145 |
|
.else |
146 |
< |
CONFIGURE_ARGS+= --disable-load-extension |
146 |
> |
CONFIGURE_ARGS+= --disable-dynamic-extensions |
147 |
|
.endif |
148 |
|
|
149 |
< |
post-install: |
150 |
< |
.if defined(WITH_TCLWRAPPER) |
151 |
< |
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin |
152 |
< |
@${MKDIR} ${EXAMPLESDIR} |
153 |
< |
@${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} |
149 |
> |
post-patch: |
150 |
> |
@${REINPLACE_CMD} '/^pkgconf/s,$${libdir},$${prefix}/libdata,' ${WRKSRC}/Makefile.in |
151 |
> |
|
152 |
> |
post-build: |
153 |
> |
.if ${ARCH}=="i386" |
154 |
> |
@${ECHO_MSG} "===> WARNING: on ${ARCH} don't pass atof1-* tests" |
155 |
|
.endif |
156 |
+ |
|
157 |
+ |
post-install: |
158 |
|
.if !defined(NO_INSTALL_MANPAGES) |
159 |
|
@${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${MANPREFIX}/man/man1 |
160 |
|
.endif |
161 |
|
|
162 |
< |
.include <bsd.port.post.mk> |
162 |
> |
.include <bsd.port.mk> |