Magellan Linux

Contents of /branches/R11-unstable/core/sqlite/sqlite-3.8.10.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25069 - (show annotations) (download)
Tue Nov 25 02:57:01 2014 UTC (9 years, 5 months ago) by niro
File size: 1420 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="sqlite"
4 PVER="3.8.10.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=">= sys-libs/readline-6.3"
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 sminclude multilib
49
50 SRC_URI=(
51 http://www.sqlite.org/2015/${SRCFILE}
52 mirror://${PNAME}/${SRCFILE}
53 )
54
55 UP2DATE="updatecmd http://www.sqlite.org | grep -A2 Current | sed -n 's/.*Version \(.*\) of.*/\1/;$ p'"
56
57 src_compile()
58 {
59 # required flags by firefox
60 export CFLAGS+=" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
61
62 mconfigure \
63 --enable-load-extension \
64 --enable-readline \
65 --enable-cross-thread-connections \
66 --enable-threadsafe \
67 --disable-tcl \
68 --disable-debug \
69 || die
70
71 mmake || die
72 }