Annotation of /smage/trunk/core/sqlite/sqlite-3.13.0-r1.smage2
Parent Directory | Revision Log
Revision 8967 -
(hide annotations)
(download)
Tue May 31 06:15:17 2016 UTC (7 years, 11 months ago) by niro
File size: 1473 byte(s)
Tue May 31 06:15:17 2016 UTC (7 years, 11 months ago) by niro
File size: 1473 byte(s)
auto added: ver bump to 3.13.0-r1
1 | niro | 8967 | # $Id$ |
2 | |||
3 | PNAME="sqlite" | ||
4 | PVER="3.13.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="dev-db" | ||
8 | |||
9 | DESCRIPTION="SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine." | ||
10 | HOMEPAGE="http://www.sqlite.org/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | # helper function | ||
15 | sqlite_upstream_pver() | ||
16 | { | ||
17 | local pver="$1" | ||
18 | local count=0 | ||
19 | local i | ||
20 | |||
21 | for i in $(echo ${pver//./\ }) | ||
22 | do | ||
23 | if [[ ${i} -lt 10 ]] && [[ ${count} -gt 0 ]] | ||
24 | then | ||
25 | echo -n "0${i}" | ||
26 | else | ||
27 | echo -n "${i}" | ||
28 | fi | ||
29 | (( count++)) | ||
30 | done | ||
31 | |||
32 | # fill up missing zeros if needed | ||
33 | if [[ ${count} -lt 4 ]] | ||
34 | then | ||
35 | for (( i=4-count; i>0; i--)) | ||
36 | do | ||
37 | echo -n "00" | ||
38 | done | ||
39 | fi | ||
40 | |||
41 | # crlf | ||
42 | echo | ||
43 | } | ||
44 | |||
45 | SRCFILE="${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER}).tar.gz" # a special srcfile is needed to build without tcl | ||
46 | SRCDIR="${BUILDDIR}/${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER})" | ||
47 | |||
48 | ALX_PKG_KEEP="usr/bin usr/$(mlibdir)/*.so.*" | ||
49 | sminclude multilib alx-split | ||
50 | |||
51 | SRC_URI=( | ||
52 | http://www.sqlite.org/2016/${SRCFILE} | ||
53 | mirror://${PNAME}/${SRCFILE} | ||
54 | ) | ||
55 | |||
56 | UP2DATE="updatecmd http://www.sqlite.org | grep -A2 Current | sed -n 's/.*Version \(.*\) of.*/\1/;$ p'" | ||
57 | |||
58 | src_compile() | ||
59 | { | ||
60 | # required flags by firefox | ||
61 | export CFLAGS+=" -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" | ||
62 | |||
63 | mconfigure \ | ||
64 | --enable-load-extension \ | ||
65 | --disable-readline \ | ||
66 | --enable-cross-thread-connections \ | ||
67 | --enable-threadsafe \ | ||
68 | --disable-tcl \ | ||
69 | --disable-debug \ | ||
70 | || die | ||
71 | |||
72 | mmake || die | ||
73 | } |