summaryrefslogtreecommitdiff
path: root/packages/development/icu/icu.mk
blob: 37dac7df7089ceff84d2229a0f68905667cf6fca (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
################################################################################
# Embtoolkit
# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#
# \file         icu.mk
# \brief        icu.mk of Embtoolkit.
# \author       Ricardo Crudo <ricardo.crudo@gmail.com>
# \date         May 2014
################################################################################

ICU_NAME	:= icu
ICU_VERSION	:= $(call embtk_get_pkgversion,icu)
ICU_SITE	:= http://download.icu-project.org/files/icu4c/$(ICU_VERSION)
ICU_PACKAGE	:= icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz
ICU_SRC_DIR	:= $(embtk_pkgb)/icu
ICU_BUILD_DIR	:= $(embtk_pkgb)/icu-$(ICU_VERSION)-build

ICU_DEPS	:= icu_host_install

ICU_BINS	:= derb genbrk gencfu gencnval gendict genrb icu-config icuinfo
ICU_SBINS	:= genccode gencmn gennorm2 gensprep icupkg
ICU_BINS	+= makeconv  pkgdata
ICU_INCLUDES	+= layout unicode
ICU_LIBS	:= icu libicu*
ICU_PKGCONFIGS	:= icu-*.pc
ICU_SHARES	:= icu

ICU_CONFIGURE_OPTS := --disable-extras --disable-tests --disable-samples
ICU_CONFIGURE_OPTS += --enable-release --enable-shared --enable-static
ICU_CONFIGURE_OPTS += --with-cross-build=$(embtk_toolsb)/icu-$(ICU_VERSION)-build

ICU_CONFIGURE_DIR	:= source

#
# icu for host
#
ICU_HOST_NAME		:= $(ICU_NAME)
ICU_HOST_VERSION	:= $(ICU_VERSION)
ICU_HOST_SITE		:= $(ICU_SITE)
ICU_HOST_PACKAGE	:= $(ICU_PACKAGE)
ICU_HOST_SRC_DIR	:= $(embtk_toolsb)/icu
ICU_HOST_BUILD_DIR	= $(embtk_toolsb)/icu-$(ICU_VERSION)-build

ICU_HOST_CONFIGURE_OPTS := --disable-extras --disable-tests --disable-samples
ICU_HOST_CONFIGURE_OPTS += --enable-release

ICU_HOST_KEEP_SRC_DIR	:= y
ICU_HOST_CONFIGURE_DIR	:= $(ICU_CONFIGURE_DIR)
ICU_HOST_SET_RPATH	:= y