source: rtems-source-builder/source-builder/config/sqlite-3-1.cfg @ 54e08b8

5
Last change on this file since 54e08b8 was 96c414c, checked in by Chris Johns <chrisj@…>, on 10/22/18 at 00:59:10

windows: Remove BuildRoot? from all configs, add a short tmp path.

Closes #3562.

  • Property mode set to 100644
File size: 1.8 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:       http://www.sqlite.org/
18
19#
20# Sqlite Source
21#
22%source set sqlite http://www.sqlite.org/%{sqlite_src_year}/sqlite-src-%{sqlite_src_version}.zip
23
24#
25# Prepare the source code.
26#
27%prep
28  build_top=$(pwd)
29
30  source_dir_sqlite="sqlite-src-%{sqlite_src_version}"
31  %source setup sqlite -q -n sqlite-src-%{sqlite_src_version}
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
46  CFLAGS="${CFLAGS} -DSQLITE_OMIT_WAL=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
47
48  ../${source_dir_sqlite}/configure \
49    --host=%{_host} \
50    --prefix=%{_prefix} \
51    --bindir=%{_bindir} \
52    --exec_prefix=%{_exec_prefix} \
53    --includedir=%{_includedir} \
54    --libdir=%{_libdir} \
55    --libexecdir=%{_libexecdir} \
56    --mandir=%{_mandir} \
57    --infodir=%{_infodir} \
58    --datadir=%{_datadir} \
59    --disable-largefile \
60    --disable-tcl \
61    --disable-readline \
62    --disable-amalgamation
63
64  %{__make} %{?_smp_mflags} sqlite3.h libsqlite3.la
65
66  #
67  # Create the sqlite shell executable so the install works.
68  #
69  touch sqlite3
70
71  cd ${build_top}
72
73%install
74  build_top=$(pwd)
75
76  %{__rmdir} $SB_BUILD_ROOT
77
78  cd ${build_dir}
79  %{__make} DESTDIR=$SB_BUILD_ROOT install
80  cd ${build_top}
81
82  #
83  # Remove the sqlite shell as it is just a touch.
84  #
85  %{__rm} $SB_BUILD_ROOT%{_bindir}/sqlite3
Note: See TracBrowser for help on using the repository browser.