4.104.114.95
Last change
on this file since 4f26bdb was
4f26bdb,
checked in by Chris Johns <chrisj@…>, on 04/01/13 at 04:19:56
|
Add Canadian Cross support.
Add support to build MinGW tools using Cygwin. This is a Canadian cross
build.
Do not expand the directives when parsing a configuration file. Hold
in the package object the text as read from the configuration file. Still
parse the logic but leave the macros. This allows a configuration to be
varied when the build happens. The Canadian cross uses this to build a
build compiler used to build a Cxc runtime.
Add Cxc support to the build module. In the defaults add rm and rmfile
macros, add Cxc paths and pre-build script code.
In the setbuilder check for a Cxc build and if so and the package
allow Cxc build the build host version then the host target
version.
Add cygiwn support to the defaults processing and to the Windows module.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | # |
---|
2 | # Expat 2.xx Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's expat. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: expat-%{expat_version}-%{_host}-%{release} |
---|
12 | Summary: Expat XML Parser v%{expat_version} for target %{_target} on host %{_host} |
---|
13 | Version: %{expat_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://expat.sourceforge.net/ |
---|
16 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | # |
---|
19 | # Source |
---|
20 | # |
---|
21 | Source0: http://downloads.sourceforge.net/project/expat/expat/%{expat_version}/expat-%{expat_version}.tar.gz |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | %setup -q -c -n %{name}-%{version} |
---|
28 | cd expat-%{expat_version} |
---|
29 | %{?patch0:%patch0 -p1} |
---|
30 | cd .. |
---|
31 | |
---|
32 | %build |
---|
33 | cd expat-%{expat_version} |
---|
34 | |
---|
35 | if test "%{_build}" != "%{_host}" ; then |
---|
36 | CFLAGS_FOR_BUILD="-g -O2 -Wall" |
---|
37 | fi |
---|
38 | export CFLAGS_FOR_BUILD |
---|
39 | |
---|
40 | CFLAGS="$SB_OPT_FLAGS" \ |
---|
41 | ./configure \ |
---|
42 | --build=%{_build} --host=%{_host} \ |
---|
43 | --verbose \ |
---|
44 | --prefix=%{_prefix} --bindir=%{_bindir} \ |
---|
45 | --exec-prefix=%{_exec_prefix} \ |
---|
46 | --includedir=%{_includedir} --libdir=%{_libdir} \ |
---|
47 | --mandir=%{_mandir} --infodir=%{_infodir} |
---|
48 | |
---|
49 | %{__make} %{?_smp_mflags} all |
---|
50 | |
---|
51 | unset CFLAGS_FOR_BUILD |
---|
52 | |
---|
53 | cd .. |
---|
54 | |
---|
55 | %install |
---|
56 | rm -rf $SB_BUILD_ROOT |
---|
57 | |
---|
58 | cd expat-%{expat_version} |
---|
59 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
60 | |
---|
61 | cd .. |
---|
Note: See
TracBrowser
for help on using the repository browser.