source: rtems-source-builder/source-builder/config/sqlite-3-1.cfg @ 907eabf

Last change on this file since 907eabf was 907eabf, checked in by Chris Johns <chrisj@…>, on 06/26/20 at 01:53:57

sqlite: Change to https for downloading the source package.

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