5
Last change
on this file since 8156748 was
8156748,
checked in by Jiri Gaisler <jiri@…>, on 06/12/19 at 12:28:06
|
Add bare target to build standalone sis (devel/sis)
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # |
---|
2 | # Sis 2.xx Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's sis |
---|
5 | # |
---|
6 | |
---|
7 | Name: sis-%{sis_version}-%{_host}-%{release} |
---|
8 | Summary: Sis v%{sis_version} for host %{_host} |
---|
9 | Version: %{sis_version} |
---|
10 | Release: %{release} |
---|
11 | #URL: http://www.gnu.org/software/sis/ |
---|
12 | |
---|
13 | # |
---|
14 | # Source |
---|
15 | # |
---|
16 | %define sis_source sis-%{sis_version} |
---|
17 | %source set sis https://git.rtems.org/sis/snapshot/%{sis_source}.tar.bz2 |
---|
18 | |
---|
19 | # |
---|
20 | # Prepare the source code. |
---|
21 | # |
---|
22 | %prep |
---|
23 | build_top=$(pwd) |
---|
24 | |
---|
25 | %source setup sis -q -n sis-%{sis_version} |
---|
26 | |
---|
27 | cd ${build_top} |
---|
28 | |
---|
29 | %build |
---|
30 | build_top=$(pwd) |
---|
31 | |
---|
32 | cd sis-%{sis_version} |
---|
33 | |
---|
34 | ac_prefix=%{_prefix} |
---|
35 | |
---|
36 | if test "%{_build}" != "%{_host}" ; then |
---|
37 | CFLAGS_FOR_BUILD="-g -O2 -Wall" |
---|
38 | fi |
---|
39 | export CFLAGS CFLAGS_FOR_BUILD CC |
---|
40 | |
---|
41 | if test "%{_target}" != "" ; then |
---|
42 | SIS_PREFIX="%{_target}-" |
---|
43 | fi |
---|
44 | CFLAGS="$SB_CFLAGS" \ |
---|
45 | ./configure \ |
---|
46 | --build=%{_build} --host=%{_host} \ |
---|
47 | --program-prefix="$SIS_PREFIX" \ |
---|
48 | --prefix=${ac_prefix} |
---|
49 | |
---|
50 | %{__make} %{?_smp_mflags} all |
---|
51 | |
---|
52 | unset CFLAGS_FOR_BUILD |
---|
53 | |
---|
54 | cd ${build_top} |
---|
55 | |
---|
56 | %install |
---|
57 | build_top=$(pwd) |
---|
58 | |
---|
59 | export PATH="%{_bindir}:${PATH}" |
---|
60 | %{__rmdir} $SB_BUILD_ROOT |
---|
61 | |
---|
62 | cd sis-%{sis_version} |
---|
63 | |
---|
64 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
65 | |
---|
66 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.