Contents of /smage/trunk/core/sqlite/sqlite-3.7.15.2-r1.smage2
Parent Directory | Revision Log
Revision 4517 -
(show annotations)
(download)
Fri Mar 15 10:04:08 2013 UTC (11 years, 6 months ago) by niro
File size: 1118 byte(s)
Fri Mar 15 10:04:08 2013 UTC (11 years, 6 months ago) by niro
File size: 1118 byte(s)
auto added: ver bump to 3.7.15.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="sqlite" |
4 | PVER="3.7.15.2" |
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 | # crlf |
32 | echo |
33 | } |
34 | |
35 | SRCFILE="${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER}).tar.gz" # a special srcfile is needed to build without tcl |
36 | SRCDIR="${BUILDDIR}/${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER})" |
37 | |
38 | sminclude multilib |
39 | |
40 | SRC_URI=( |
41 | http://www.sqlite.org/${SRCFILE} |
42 | mirror://${PNAME}/${SRCFILE} |
43 | ) |
44 | |
45 | UP2DATE="updatecmd http://www.sqlite.org | grep -A2 Current | sed -n 's/.*Version \(.*\) of.*/\1/;$ p'" |
46 | |
47 | src_compile() |
48 | { |
49 | mconfigure \ |
50 | --enable-load-extension \ |
51 | --disable-readline \ |
52 | --enable-cross-thread-connections \ |
53 | --enable-threadsafe \ |
54 | --disable-tcl \ |
55 | --disable-debug \ |
56 | || die |
57 | |
58 | mmake || die |
59 | } |