source: rtems-source-builder/source-builder/config/pixman-0-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.1 KB
Line 
1#
2# Pixman 0.x.x Version 1.
3#
4# This configuration file configure's, make's and install's Pixman.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      pixman-%{pixman_version}-%{_host}-%{release}
12Summary:   Pixman is a low-level software library for pixel manipulation,
13           providing features such as image compositing and trapezoid
14           rasterization.
15Version:   %{pixman_version}
16Release:   %{release}
17URL:       http://www.pixman.org/
18BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
19
20#
21# Source
22#
23Source0: http://cairographics.org/releases/pixman-%{pixman_version}.tar.gz
24
25#
26# Prepare the source code.
27#
28%prep
29  build_top=$(pwd)
30
31  source_dir_0="pixman-%{pixman_version}"
32  %setup -q -n pixman-%{pixman_version}
33  %{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
34  %{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
35  %{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
36  %{?patch3:%patch3 %{?patch3_opts:%{patch3_opts}}%{!?patch3_opts:-p1}}
37  %{?patch4:%patch4 %{?patch4_opts:%{patch4_opts}}%{!?patch4_opts:-p1}}
38  %{?patch5:%patch5 %{?patch5_opts:%{patch5_opts}}%{!?patch5_opts:-p1}}
39  %{?patch6:%patch6 %{?patch6_opts:%{patch6_opts}}%{!?patch6_opts:-p1}}
40  %{?patch7:%patch7 %{?patch7_opts:%{patch7_opts}}%{!?patch7_opts:-p1}}
41  %{?patch8:%patch8 %{?patch8_opts:%{patch8_opts}}%{!?patch8_opts:-p1}}
42  %{?patch9:%patch9 %{?patch9_opts:%{patch9_opts}}%{!?patch9_opts:-p1}}
43
44  cd ${build_top}
45
46%build
47  build_top=$(pwd)
48
49  %{build_directory}
50
51  mkdir -p ${build_dir}
52  cd ${build_dir}
53
54  %{host_build_flags}
55
56  ../${source_dir_0}/configure \
57    --prefix=%{_prefix} \
58    --bindir=%{_bindir} \
59    --exec_prefix=%{_exec_prefix} \
60    --includedir=%{_includedir} \
61    --libdir=%{_libdir} \
62    --libexecdir=%{_libexecdir} \
63    --mandir=%{_mandir} \
64    --infodir=%{_infodir} \
65    --datadir=%{_datadir} \
66    --build=%{_build} --host=%{_host}
67
68  %{__make} %{?_smp_mflags} all
69
70  cd ${build_top}
71
72%install
73  build_top=$(pwd)
74
75  %{__rmdir} $SB_BUILD_ROOT
76
77  cd ${build_dir}
78  %{__make} DESTDIR=$SB_BUILD_ROOT install
79  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.