Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32098 - (show annotations) (download)
Mon Apr 29 11:37:15 2019 UTC (4 years, 11 months ago) by niro
File size: 1565 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="sqlite"
4 PVER="3.27.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=">= sys-libs/ncurses-6.1
13 >= sys-libs/readline-8.0"
14
15 # helper function
16 sqlite_upstream_pver()
17 {
18 local pver="$1"
19 local count=0
20 local i
21
22 for i in $(echo ${pver//./\ })
23 do
24 if [[ ${i} -lt 10 ]] && [[ ${count} -gt 0 ]]
25 then
26 echo -n "0${i}"
27 else
28 echo -n "${i}"
29 fi
30 (( count++))
31 done
32
33 # fill up missing zeros if needed
34 if [[ ${count} -lt 4 ]]
35 then
36 for (( i=4-count; i>0; i--))
37 do
38 echo -n "00"
39 done
40 fi
41
42 # crlf
43 echo
44 }
45
46 SRCFILE="${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER}).tar.gz" # a special srcfile is needed to build without tcl
47 SRCDIR="${BUILDDIR}/${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER})"
48
49 sminclude multilib mbuild
50
51 SRC_URI=(
52 http://www.sqlite.org/2019/${SRCFILE}
53 mirror://${PNAME}/${SRCFILE}
54 )
55
56 #UP2DATE="updatecmd http://www.sqlite.org | grep 'Latest Release' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'"
57 UP2DATE="updatecmd http://www.sqlite.org | grep 'Version' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'"
58
59 src_compile()
60 {
61 # required flags by firefox
62 export CFLAGS+=" -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
63
64 mconfigure \
65 --enable-load-extension \
66 --enable-readline \
67 --enable-cross-thread-connections \
68 --enable-threadsafe \
69 --disable-tcl \
70 --disable-debug \
71 || die
72
73 mmake || die
74 }