Overview
Context
Changes
Modified server/buildpkgs/sqlite3/build.sh
from [2e77c6d186]
to [f1c534a317].
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
-
+
+
-
-
-
+
+
+
+
+
+
+
-
+
|
#! /bin/bash
# Define parameters
VERS=3.7.2
VERS=3.7.7.1
VERSUNDER="$(echo "${VERS}" | sed 's@\.@_@g')"
VERSZEROS="$(echo "${VERS}" | sed 's@\.\([0-9]\)\.@.0\1.@g;s@\.\([0-9]\)\.@.0\1.@g;s@\.\([0-9]\)$@.0\1@g;s@\.@@g')"
SRC="src/sqlite-${VERSUNDER}.tar.gz"
SRCURL="http://www.sqlite.org/sqlite-${VERSUNDER}-tea.tar.gz"
BUILDDIR="sqlite${VERS}"
SRC="src/sqlite-${VERS}.tar.gz"
SRCURL="http://www.sqlite.org/sqlite-autoconf-${VERSZEROS}.tar.gz"
BUILDDIR="sqlite-autoconf-${VERSZEROS}"
export VERS SRC SRCURL BUILDDIR
# Load common functions
source ../common.sh
# Do not build if the "tcl" platform has been requested
not_platforms 'tcl'
# Download source
download_src
(
rm -rf build
mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
mkdir build
cd build/ || exit 1
gzip -dc "../${SRC}" | tar -xf -
cd "${BUILDDIR}" || exit 1
cd "tea" || exit 1
chmod +x tclconfig/install-sh
CPPFLAGS="-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS"
export CPPFLAGS
bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA}
${MAKE:-make} || exit 1
${MAKE:-make} install-binaries PKG_DIR='' || exit 1
rm -f "${PLATDIR}"/*.a
) || exit 1
../create_teapot "${PLATDIR}/teapot.txt" "sqlite3" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "SQLite"
../create_teapot "${PLATDIR}/teapot.txt" "sqlite3" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "SQLite (with FTS3)"
exit 0
|