]>
Commit | Line | Data |
---|---|---|
34870564 SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = icu | |
406d01e7 | 7 | version = %{ver_major}.%{ver_minor} |
20f53c67 | 8 | ver_major = 72 |
34870564 | 9 | ver_minor = 1 |
406d01e7 SS |
10 | ver_plevel = |
11 | release = 1 | |
34870564 SS |
12 | |
13 | groups = Development/Tools | |
14 | url = http://www.icu-project.org | |
15 | license = MIT and UCD and Public Domain | |
16 | summary = International Components for Unicode. | |
17 | ||
18 | description | |
19 | Tools and utilities for developing with icu. | |
20 | end | |
21 | ||
20f53c67 | 22 | source_dl = https://github.com/unicode-org/icu/releases/download/release-%{ver_major}-%{ver_minor}/ |
406d01e7 | 23 | sources = icu4c-%{ver_major}_%{ver_minor}-src.tgz |
34870564 SS |
24 | |
25 | build | |
26 | DIR_APP = %{DIR_SRC}/icu/source | |
27 | ||
28 | configure_options += \ | |
29 | --disable-static \ | |
30 | --with-data-packaging=library \ | |
31 | --disable-samples | |
32 | ||
5b1af63a SS |
33 | prepare_cmds |
34 | sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux | |
35 | end | |
36 | ||
34870564 SS |
37 | configure_cmds |
38 | # There is no source/doc/html/search/ directory | |
39 | sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile | |
40 | ||
41 | # The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend | |
42 | # being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages. | |
43 | test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \ | |
44 | -i common/unicode/uconfig.h | |
45 | end | |
46 | ||
47 | test | |
48 | make check | |
49 | end | |
50 | end | |
51 | ||
52 | packages | |
53 | package %{name} | |
54 | ||
55 | package lib%{name} | |
56 | template LIBS | |
57 | end | |
58 | ||
59 | package lib%{name}-devel | |
60 | template DEVEL | |
61 | ||
04128d8c SS |
62 | provides |
63 | icu-devel = %{thisver} | |
64 | end | |
65 | ||
34870564 SS |
66 | files += \ |
67 | %{bindir}/*config* \ | |
68 | %{bindir}/icuinfo \ | |
69 | %{libidir}/%{name} \ | |
70 | %{datadir}/%{name} | |
71 | end | |
72 | ||
73 | package %{name}-debuginfo | |
74 | template DEBUGINFO | |
75 | end | |
76 | end |