source:
rtems-source-builder/source-builder/config/gettext-0-1.cfg
@
0ffee19
Last change on this file since 0ffee19 was 0ffee19, checked in by Chris Johns <chrisj@…>, on 06/15/14 at 05:40:34 | |
---|---|
|
|
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 | |
11 | Name: gettext-%{gettext_version}-%{_host}-%{release} |
12 | Summary: GetText offers to programmers, translators, and even users, a well |
13 | integrated set of tools and documentation. |
14 | Version: %{gettext_version} |
15 | Release: %{release} |
16 | URL: http://www.gnu.org/software/gettext/ |
17 | BuildRoot: %{_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.