summaryrefslogtreecommitdiffstats
path: root/config/autoconf-2-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-10-31 12:09:38 +1100
committerChris Johns <chrisj@rtems.org>2012-10-31 12:09:38 +1100
commit52604491d35d6d6df76f0cec5607455abf2b39b8 (patch)
tree04590d7d213db26aa24e83623e6789c935355c61 /config/autoconf-2-1.cfg
parentCreate the sources path if not present and the user has forced. (diff)
downloadrtems-source-builder-52604491d35d6d6df76f0cec5607455abf2b39b8.tar.bz2
Support modules other than bintuls and gcc.
Added support to build autoconf and automake plus other packages such as libusb and the stlink project. This includes support to build a specific github version downloaded from github.
Diffstat (limited to '')
-rw-r--r--config/autoconf-2-1.cfg56
1 files changed, 56 insertions, 0 deletions
diff --git a/config/autoconf-2-1.cfg b/config/autoconf-2-1.cfg
new file mode 100644
index 0000000..8cf36d1
--- /dev/null
+++ b/config/autoconf-2-1.cfg
@@ -0,0 +1,56 @@
+#
+# Autoconf 2.xx Version 1.
+#
+# This configuration file configure's, make's and install's autoconf
+#
+# Warning: this package is only for bootstrapping within a build.
+#
+
+%warning This autoconf build is for internal bootstraps, no package created
+
+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
+
+#
+# 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 "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
+ CFLAGS="$TB_OPT_FLAGS" \
+ ./configure \
+ --build=%{_build} --host=%{_host} \
+ --verbose --disable-nls \
+ --without-included-gettext \
+ --prefix=$TB_TMPPREFIX
+
+ %{__make} %{?_smp_mflags} all
+
+ cd ..
+
+%install
+ export PATH="%{_bindir}:${PATH}"
+ rm -rf $TB_BUILD_ROOT
+
+ cd autoconf-%{autoconf_version}
+ %{__make} install
+
+ cd ..