source: rtems-source-builder/source-builder/config/gettext-0-1.cfg @ 96c414c

5
Last change on this file since 96c414c was 96c414c, checked in by Chris Johns <chrisj@…>, on 10/22/18 at 00:59:10

windows: Remove BuildRoot? from all configs, add a short tmp path.

Closes #3562.

  • 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/
17
18#
19# Source
20#
21%source set gettext http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.1.tar.gz
22
23#
24# Fix the mess iconv is on FreeBSD 10.0.
25#
26%if %{defined iconv_includes}
27 %define includes %{iconv_includes}
28%endif
29
30#
31# Prepare the source code.
32#
33%prep
34  build_top=$(pwd)
35
36  source_dir_gettext="gettext-%{gettext_version}"
37  %source setup gettext -q -n gettext-%{gettext_version}
38  %patch setup gettext -p1
39
40  cd ${build_top}
41
42%build
43  build_top=$(pwd)
44
45  %{build_directory}
46
47  mkdir -p ${build_dir}
48  cd ${build_dir}
49
50  %{host_build_flags}
51
52  ../${source_dir_gettext}/configure \
53    --prefix=%{_prefix} \
54    --bindir=%{_bindir} \
55    --exec_prefix=%{_exec_prefix} \
56    --includedir=%{_includedir} \
57    --libdir=%{_libdir} \
58    --libexecdir=%{_libexecdir} \
59    --mandir=%{_mandir} \
60    --infodir=%{_infodir} \
61    --datadir=%{_datadir} \
62    --build=%{_build} --host=%{_host}
63
64  %{__make} %{?_smp_mflags} all
65
66  cd ${build_top}
67
68%install
69  build_top=$(pwd)
70
71  %{__rmdir} $SB_BUILD_ROOT
72
73  cd ${build_dir}
74  %{__make} DESTDIR=$SB_BUILD_ROOT install
75  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.