source: rtems-source-builder/source-builder/config/gettext-0-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.5 KB
Line 
1#
2# GetText 0.x.x Version 1.
3#
4# This configuration file configure's, make's and install's GetText.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      gettext-%{gettext_version}-%{_host}-%{release}
12Summary:   GetText offers to programmers, translators, and even users, a well
13           integrated set of tools and documentation.
14Version:   %{gettext_version}
15Release:   %{release}
16URL:       http://www.gnu.org/software/gettext/
17BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
18
19#
20# Source
21#
22%source set gettext http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.1.tar.gz
23
24#
25# Fix the mess iconv is on FreeBSD 10.0.
26#
27%if %{defined iconv_includes}
28 %define includes %{iconv_includes}
29%endif
30
31#
32# Prepare the source code.
33#
34%prep
35  build_top=$(pwd)
36
37  source_dir_gettext="gettext-%{gettext_version}"
38  %source setup gettext -q -n gettext-%{gettext_version}
39  %patch setup gettext -p1
40
41  cd ${build_top}
42
43%build
44  build_top=$(pwd)
45
46  %{build_directory}
47
48  mkdir -p ${build_dir}
49  cd ${build_dir}
50
51  %{host_build_flags}
52
53  ../${source_dir_gettext}/configure \
54    --prefix=%{_prefix} \
55    --bindir=%{_bindir} \
56    --exec_prefix=%{_exec_prefix} \
57    --includedir=%{_includedir} \
58    --libdir=%{_libdir} \
59    --libexecdir=%{_libexecdir} \
60    --mandir=%{_mandir} \
61    --infodir=%{_infodir} \
62    --datadir=%{_datadir} \
63    --build=%{_build} --host=%{_host}
64
65  %{__make} %{?_smp_mflags} all
66
67  cd ${build_top}
68
69%install
70  build_top=$(pwd)
71
72  %{__rmdir} $SB_BUILD_ROOT
73
74  cd ${build_dir}
75  %{__make} DESTDIR=$SB_BUILD_ROOT install
76  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.