mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
icu: add an option to add a custom data library file
[Thomas: - use one single BR2_PACKAGE_ICU_CUSTOM_DATA_PATH string option instead of a boolean option + a string option, which always causes a lot of issues with random configurations that enable the boolean option, but do not provide a valid value for the string option. - enclose the definition of ICU_COPY_CUSTOM_DATA into the condition.] Signed-off-by: Johan Derycke <johan.derycke@barco.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
5224cdcc14
commit
abded6bfea
@ -13,6 +13,18 @@ config BR2_PACKAGE_ICU
|
|||||||
|
|
||||||
http://site.icu-project.org/
|
http://site.icu-project.org/
|
||||||
|
|
||||||
|
if BR2_PACKAGE_ICU
|
||||||
|
|
||||||
|
config BR2_PACKAGE_ICU_CUSTOM_DATA_PATH
|
||||||
|
string "Path to custom data library file"
|
||||||
|
help
|
||||||
|
This option allows to define the path to a custom data
|
||||||
|
library generated with
|
||||||
|
http://apps.icu-project.org/datacustom/ICUData51.html. Leave
|
||||||
|
empty to not use this functionality.
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
comment "icu needs a toolchain w/ C++, wchar, threads"
|
comment "icu needs a toolchain w/ C++, wchar, threads"
|
||||||
depends on !BR2_arc
|
depends on !BR2_arc
|
||||||
depends on !BR2_BINFMT_FLAT
|
depends on !BR2_BINFMT_FLAT
|
||||||
|
@ -26,5 +26,12 @@ ICU_MAKE = $(MAKE1)
|
|||||||
ICU_SUBDIR = source
|
ICU_SUBDIR = source
|
||||||
HOST_ICU_SUBDIR = source
|
HOST_ICU_SUBDIR = source
|
||||||
|
|
||||||
|
ifneq ($(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH),)
|
||||||
|
define ICU_COPY_CUSTOM_DATA
|
||||||
|
cp $(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH) $(@D)/source/data/in/
|
||||||
|
endef
|
||||||
|
ICU_POST_PATCH_HOOKS += ICU_COPY_CUSTOM_DATA
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
$(eval $(host-autotools-package))
|
$(eval $(host-autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user