source: rtems-source-builder/source-builder/config/glib-2-1.cfg @ 56e8d80

4.104.114.95
Last change on this file since 56e8d80 was 56e8d80, checked in by Chris Johns <chrisj@…>, on 02/04/14 at 07:38:18

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.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1#
2# GLib 2.x.x Version 1.
3#
4# This configuration file configure's, make's and install's GLib.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      glib-%{glib_version}-%{_host}-%{release}
12Summary:   GLib provides the core application building blocks for
13           libraries and applications written in C.
14Version:   %{glib_version}
15Release:   %{release}
16URL:       https://developer.gnome.org/glib/
17BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
18
19#
20# Source
21#
22Source0: http://ftp.gnome.org/pub/gnome/sources/glib/%{glib_version_major}/glib-%{glib_version}.tar.xz
23
24#
25# Prepare the source code.
26#
27%prep
28  build_top=$(pwd)
29
30  source_dir_0="glib-%{glib_version}"
31  %setup -q -n glib-%{glib_version}
32  %{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
33  %{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
34  %{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
35  %{?patch3:%patch3 %{?patch3_opts:%{patch3_opts}}%{!?patch3_opts:-p1}}
36  %{?patch4:%patch4 %{?patch4_opts:%{patch4_opts}}%{!?patch4_opts:-p1}}
37  %{?patch5:%patch5 %{?patch5_opts:%{patch5_opts}}%{!?patch5_opts:-p1}}
38  %{?patch6:%patch6 %{?patch6_opts:%{patch6_opts}}%{!?patch6_opts:-p1}}
39  %{?patch7:%patch7 %{?patch7_opts:%{patch7_opts}}%{!?patch7_opts:-p1}}
40  %{?patch8:%patch8 %{?patch8_opts:%{patch8_opts}}%{!?patch8_opts:-p1}}
41  %{?patch9:%patch9 %{?patch9_opts:%{patch9_opts}}%{!?patch9_opts:-p1}}
42
43  cd ${build_top}
44
45%build
46  build_top=$(pwd)
47
48  %{build_directory}
49
50  mkdir -p ${build_dir}
51  cd ${build_dir}
52
53  %{host_build_flags}
54
55  SYSROOT=$SB_TMPPREFIX
56
57  PKG_CONFIG_PATH=$SYSROOT \
58  PKG_CONFIG_SYSROOT_DIR=$SB_TMPROOT \
59  %{_ld_library_path}=$SYSROOT/lib \
60  ../${source_dir_0}/configure \
61    --prefix=%{_prefix} \
62    --bindir=%{_bindir} \
63    --exec_prefix=%{_exec_prefix} \
64    --includedir=%{_includedir} \
65    --libdir=%{_libdir} \
66    --libexecdir=%{_libexecdir} \
67    --mandir=%{_mandir} \
68    --infodir=%{_infodir} \
69    --datadir=%{_datadir} \
70    --build=%{_build} --host=%{_host} \
71    --with-sysroot=$SYSROOT
72
73  %{__make} %{?_smp_mflags} all
74
75  cd ${build_top}
76
77%install
78  build_top=$(pwd)
79
80  %{__rmdir} $SB_BUILD_ROOT
81
82  cd ${build_dir}
83  %{__make} DESTDIR=$SB_BUILD_ROOT install
84  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.