diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-06 10:09:40 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-06 10:09:40 +1100 |
commit | c80560d9a485880ff9b6a107fab7097b89d539ac (patch) | |
tree | 1d5d9771b2f59f1a4efb100287e077d558224d8f /source-builder/config/autoconf-2-1.cfg | |
parent | Merge branch 'master' of ssh://kiwi/opt/work/sw/rtems/tb/source-builder (diff) | |
download | rtems-source-builder-c80560d9a485880ff9b6a107fab7097b89d539ac.tar.bz2 |
Move into the source-builder tree.
Diffstat (limited to 'source-builder/config/autoconf-2-1.cfg')
-rw-r--r-- | source-builder/config/autoconf-2-1.cfg | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/source-builder/config/autoconf-2-1.cfg b/source-builder/config/autoconf-2-1.cfg new file mode 100644 index 0000000..fbb1910 --- /dev/null +++ b/source-builder/config/autoconf-2-1.cfg @@ -0,0 +1,69 @@ +# +# Autoconf 2.xx Version 1. +# +# This configuration file configure's, make's and install's autoconf +# + +ifn %{defined _internal_autotools} + %define _internal_autotools no +%endfi + +Name: autoconf-%{autoconf_version}-%{_host}-%{release} +Summary: Autoconf v%{autoconf_version} for host %{_host} +Version: %{autoconf_version} +Release: %{release} +URL: http://www.gnu.org/software/autoconf/ +BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) + +# +# Source +# +Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{autoconf_version}.tar.gz +VersionControl0: git clone git://git.sv.gnu.org/autoconf + +# +# Prepare the source code. +# +%prep +%setup -q -c -T -n %{name}-%{version} +cd autoconf-%{autoconf_version} +%{?patch0:%patch0 -p1} +cd .. + +%build + export PATH="%{_bindir}:${PATH}" + cd autoconf-%{autoconf_version} + + if "%{_internal_autotools}" == "yes"; then + ac_prefix=$SB_TMPPREFIX + else + ac_prefix=%{_prefix} + fi + +%if "%{_build}" != "%{_host}" + CFLAGS_FOR_BUILD="-g -O2 -Wall" \ +%endif + CFLAGS="$SB_OPT_FLAGS" \ + ./configure \ + --build=%{_build} --host=%{_host} \ + --verbose --disable-nls \ + --without-included-gettext \ + --prefix=${ac_prefix} + + %{__make} %{?_smp_mflags} all + + cd .. + +%install + export PATH="%{_bindir}:${PATH}" + rm -rf $SB_BUILD_ROOT + + cd autoconf-%{autoconf_version} + + if "%{_internal_autotools}" == "yes"; then + %{__make} install + else + %{__make} DESTDIR=$SB_BUILD_ROOT install + fi + + cd .. |