source: rtems-source-builder/config/autoconf-2-1.cfg @ 2181fb8

4.104.114.95
Last change on this file since 2181fb8 was 2181fb8, checked in by Chris Johns <chrisj@…>, on 11/05/12 at 01:27:35

Cleaned up configuration. Allow the sb-builder to directly build packages.

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