source: rtems-source-builder/source-builder/config/libffi-3-1.cfg @ 96c414c

5
Last change on this file since 96c414c 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.3 KB
Line 
1#
2# LibFFI 3.x.x Version 1.
3#
4# This configuration file configure's, make's and install's LibFFI.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      libffi-%{libffi_version}-%{_host}-%{release}
12Summary:   LibFFI provides a portable, high level programming interface to
13            various calling conventions.
14Version:   %{libffi_version}
15Release:   %{release}
16URL:       https://sourceware.org/libffi/
17
18#
19# Source
20#
21%source set libffi ftp://sourceware.org/pub/libffi/libffi-%{libffi_version}.tar.gz
22
23#
24# Prepare the source code.
25#
26%prep
27  build_top=$(pwd)
28
29  source_dir_libffi="libffi-%{libffi_version}"
30  %source setup libffi -q -n libffi-%{libffi_version}
31  %patch setup libffi -p1
32
33  cd ${build_top}
34
35%build
36  build_top=$(pwd)
37
38  %{build_directory}
39
40  mkdir -p ${build_dir}
41  cd ${build_dir}
42
43  %{host_build_flags}
44
45  ../${source_dir_libffi}/configure \
46    --prefix=%{_prefix} \
47    --bindir=%{_bindir} \
48    --exec_prefix=%{_exec_prefix} \
49    --includedir=%{_includedir} \
50    --libdir=%{_libdir} \
51    --libexecdir=%{_libexecdir} \
52    --mandir=%{_mandir} \
53    --infodir=%{_infodir} \
54    --datadir=%{_datadir} \
55    --build=%{_build} --host=%{_host}
56
57  %{__make} %{?_smp_mflags} all
58
59  cd ${build_top}
60
61%install
62  build_top=$(pwd)
63
64  %{__rmdir} $SB_BUILD_ROOT
65
66  cd ${build_dir}
67  %{__make} DESTDIR=$SB_BUILD_ROOT install
68  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.