source: rtems-source-builder/source-builder/config/automake-1-1.cfg @ 6d32fe7

4.104.114.95
Last change on this file since 6d32fe7 was 6d32fe7, checked in by Chris Johns <chrisj@…>, on 07/20/13 at 22:55:11

CONFIG: PR 2127 - Build fails on Linux.

Fix shell tests where '==' was used rather than '='.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2# Automake 1.xx Version 1.
3#
4# This configuration file configure's, make's and install's automake
5#
6
7%ifn %{defined _internal_autotools}
8  %define _internal_autotools no
9%endif
10
11Name:      automake-%{automake_version}-%{_host}-%{release}
12Summary:   Automake v%{automake_version} for host %{_host}
13Version:   %{automake_version}
14Release:   %{release}
15URL:       http://www.gnu.org/software/automake/
16BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
17
18#
19# Source
20#
21Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{automake_version}.tar.gz
22VersionControl0: git clone git://git.savannah.gnu.org/automake.git
23
24#
25# Prepare the source code.
26#
27%prep
28  %setup -q -c -n %{name}-%{version}
29  cd automake-%{automake_version}
30  %{?patch0:%patch0 -p1}
31  cd ..
32
33%build
34  %if %{defined _internal_autotools_path}
35    export PATH="%{_internal_autotools_path}/bin:${PATH}"
36  %endif
37
38  cd automake-%{automake_version}
39
40  if test "%{_internal_autotools}" = "yes"; then
41    am_prefix=%{_internal_autotools_path}
42  else
43    am_prefix=%{_prefix}
44  fi
45
46  if test "%{_build}" != "%{_host}" ; then
47    CFLAGS_FOR_BUILD="-g -O2 -Wall"
48  fi
49  export CFLAGS CFLAGS_FOR_BUILD CC
50
51  CFLAGS="$SB_OPT_FLAGS" \
52  ./configure \
53    --build=%{_build} --host=%{_host} \
54    --verbose \
55    --prefix=${am_prefix}
56
57  %{__make} %{?_smp_mflags} all
58
59  unset CFLAGS_FOR_BUILD
60
61  cd ..
62
63%install
64  export PATH="%{_bindir}:${PATH}"
65  %{__rmdir} $SB_BUILD_ROOT
66
67  cd automake-%{automake_version}
68
69  if test "%{_internal_autotools}" = "yes"; then
70    %{__make} install
71  else
72    %{__make} DESTDIR=$SB_BUILD_ROOT install
73  fi
74
75  cd ..
Note: See TracBrowser for help on using the repository browser.