Magellan Linux

Contents of /smage/trunk/core/sqlite/sqlite-3.20.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10629 - (show annotations) (download)
Tue Aug 29 09:37:26 2017 UTC (6 years, 7 months ago) by niro
File size: 1478 byte(s)
auto added: ver bump to 3.20.1-r1
1 # $Id$
2
3 PNAME="sqlite"
4 PVER="3.20.1"
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/2017/${SRCFILE}
53 mirror://${PNAME}/${SRCFILE}
54 )
55
56 UP2DATE="updatecmd http://www.sqlite.org | grep 'Latest Release' | sed -n 's/.*Version \(.*\)\ (.*/\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 }