Add m4 and a gnu-tools build set.

This commit is contained in:
Chris Johns 2012-10-31 22:36:11 +11:00
parent 9116797083
commit 80027df531
3 changed files with 102 additions and 0 deletions

27
config/gnu-tools.cfg Normal file
View File

@ -0,0 +1,27 @@
#
# GNU Tools Set
#
%define release 1
package: gnu-tool-%{_target}-%{release}
#
# Project custom message
#
%define gcc_version_message SB-%{release},gcc-%{gcc_version}/newlib-%{newlib_version}
#
# Enable G++
#
%define enable_cxx 1
#
# Tool configuration.
#
m4-1.4.16-1
autoconf-2.69-1
automake-1.12-1
binutils-2.22-1
gcc-4.6-newlib-1.20-1
gdb-7.5-1

54
config/m4-1-1.cfg Normal file
View File

@ -0,0 +1,54 @@
#
# M4 1.xx Version 1.
#
# This configuration file configure's, make's and install's m4
#
# Warning: this package is only for bootstrapping within a build.
#
Summary: M4 v%{m4_version} for host %{_host}
Version: %{m4_version}
Release: %{release}
URL: http://www.gnu.org/software/m4/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# Source
#
Source0: ftp://ftp.gnu.org/gnu/m4/m4-%{m4_version}.tar.gz
#
# Prepare the source code.
#
%prep
%setup -q -c -T -n %{name}-%{version}
cd m4-%{m4_version}
%{?patch0:%patch0 -p1}
cd ..
%build
export PATH="%{_bindir}:${PATH}"
cd m4-%{m4_version}
%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=$SB_TMPPREFIX
%{__make} %{?_smp_mflags} all
cd ..
%install
export PATH="%{_bindir}:${PATH}"
rm -rf $SB_BUILD_ROOT
cd m4-%{m4_version}
%{__make} install
cd ..

21
config/m4-1.4.16-1.cfg Normal file
View File

@ -0,0 +1,21 @@
#
# M4 1.4.16
#
%ifn %{defined release}
%error No 'release' defined
%endif
%include %{_configdir}/base.cfg
%define m4_version 1.4.16
Name: m4-%{m4_version}-%{_host}-%{release}
%description
M4 for host %{_host}.
#
# The m4 build instructions. We use 1.x.x Release 1.
#
%include %{_configdir}/m4-1-1.cfg