Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/sqlite/sqlite-3.25.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12583 - (hide annotations) (download)
Thu Oct 25 15:06:41 2018 UTC (5 years, 7 months ago) by niro
File size: 1485 byte(s)
-release branches/alx07x-stable
1 niro 12446 # $Id$
2    
3     PNAME="sqlite"
4     PVER="3.25.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    
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 mbuild alx-split
50    
51     SRC_URI=(
52     http://www.sqlite.org/2018/${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     }