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

4.104.114.95
Last change on this file since f3b5490 was f3b5490, checked in by Chris Johns <chrisj@…>, on 04/08/14 at 05:11:00

config,sb: Qemu build updates for FreeBSD and the start of MinG32.

Hack round the FreeBSD iconv support in Freebsd 10. In 10 libc now
supports iconv however iconv.h is present under /usr/local.

Start to add support to build qemu for MinGW via a Cxc. This is a
work in progress and contains lots of hidden traps.

In config.py separate out of the canadian build status.

  • Property mode set to 100644
File size: 2.3 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/lib/pkgconfig \
58  PKG_CONFIG_BUILD_TOP_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    --disable-dtrace
73
74  %{_ld_library_path}=$SYSROOT/lib \
75  %{__make} %{?_smp_mflags} all
76
77  cd ${build_top}
78
79%install
80  build_top=$(pwd)
81
82  %{__rmdir} $SB_BUILD_ROOT
83
84  cd ${build_dir}
85  %{__make} DESTDIR=$SB_BUILD_ROOT install
86  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.