summaryrefslogtreecommitdiff
path: root/icu/UnpackedTarball_icu.mk
blob: ed58c3285422a89047d94aaff0bd76e5eb33e35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_UnpackedTarball_UnpackedTarball,icu))

$(eval $(call gb_UnpackedTarball_set_tarball,icu,$(ICU_TARBALL)))

# Save space when using a bundled ICU by leaving out unneeded parts of the ICU data. Generated by
# the interactive web tool at http://apps.icu-project.org/datacustom/ICUData49.html by dropping
# the "Charset Mapping Tables". Probably we could carefully cherry-pick other items in the data to
# be dropped, too. A bit tedious using that web tool, though.

# If you do that, upload a new subset data zip file with just the MD5 part of the name changed
# appropriately. Let's not bother trying to list what stuff has been removed in the file name.
# Describe it in the comment above instead.
$(call gb_UnpackedTarball_get_target,icu): $(call gb_UnpackedTarball_get_target,icu_data)
$(eval $(call gb_UnpackedTarball_set_post_action,icu,\
	cp $(call gb_UnpackedTarball_get_dir,icu_data)/icudt49l.dat \
	$(call gb_UnpackedTarball_get_dir,icu)/source/data/in/ \
))

$(eval $(call gb_UnpackedTarball_add_patches,icu,\
	icu/icu4c-bsd.patch \
	icu/icu4c-build.patch \
	icu/icu4c.8198.revert.icu5431.patch \
	icu/icu4c.7601.Indic-ccmp.patch \
	icu/icu4c-aix.patch \
	icu/icu4c-wchar_t.patch \
	icu/icu4c-warnings.patch \
	icu/icu4c.9313.cygwin.patch \
	icu/icu4c-macosx.patch \
	icu/icu4c-solarisgcc.patch \
	icu/icu4c-mkdir.patch \
	icu/icu4c-buffer-overflow.patch \
	icu/icu4c-$(if $(filter ANDROID,$(OS)),android,rpath).patch \
))

# vim: set noet sw=4 ts=4: