4.11
Last change
on this file since 80cf137 was
fdb2b9e,
checked in by Chris Johns <chrisj@…>, on 07/26/14 at 00:44:45
|
rtems-bsp: Install 3rd party packages under a BSP.
Provide the paths so a package built for RTEMS can be installed
under the BSP.
Update NTP to install under the BSP.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | # |
---|
2 | # NTP 4.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's NTP. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: ntp-%{ntp_version}-%{_host}-%{release} |
---|
12 | Summary: NTP is the Network Time Protocol. |
---|
13 | Version: %{ntp_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.ntp.org/ |
---|
16 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | # |
---|
19 | # NTP Source |
---|
20 | # |
---|
21 | %source set ntp http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-%{ntp_version}.tar.gz |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | build_top=$(pwd) |
---|
28 | |
---|
29 | source_dir_ntp="ntp-%{ntp_version}" |
---|
30 | %source setup ntp -q -n ntp-%{ntp_version} |
---|
31 | %patch setup ntp -p1 |
---|
32 | |
---|
33 | cd ${build_top} |
---|
34 | |
---|
35 | %build |
---|
36 | build_top=$(pwd) |
---|
37 | |
---|
38 | %{build_directory} |
---|
39 | |
---|
40 | mkdir -p ${build_dir} |
---|
41 | cd ${build_dir} |
---|
42 | |
---|
43 | %{host_build_flags} |
---|
44 | |
---|
45 | ../${source_dir_ntp}/configure \ |
---|
46 | --host=%{_host} \ |
---|
47 | --prefix=%{_prefix} \ |
---|
48 | --bindir=%{_bindir} \ |
---|
49 | --exec_prefix=%{_exec_prefix} \ |
---|
50 | --includedir=%{_includedir} \ |
---|
51 | --libdir=%{_libdir} \ |
---|
52 | --libexecdir=%{_libexecdir} \ |
---|
53 | --mandir=%{_mandir} \ |
---|
54 | --infodir=%{_infodir} \ |
---|
55 | --datadir=%{_datadir} \ |
---|
56 | --disable-ipv6 \ |
---|
57 | --disable-HOPFPCI |
---|
58 | |
---|
59 | # NTP does not build on sync.rtems.org with jobs |
---|
60 | # %{__make} %{?_smp_mflags} all |
---|
61 | %{__make} all |
---|
62 | |
---|
63 | cd ${build_top} |
---|
64 | |
---|
65 | %install |
---|
66 | build_top=$(pwd) |
---|
67 | |
---|
68 | %{__rmdir} $SB_BUILD_ROOT |
---|
69 | |
---|
70 | cd ${build_dir} |
---|
71 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
72 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.