diff options
author | Chris Johns <chrisj@rtems.org> | 2014-06-15 17:40:34 +1200 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-06-15 17:40:34 +1200 |
commit | 0ffee1931680e92757a4d91199e2517f05e7364d (patch) | |
tree | 0a0447a40008a02e238bfa55ab0c7a413de4b47a /source-builder/config/ntp-4-1.cfg | |
parent | sb: Tighten the canadian cross compile detection. (diff) | |
download | rtems-source-builder-0ffee1931680e92757a4d91199e2517f05e7364d.tar.bz2 |
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.
Diffstat (limited to 'source-builder/config/ntp-4-1.cfg')
-rw-r--r-- | source-builder/config/ntp-4-1.cfg | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/source-builder/config/ntp-4-1.cfg b/source-builder/config/ntp-4-1.cfg new file mode 100644 index 0000000..5347e83 --- /dev/null +++ b/source-builder/config/ntp-4-1.cfg @@ -0,0 +1,62 @@ +# +# NTP 4.x.x Version 1. +# +# This configuration file configure's, make's and install's NTP. +# + +%if %{release} == %{nil} +%define release 1 +%endif + +Name: ntp-%{ntp_version}-%{_host}-%{release} +Summary: NTP is the Network Time Protocol. +Version: %{ntp_version} +Release: %{release} +URL: http://www.ntp.org/ +BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) + +# +# NTP Source +# +%source set ntp http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-%{ntp_version}.tar.gz + +# +# Prepare the source code. +# +%prep + build_top=$(pwd) + + source_dir_ntp="ntp-%{ntp_version}" + %source setup ntp -q -n ntp-%{ntp_version} + %patch setup ntp -p1 + + cd ${build_top} + +%build + build_top=$(pwd) + + %{build_directory} + + mkdir -p ${build_dir} + cd ${build_dir} + + %{host_build_flags} + + ../${source_dir_ntp}/configure \ + --host=%{_host} \ + --prefix=%{_prefix} \ + --disable-ipv6 \ + --disable-HOPFPCI + + %{__make} %{?_smp_mflags} all + + cd ${build_top} + +%install + build_top=$(pwd) + + %{__rmdir} $SB_BUILD_ROOT + + cd ${build_dir} + %{__make} DESTDIR=$SB_BUILD_ROOT install + cd ${build_top} |