source: rtems-source-builder/source-builder/config/automake-1-1.cfg @ 649a64c

4.104.114.95
Last change on this file since 649a64c was 4f26bdb, checked in by Chris Johns <chrisj@…>, on 04/01/13 at 04:19:56

Add Canadian Cross support.

Add support to build MinGW tools using Cygwin. This is a Canadian cross
build.

Do not expand the directives when parsing a configuration file. Hold
in the package object the text as read from the configuration file. Still
parse the logic but leave the macros. This allows a configuration to be
varied when the build happens. The Canadian cross uses this to build a
build compiler used to build a Cxc runtime.

Add Cxc support to the build module. In the defaults add rm and rmfile
macros, add Cxc paths and pre-build script code.

In the setbuilder check for a Cxc build and if so and the package
allow Cxc build the build host version then the host target
version.

Add cygiwn support to the defaults processing and to the Windows module.

  • 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 test "%{_internal_autotools}" == "yes"; then
35    export PATH="%{_bindir}:${PATH}"
36  else
37    export PATH=$SB_ORIG_PATH
38  fi
39
40  cd automake-%{automake_version}
41
42  if test "%{_internal_autotools}" == "yes"; then
43    am_prefix=$SB_TMPPREFIX
44  else
45    am_prefix=%{_prefix}
46  fi
47
48  if test "%{_build}" != "%{_host}" ; then
49  CFLAGS_FOR_BUILD="-g -O2 -Wall"
50  fi
51  export CFLAGS CFLAGS_FOR_BUILD CC
52
53  CFLAGS="$SB_OPT_FLAGS" \
54  ./configure \
55    --build=%{_build} --host=%{_host} \
56    --verbose \
57    --prefix=${am_prefix}
58
59  %{__make} %{?_smp_mflags} all
60
61  unset CFLAGS_FOR_BUILD
62
63  cd ..
64
65%install
66  export PATH="%{_bindir}:${PATH}"
67  rm -rf $SB_BUILD_ROOT
68
69  cd automake-%{automake_version}
70
71  if "%{_internal_autotools}" == "yes"; then
72    %{__make} install
73  else
74    %{__make} DESTDIR=$SB_BUILD_ROOT install
75  fi
76
77  cd ..
Note: See TracBrowser for help on using the repository browser.