source: rtems-source-builder/source-builder/config/ntp-4-1.cfg @ 0ffee19

4.104.114.95
Last change on this file since 0ffee19 was 0ffee19, checked in by Chris Johns <chrisj@…>, on 06/15/14 at 05:40:34

sb: Add support for building RTEMS 3rd party packages.

Remove the 'opt' from various macros and shell variables.

Add pkgconfig to the checks to make it clear the check is a
pkgconfig check.

Add NTP support as the first package to be built using the RSB.

Split the RTEMS URL's out from the base bset file into a separate
file that be included by other files.

Add an RTEMS BSP configuration file to help abstract the process
of building 3rd party packages.

Clean the cross and canadian cross support up so we can cleanly support
cross and canadian cross building.

Refactor the pkgconfig support and clean up the PC file handling of
loading modules.

Add support for %{?..} to return false if a macro is %{nil}.

Add %{pkgconfig ..} support to allow better control of access RTEMS
pkgconfig files.

  • Property mode set to 100644
File size: 1.1 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
11Name:      ntp-%{ntp_version}-%{_host}-%{release}
12Summary:   NTP is the Network Time Protocol.
13Version:   %{ntp_version}
14Release:   %{release}
15URL:       http://www.ntp.org/
16BuildRoot: %{_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    --disable-ipv6 \
49    --disable-HOPFPCI
50
51  %{__make} %{?_smp_mflags} all
52
53  cd ${build_top}
54
55%install
56  build_top=$(pwd)
57
58  %{__rmdir} $SB_BUILD_ROOT
59
60  cd ${build_dir}
61  %{__make} DESTDIR=$SB_BUILD_ROOT install
62  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.