Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= sqlite |
4 |
PORTVERSION= 3.21.0 |
5 |
CATEGORIES= databases |
6 |
MASTER_SITES= https://www.sqlite.org/2017/ http://www2.sqlite.org/2017/ http://www3.sqlite.org/2017/ |
7 |
DISTNAME= ${PORTNAME}-src-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00 |
8 |
|
9 |
MAINTAINER= pavelivolkov@gmail.com |
10 |
COMMENT= SQL database engine in a C library |
11 |
|
12 |
LICENSE= PD |
13 |
|
14 |
USES= autoreconf libtool ncurses pathfix zip |
15 |
GNU_CONFIGURE= yes |
16 |
USE_LDCONFIG= yes |
17 |
|
18 |
CONFLICTS= sqlite3-[0-9]* |
19 |
|
20 |
# A directories and files has requires write permission on a target: test. |
21 |
TEST_PERMISSION_CHANGED= . tsrc .target_source sqlite3.c shell.c sqlite3ext.h sqlite3session.h .libs/sqlite3.o |
22 |
|
23 |
# Length | | Length | |
24 |
|
25 |
OPTIONS_SUB= yes |
26 |
OPTIONS_DEFAULT= # Clean default options |
27 |
|
28 |
# ===> OPTIONS_DEFINE |
29 |
#OPTIONS_DEFINE= # portlint, for what? |
30 |
|
31 |
# https://www.sqlite.org/compile.html#enable_api_armor |
32 |
OPTIONS_DEFINE= ARMOR |
33 |
ARMOR_DESC= Detect misuse of the API |
34 |
ARMOR_CPPFLAGS= -DSQLITE_ENABLE_API_ARMOR=1 |
35 |
|
36 |
# https://sqlite.org/compile.html#enable_dbpage_vtab |
37 |
OPTIONS_DEFINE+= DBPAGE |
38 |
DBPAGE_DESC= Enable DBPAGE Virtual Table |
39 |
DBPAGE_CPPFLAGS= -DSQLITE_ENABLE_DBPAGE_VTAB=1 |
40 |
|
41 |
# https://www.sqlite.org/dbstat.html |
42 |
OPTIONS_DEFINE+= DBSTAT |
43 |
OPTIONS_DEFAULT+= DBSTAT # (since 41.0) used by www/firefox et al. |
44 |
DBSTAT_DESC= Enable DBSTAT Virtual Table |
45 |
DBSTAT_CPPFLAGS= -DSQLITE_ENABLE_DBSTAT_VTAB=1 |
46 |
|
47 |
# https://www.sqlite.org/compile.html#direct_overflow_read |
48 |
OPTIONS_DEFINE+= DIRECT_READ |
49 |
DIRECT_READ_DESC= File is read directly from disk |
50 |
DIRECT_READ_CPPFLAGS= -DSQLITE_DIRECT_OVERFLOW_READ=1 |
51 |
|
52 |
# https://www.sqlite.org/loadext.html |
53 |
OPTIONS_DEFINE+= EXTENSION |
54 |
OPTIONS_DEFAULT+= EXTENSION # It's SQLite default |
55 |
EXTENSION_DESC= Allow loadable external extensions |
56 |
EXTENSION_CONFIGURE_OFF= --disable-load-extension |
57 |
|
58 |
# https://www.sqlite.org/json1.html |
59 |
OPTIONS_DEFINE+= JSON1 |
60 |
JSON1_DESC= Enable the JSON1 extension |
61 |
JSON1_CONFIGURE_ON= --enable-json1 |
62 |
|
63 |
# https://sqlite.org/compile.html#like_doesnt_match_blobs |
64 |
OPTIONS_DEFINE+= LIKENOTBLOB |
65 |
OPTIONS_DEFAULT+= LIKENOTBLOB # my choice |
66 |
LIKENOTBLOB_DESC= LIKE does not match blobs |
67 |
LIKENOTBLOB_CPPFLAGS= -DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1 |
68 |
|
69 |
# https://sqlite.org/compile.html#enable_memory_management |
70 |
OPTIONS_DEFINE+= MEMMAN |
71 |
MEMMAN_DESC= Allows it to release unused memory |
72 |
MEMMAN_CPPFLAGS= -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 |
73 |
|
74 |
# https://www.sqlite.org/compile.html#enable_column_metadata |
75 |
OPTIONS_DEFINE+= METADATA |
76 |
OPTIONS_DEFAULT+= METADATA # my choice |
77 |
METADATA_DESC= Enable column metadata |
78 |
METADATA_CPPFLAGS= -DSQLITE_ENABLE_COLUMN_METADATA=1 |
79 |
|
80 |
# https://www.sqlite.org/compile.html#enable_null_trim |
81 |
OPTIONS_DEFINE+= NULL_TRIM |
82 |
NULL_TRIM_DESC= Omits NULL columns at the ends of rows |
83 |
NULL_TRIM_CPPFLAGS= -DSQLITE_ENABLE_NULL_TRIM=1 |
84 |
|
85 |
# https://www.sqlite.org/compile.html#secure_delete |
86 |
OPTIONS_DEFINE+= SECURE_DELETE |
87 |
OPTIONS_DEFAULT+= SECURE_DELETE # (since 41.0) used by www/firefox et al. |
88 |
SECURE_DELETE_DESC= Overwrite deleted information with zeros |
89 |
SECURE_DELETE_CPPFLAGS= -DSQLITE_SECURE_DELETE=1 |
90 |
|
91 |
# https://www.sqlite.org/lang_corefunc.html#soundex |
92 |
OPTIONS_DEFINE+= SOUNDEX |
93 |
SOUNDEX_DESC= Enables the soundex() SQL function |
94 |
SOUNDEX_CPPFLAGS= -DSQLITE_SOUNDEX=1 |
95 |
|
96 |
# https://www.sqlite.org/compile.html#enable_stmt_scanstatus |
97 |
OPTIONS_DEFINE+= STMT |
98 |
STMT_DESC= Prepared Statement Scan Status |
99 |
STMT_CPPFLAGS= -DSQLITE_ENABLE_STMT_SCANSTATUS=1 |
100 |
|
101 |
# https://www.sqlite.org/tclsqlite.html |
102 |
OPTIONS_DEFINE+= TCL_EXT |
103 |
OPTIONS_DEFAULT+= TCL_EXT # It's SQLite default |
104 |
TCL_EXT_DESC= Do build and install TCL extension |
105 |
TCL_EXT_USES= tcl:,tea |
106 |
TCL_EXT_USES_OFF= tcl:,build |
107 |
TCL_EXT_CONFIGURE_OFF= --disable-tcl |
108 |
PLIST_SUB+= TCL_VER=${TCL_VER} |
109 |
|
110 |
# https://www.sqlite.org/compile.html#threadsafe |
111 |
OPTIONS_DEFINE+= THREADS |
112 |
OPTIONS_DEFAULT+= THREADS # It's SQLite default |
113 |
THREADS_CONFIGURE_OFF= --disable-threadsafe |
114 |
|
115 |
# http://sqlite.org/compile.html#enable_unknown_sql_function |
116 |
OPTIONS_DEFINE+= UNKNOWN_SQL |
117 |
UNKNOWN_SQL_DESC= Suppress unknown function errors in EXPLAIN |
118 |
UNKNOWN_SQL_CPPFLAGS= -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION=1 |
119 |
|
120 |
# https://www.sqlite.org/unlock_notify.html |
121 |
OPTIONS_DEFINE+= UNLOCK_NOTIFY |
122 |
OPTIONS_DEFAULT+= UNLOCK_NOTIFY # (since 41.0) used by www/firefox et al. |
123 |
UNLOCK_NOTIFY_DESC= Enable notification on unlocking |
124 |
UNLOCK_NOTIFY_CPPFLAGS= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 |
125 |
|
126 |
# https://sqlite.org/compile.html#enable_update_delete_limit |
127 |
OPTIONS_DEFINE+= UPD_DEL_LIMIT |
128 |
UPD_DEL_LIMIT_DESC= ORDER BY and LIMIT on UPDATE and DELETE |
129 |
UPD_DEL_LIMIT_CPPFLAGS= -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 |
130 |
|
131 |
# ===> OPTIONS_GROUP |
132 |
OPTIONS_GROUP= |
133 |
|
134 |
# ===> I'm collect this as group, amalgamation or external extensions, don't included into other groups. |
135 |
OPTIONS_GROUP+= EXTG |
136 |
OPTIONS_DEFAULT+= |
137 |
EXTG_DESC= Amalgamation or external extensions |
138 |
|
139 |
# https://www.sqlite.org/csv.html |
140 |
OPTIONS_GROUP_EXTG+= CSV |
141 |
CSV_DESC= Reading CSV file as virtual table |
142 |
CSV_IMPLIES= EXTENSION |
143 |
|
144 |
# https://www.sqlite.org/cli.html#file_i_o_functions |
145 |
OPTIONS_GROUP_EXTG+= FILEIO |
146 |
FILEIO_DESC= Presents external file as a BLOB |
147 |
FILEIO_IMPLIES= EXTENSION |
148 |
|
149 |
# https://www.sqlite.org/rbu.html |
150 |
OPTIONS_GROUP_EXTG+= RBU |
151 |
RBU_DESC= Enable the Resumable Bulk Update |
152 |
RBU_CPPFLAGS= -DSQLITE_ENABLE_RBU=1 |
153 |
|
154 |
# https://www.sqlite.org/lang_expr.html and search "regexp" |
155 |
OPTIONS_GROUP_EXTG+= REGEXP |
156 |
REGEXP_DESC= Added a regexp() function |
157 |
REGEXP_IMPLIES= EXTENSION |
158 |
|
159 |
# https://www.sqlite.org/sessionintro.html |
160 |
OPTIONS_GROUP_EXTG+= SESSION |
161 |
SESSION_DESC= Enable the SESSION extension |
162 |
SESSION_CONFIGURE_ON= --enable-session |
163 |
|
164 |
# https://www.sqlite.org/spellfix1.html |
165 |
OPTIONS_GROUP_EXTG+= SPELLFIX |
166 |
SPELLFIX_DESC= Used to suggest corrections |
167 |
SPELLFIX_IMPLIES= EXTENSION |
168 |
|
169 |
# https://www.sqlite.org/stmt.html |
170 |
OPTIONS_GROUP_EXTG+= STMTVTAB |
171 |
STMTVTAB_DESC= Information about all prepared statements |
172 |
STMTVTAB_CPPFLAGS= -DSQLITE_ENABLE_STMTVTAB=1 |
173 |
|
174 |
# https://www.sqlite.org/unionvtab.html |
175 |
OPTIONS_GROUP_EXTG+= UNIONVTAB |
176 |
UNIONVTAB_DESC= UNION virtual table |
177 |
UNIONVTAB_IMPLIES= EXTENSION |
178 |
|
179 |
# ===> end of EXTG |
180 |
|
181 |
# https://www.sqlite.org/fts3.html |
182 |
# https://www.sqlite.org/fts5.html |
183 |
# https://www.sqlite.org/compile.html#enable_fts3_parenthesis |
184 |
# https://www.sqlite.org/compile.html#enable_fts3_tokenizer |
185 |
# https://www.sqlite.org/fts3.html#f3tknzr |
186 |
OPTIONS_GROUP+= FTS |
187 |
OPTIONS_GROUP_FTS= FTS3 FTS3_PARENTHESIS FTS3_TOKEN FTS4 FTS5 |
188 |
OPTIONS_DEFAULT+= FTS4 # used by many ports |
189 |
OPTIONS_DEFAULT+= FTS3_TOKEN # used by audio/clementine-player |
190 |
OPTIONS_DEFAULT+= FTS5 # used by sysutils/tracker |
191 |
FTS_DESC= Full-text search |
192 |
FTS3_DESC= Enable the FTS3 extension |
193 |
FTS3_PARENTHESIS_DESC= Modifies the query pattern parser in FTS3 |
194 |
FTS3_TOKEN_DESC= Enable two-args version fts3_tokenizer |
195 |
FTS4_DESC= Enable the FTS4 extension |
196 |
FTS5_DESC= Enable the FTS5 extension |
197 |
FTS3_CONFIGURE_ON= --enable-fts3 |
198 |
FTS3_PARENTHESIS_IMPLIES= FTS3 |
199 |
FTS3_PARENTHESIS_CPPFLAGS= -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 |
200 |
FTS3_TOKEN_IMPLIES= FTS3 |
201 |
FTS3_TOKEN_CPPFLAGS= -DSQLITE_ENABLE_FTS3_TOKENIZER=1 |
202 |
FTS4_CONFIGURE_ON= --enable-fts4 |
203 |
FTS4_IMPLIES= FTS3 # used by www/firefox and mail/thunderbird |
204 |
FTS5_CONFIGURE_ON= --enable-fts5 |
205 |
|
206 |
# https://www.sqlite.org/rtree.html |
207 |
# https://www.sqlite.org/compile.html#rtree_int_only |
208 |
OPTIONS_GROUP+= RTREEG |
209 |
OPTIONS_GROUP_RTREEG= RTREE RTREE_INT |
210 |
OPTIONS_DEFAULT+= RTREE # used by graphics/mapnik, databases/spatialite |
211 |
RTREEG_DESC= Dynamic Index Structure for Spatial Search |
212 |
RTREE_DESC= Special extension for doing range queries |
213 |
RTREE_INT_DESC= Store 32-bit sig int (no float) coordinates |
214 |
RTREE_CONFIGURE_ON= --enable-rtree |
215 |
RTREE_INT_IMPLIES= RTREE |
216 |
RTREE_INT_CPPFLAGS= -DSQLITE_RTREE_INT_ONLY=1 |
217 |
|
218 |
# https://www.sqlite.org/fts3.html#tokenizer |
219 |
OPTIONS_GROUP+= UNICODE |
220 |
OPTIONS_GROUP_UNICODE= ICU UNICODE61 |
221 |
OPTIONS_DEFAULT+= UNICODE61 # It's SQLite default |
222 |
UNICODE_DESC= Unicode support |
223 |
UNICODE61_DESC= Unicode Version 6.1 tokenizer |
224 |
UNICODE61_CPPFLAGS= "" |
225 |
UNICODE61_CPPFLAGS_OFF= -DSQLITE_DISABLE_FTS3_UNICODE=1 |
226 |
ICU_BUILD_DEPENDS= ${LOCALBASE}/bin/icu-config:devel/icu |
227 |
ICU_LIB_DEPENDS= libicudata.so:devel/icu |
228 |
ICU_CPPFLAGS= `${LOCALBASE}/bin/icu-config --cppflags` -DSQLITE_ENABLE_ICU=1 |
229 |
ICU_LIBS= `${LOCALBASE}/bin/icu-config --ldflags` |
230 |
|
231 |
# https://www.sqlite.org/uri.html |
232 |
# https://www.sqlite.org/compile.html#allow_uri_authority |
233 |
OPTIONS_GROUP+= URIG |
234 |
OPTIONS_GROUP_URIG= URI URI_AUTHORITY |
235 |
OPTIONS_DEFAULT+= URI # my choice |
236 |
URIG_DESC= Uniform Resource Identifiers |
237 |
URI_DESC= Allow to treat the filename as a URI |
238 |
URI_AUTHORITY_DESC= Convert URI into UNC and pass to OS |
239 |
URI_CPPFLAGS= -DSQLITE_USE_URI=1 |
240 |
URI_AUTHORITY_CPPFLAGS= -DSQLITE_ALLOW_URI_AUTHORITY=1 |
241 |
|
242 |
OPTIONS_GROUP+= UTIL |
243 |
OPTIONS_GROUP_UTIL= ANALYZER DBHASH SQLDIFF |
244 |
UTIL_DESC= Additional utilities |
245 |
# https://www.sqlite.org/sqlanalyze.html |
246 |
# TCL already used in the build process. |
247 |
ANALYZER_DESC= Displays how efficiently space is used |
248 |
ANALYZER_VARS= TEST_PERMISSION_CHANGED+= sqlite3_analyzer.c |
249 |
# https://www.sqlite.org/dbhash.html |
250 |
DBHASH_DESC= Hash on the content of the database |
251 |
# https://www.sqlite.org/sqldiff.html |
252 |
SQLDIFF_DESC= Differences in content between databases |
253 |
|
254 |
# ===> OPTIONS_SINGLE |
255 |
OPTIONS_SINGLE= |
256 |
|
257 |
# https://www.sqlite.org/tempfiles.html#tempstore |
258 |
OPTIONS_SINGLE+= RAMT |
259 |
OPTIONS_SINGLE_RAMT= TS0 TS1 TS2 TS3 |
260 |
OPTIONS_DEFAULT+= TS1 # It's SQLite default |
261 |
RAMT_DESC= Use in-ram database for temporary tables |
262 |
TS0_DESC= Never |
263 |
TS1_DESC= No, may be changed with pragma |
264 |
TS2_DESC= Yes, may be changed with pragma |
265 |
TS3_DESC= Always |
266 |
TS0_CONFIGURE_ON= --enable-tempstore=never |
267 |
TS1_CONFIGURE_ON= --enable-tempstore=no |
268 |
TS2_CONFIGURE_ON= --enable-tempstore=yes |
269 |
TS3_CONFIGURE_ON= --enable-tempstore=always |
270 |
|
271 |
# change read line support |
272 |
OPTIONS_SINGLE+= RL |
273 |
OPTIONS_SINGLE_RL= OFF_RL LIBEDIT READLINE |
274 |
OPTIONS_DEFAULT+= READLINE # It's SQLite default |
275 |
RL_DESC= Library is used to edit the command line |
276 |
OFF_RL_DESC= Command line without editing |
277 |
OFF_RL_CONFIGURE_ON= --disable-readline --disable-editline # disable editline/readline support |
278 |
LIBEDIT_CONFIGURE_ON= --enable-editline # enable BSD editline support |
279 |
LIBEDIT_USES= libedit |
280 |
READLINE_USES= readline # enable GNU readline support |
281 |
READLINE_CONFIGURE_ON= --disable-editline |
282 |
|
283 |
# ===> OPTIONS_RADIO |
284 |
OPTIONS_RADIO= |
285 |
|
286 |
# https://www.sqlite.org/compile.html#enable_memsys3 |
287 |
# https://www.sqlite.org/compile.html#enable_memsys5 |
288 |
OPTIONS_RADIO+= MEMSYS |
289 |
OPTIONS_RADIO_MEMSYS= MEMSYS3 MEMSYS5 |
290 |
MEMSYS_DESC= Alternative memory allocator |
291 |
MEMSYS3_DESC= Enable MEMSYS3 |
292 |
MEMSYS5_DESC= Enable MEMSYS5 |
293 |
MEMSYS3_CONFIGURE_ON= --enable-memsys3 |
294 |
MEMSYS5_CONFIGURE_ON= --enable-memsys5 |
295 |
|
296 |
# https://www.sqlite.org/queryplanner-ng.html#qpstab |
297 |
OPTIONS_RADIO+= STAT |
298 |
OPTIONS_RADIO_STAT= STAT3 STAT4 |
299 |
STAT_DESC= Which query planner to use Stability or ... |
300 |
STAT3_DESC= Collect histogram data from leftmost column |
301 |
STAT4_DESC= Collect histogram data from all columns |
302 |
STAT3_CPPFLAGS= -DSQLITE_ENABLE_STAT3=1 |
303 |
STAT4_CPPFLAGS= -DSQLITE_ENABLE_STAT4=1 |
304 |
|
305 |
# ===> other definition |
306 |
|
307 |
# https://www.sqlite.org/compile.html#default_file_permissions |
308 |
.if defined(DEFAULT_FILE_PERMISSIONS) && !empty(DEFAULT_FILE_PERMISSIONS) |
309 |
CPPFLAGS+= -DSQLITE_DEFAULT_FILE_PERMISSIONS=${DEFAULT_FILE_PERMISSIONS} |
310 |
.endif |
311 |
|
312 |
# enable debugging & verbose explain |
313 |
.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) |
314 |
CONFIGURE_ARGS+= --enable-debug |
315 |
.endif |
316 |
|
317 |
.include <bsd.port.options.mk> |
318 |
|
319 |
post-configure: |
320 |
@${ECHO_MSG} "===> CONFIGURE_ARGS=${CONFIGURE_ARGS}" |
321 |
@${ECHO_MSG} "===> CPPFLAGS=${CPPFLAGS}" |
322 |
@${ECHO_MSG} "===> CFLAGS=${CFLAGS}" |
323 |
@${ECHO_MSG} "===> LDFLAGS=${LDFLAGS}" |
324 |
@${ECHO_MSG} "===> LIBS=${LIBS}" |
325 |
|
326 |
post-build-ANALYZER-on: |
327 |
cd ${WRKSRC} && ${MAKE} sqlite3_analyzer |
328 |
|
329 |
post-build-CSV-on: |
330 |
${CC} ${CFLAGS} -I${WRKSRC} -fPIC -DPIC -shared ${WRKSRC}/ext/misc/csv.c -o ${WRKSRC}/csv.so |
331 |
|
332 |
post-build-DBHASH-on: |
333 |
cd ${WRKSRC} && ${MAKE} dbhash |
334 |
|
335 |
post-build-FILEIO-on: |
336 |
${CC} ${CFLAGS} -I${WRKSRC} -fPIC -DPIC -shared ${WRKSRC}/ext/misc/fileio.c -o ${WRKSRC}/fileio.so |
337 |
|
338 |
post-build-REGEXP-on: |
339 |
${CC} ${CFLAGS} -I${WRKSRC} -fPIC -DPIC -shared ${WRKSRC}/ext/misc/regexp.c -o ${WRKSRC}/regexp.so |
340 |
|
341 |
post-build-SPELLFIX-on: |
342 |
${CC} ${CFLAGS} -I${WRKSRC} -fPIC -DPIC -shared ${WRKSRC}/ext/misc/spellfix.c -o ${WRKSRC}/spellfix.so |
343 |
|
344 |
post-build-SQLDIFF-on: |
345 |
cd ${WRKSRC} && ${MAKE} sqldiff |
346 |
|
347 |
post-build-UNIONVTAB-on: |
348 |
${CC} ${CFLAGS} -I${WRKSRC} -fPIC -DPIC -shared ${WRKSRC}/ext/misc/unionvtab.c -o ${WRKSRC}/unionvtab.so |
349 |
|
350 |
post-install: |
351 |
.if !defined(WITH_DEBUG) || defined(WITHOUT_DEBUG) |
352 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sqlite3 |
353 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsqlite3.so.0.8.6 |
354 |
.endif |
355 |
|
356 |
post-install-TCL_EXT-on: |
357 |
.if !defined(WITH_DEBUG) || defined(WITHOUT_DEBUG) |
358 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/tcl${TCL_VER}/sqlite3/libtclsqlite3.so |
359 |
.endif |
360 |
|
361 |
post-install-EXTENSION-off: |
362 |
${RM} ${STAGEDIR}${PREFIX}/include/sqlite3ext.h |
363 |
|
364 |
post-install-ANALYZER-on: |
365 |
${INSTALL_PROGRAM} ${WRKSRC}/sqlite3_analyzer ${STAGEDIR}${PREFIX}/bin |
366 |
|
367 |
post-install-CSV-on: |
368 |
${MKDIR} ${STAGEDIR}${DATADIR} |
369 |
${INSTALL_LIB} ${WRKSRC}/csv.so ${STAGEDIR}${DATADIR} |
370 |
|
371 |
post-install-DBHASH-on: |
372 |
${INSTALL_PROGRAM} ${WRKSRC}/dbhash ${STAGEDIR}${PREFIX}/bin/sqlite3_dbhash |
373 |
|
374 |
post-install-FILEIO-on: |
375 |
${MKDIR} ${STAGEDIR}${DATADIR} |
376 |
${INSTALL_LIB} ${WRKSRC}/fileio.so ${STAGEDIR}${DATADIR} |
377 |
|
378 |
post-install-REGEXP-on: |
379 |
${MKDIR} ${STAGEDIR}${DATADIR} |
380 |
${INSTALL_LIB} ${WRKSRC}/regexp.so ${STAGEDIR}${DATADIR} |
381 |
|
382 |
post-install-SPELLFIX-on: |
383 |
${MKDIR} ${STAGEDIR}${DATADIR} |
384 |
${INSTALL_LIB} ${WRKSRC}/spellfix.so ${STAGEDIR}${DATADIR} |
385 |
|
386 |
post-install-SQLDIFF-on: |
387 |
${INSTALL_PROGRAM} ${WRKSRC}/sqldiff ${STAGEDIR}${PREFIX}/bin/sqlite3_sqldiff |
388 |
|
389 |
post-install-UNIONVTAB-on: |
390 |
${MKDIR} ${STAGEDIR}${DATADIR} |
391 |
${INSTALL_LIB} ${WRKSRC}/unionvtab.so ${STAGEDIR}${DATADIR} |
392 |
|
393 |
# for compares with checksum from of the site |
394 |
sha1: fetch |
395 |
.if defined(SHA1) && !empty(SHA1) |
396 |
@sha1 -c ${SHA1} ${DISTDIR}/${ALLFILES} |
397 |
.else |
398 |
@sha1 ${DISTDIR}/${ALLFILES} |
399 |
.endif |
400 |
|
401 |
testfixture: build |
402 |
cd "${WRKSRC}" && ${MAKE} ${.TARGET} |
403 |
|
404 |
test quicktest: build testfixture |
405 |
[ -d "${WRKSRC}" ] && ( \ |
406 |
cd "${WRKSRC}" && \ |
407 |
${CHMOD} o+w ${TEST_PERMISSION_CHANGED} && \ |
408 |
su -m nobody -c "limits -n 1000 ${MAKE} ${.TARGET}"; \ |
409 |
${CHMOD} o-w ${TEST_PERMISSION_CHANGED} \ |
410 |
) |
411 |
|
412 |
.include <bsd.port.mk> |