source: rtems-source-builder/source-builder/config/sqlite-3-1.cfg @ 113c65c

5
Last change on this file since 113c65c was 113c65c, checked in by Jonathan Brandmeyer <jbrandmeyer@…>, on 04/02/20 at 22:35:15

databases/sqlite: Update to 3.31.1

closes #3927.

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[712516a]1#
2# Sqlite 3.x.x.x Version 1.
3#
4# This configuration file configure's, make's and install's Sqlite
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      sqlite-%{sqlite_version}-%{_host}-%{release}
12Summary:   SQLite is an in-process library that implements a
13           self-contained, serverless, zero-configuration,
[113c65c]14           transactional SQL database engine.
[712516a]15Version:   %{sqlite_version}
16Release:   %{release}
[113c65c]17URL:       http://www.sqlite.org/
[712516a]18
19#
20# Sqlite Source
21#
[113c65c]22%source set sqlite http://www.sqlite.org/%{sqlite_src_year}/sqlite-autoconf-%{sqlite_src_version}.tar.gz
[712516a]23
24#
25# Prepare the source code.
26#
27%prep
28  build_top=$(pwd)
29
[113c65c]30  source_dir_sqlite="sqlite-autoconf-%{sqlite_src_version}"
31  %source setup sqlite -q -n sqlite-autoconf-%{sqlite_src_version}
[712516a]32  %patch setup sqlite -p1
33
34  cd ${build_top}
35
36%build
37  build_top=$(pwd)
38
39  %{build_directory}
40
41  mkdir -p ${build_dir}
42  cd ${build_dir}
43
44  %{host_build_flags}
45
[113c65c]46  # RTEMS-specific SQLite configuration options.
47  # See also
48  # - https://sqlite.org/wal.html#noshm
49  # - https://sqlite.org/malloc.html
50  #
51  # Many other compile-time options may be passed in via CFLAGS.
52  #   See also https://sqlite.org/compile.html
53  #
54  # RTEMS filesystems do not support POSIX advisory file locks.  Applications
55  # must choose an appropriate SQLite VFS which avoids them, such as unix-none
56  # (no locking at all: Application logic must avoid collisions) or
57  # unix-dotfile.  This step must be performed at application startup time.
58  #   See also https://sqlite.org/c3ref/vfs_find.html
59  #
60  CFLAGS="${CFLAGS} -DSQLITE_MAX_MMAP_SIZE=0 -DSQLITE_DEFAULT_LOCKING_MODE=1 -DSQLITE_ENABLE_MEMSYS5"
[712516a]61
62  ../${source_dir_sqlite}/configure \
63    --host=%{_host} \
64    --prefix=%{_prefix} \
65    --bindir=%{_bindir} \
66    --exec_prefix=%{_exec_prefix} \
67    --includedir=%{_includedir} \
68    --libdir=%{_libdir} \
69    --libexecdir=%{_libexecdir} \
70    --mandir=%{_mandir} \
71    --infodir=%{_infodir} \
72    --datadir=%{_datadir} \
73    --disable-largefile \
[113c65c]74    --disable-readline
[712516a]75
76  %{__make} %{?_smp_mflags} sqlite3.h libsqlite3.la
77
78  cd ${build_top}
79
80%install
81  build_top=$(pwd)
82
83  %{__rmdir} $SB_BUILD_ROOT
84
85  cd ${build_dir}
[113c65c]86  # Warning: The unusual install targets avoid attempting to compile and link
87  # the SQLite3 command-line shell.  The SQLite3 shell is not supported by
88  # RTEMS.
89  %{__make} DESTDIR=$SB_BUILD_ROOT install-data install-libLTLIBRARIES
[712516a]90  cd ${build_top}
91
Note: See TracBrowser for help on using the repository browser.