diff options
author | Chris Johns <chrisj@rtems.org> | 2014-02-04 18:38:18 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-02-04 18:38:18 +1100 |
commit | 56e8d800550c88caa372f8119ec293d8899a35e0 (patch) | |
tree | 984cdffc184a1fab62d3799dd7579854ea9fb92b /source-builder/config/libtool-2-1.cfg | |
parent | sb: Do not assume the src is valid. (diff) | |
download | rtems-source-builder-56e8d800550c88caa372f8119ec293d8899a35e0.tar.bz2 |
config: Add support to build qemu.
Qemu requires gettext, glib, libffi, and pixman. DTC is built
as a submodule.
On Mavrick provide a pkg-config command so avoid needing a pkgconfig.
The one here is only just good enough to work.
Provide an internal autotools build including libtool so qemu can
be built from git.
Diffstat (limited to 'source-builder/config/libtool-2-1.cfg')
-rw-r--r-- | source-builder/config/libtool-2-1.cfg | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/source-builder/config/libtool-2-1.cfg b/source-builder/config/libtool-2-1.cfg new file mode 100644 index 0000000..e69493b --- /dev/null +++ b/source-builder/config/libtool-2-1.cfg @@ -0,0 +1,85 @@ +# +# Libtool 2.xx Version 1. +# +# This configuration file configure's, make's and install's libtool +# + +%ifn %{defined _internal_autotools} + %define _internal_autotools no + %ifn %{defined _internal_autotools_path} + %define _internal_autotools_path %{nil} + %endif +%endif + +Name: libtool-%{libtool_version}-%{_host}-%{release} +Summary: Libtool v%{libtool_version} for host %{_host} +Version: %{libtool_version} +Release: %{release} +URL: http://www.gnu.org/software/libtool/ +BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) + +# +# Source +# +Source0: ftp://ftp.gnu.org/gnu/libtool/libtool-%{libtool_version}.tar.gz +VersionControl0: git clone git://git.sv.gnu.org/libtool + +# +# Prepare the source code. +# +%prep + build_top=$(pwd) + + %setup -q -n libtool-%{libtool_version} + %{?patch0:%patch0 -p1} + + cd ${build_top} + +%build + build_top=$(pwd) + + %if %{defined _internal_autotools_path} + export PATH="%{_internal_autotools_path}/bin:${PATH}" + %endif + + cd libtool-%{libtool_version} + + if test "%{_internal_autotools}" = "yes"; then + ac_prefix=%{_internal_autotools_path} + else + ac_prefix=%{_prefix} + fi + + if test "%{_build}" != "%{_host}" ; then + CFLAGS_FOR_BUILD="-g -O2 -Wall" + fi + export CFLAGS CFLAGS_FOR_BUILD CC + + CFLAGS="$SB_OPT_FLAGS" \ + ./configure \ + --build=%{_build} --host=%{_host} \ + --verbose --disable-nls \ + --without-included-gettext \ + --prefix=${ac_prefix} + + %{__make} %{?_smp_mflags} all + + unset CFLAGS_FOR_BUILD + + cd ${build_top} + +%install + build_top=$(pwd) + + export PATH="%{_bindir}:${PATH}" + %{__rmdir} $SB_BUILD_ROOT + + cd libtool-%{libtool_version} + + if test "%{_internal_autotools}" = "yes"; then + %{__make} install + else + %{__make} DESTDIR=$SB_BUILD_ROOT install + fi + + cd ${build_top} |