2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-58_2-src.tgz
15 PKG_SOURCE_URL
:=http
://download.icu-project.org
/files
/$(PKG_NAME
)/$(PKG_VERSION
)
16 PKG_MD5SUM
:=fac212b32b7ec7ab007a12dff1f3aea1
18 PKG_LICENSE
:=ICU-1.8
.1+
19 PKG_LICENSE_FILES
:=LICENSE
21 PKG_MAINTAINER
:=Hirokazu MORIKAWA
<morikw2@gmail.com
>
25 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
27 PKG_BUILD_DEPENDS
:=icu
/host
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/host-build.mk
32 TAR_OPTIONS
+= icu
/source
--strip-components
2
33 TAR_CMD
=$(HOST_TAR
) -C
$(1) $(TAR_OPTIONS
)
38 TITLE
:=International Components for Unicode
39 URL
:=http
://icu-project.org
40 DEPENDS
:=+libstdcpp
+libpthread
43 CONFIGURE_CMD
:= .
/runConfigureICU
59 --with-cross-build
="$(HOST_BUILD_DIR)" \
62 HOST_CONFIGURE_CMD
:= .
/runConfigureICU
64 HOST_CONFIGURE_ARGS
:= \
75 --prefix=$(HOST_BUILD_PREFIX
)
77 define Build
/InstallDev
82 $(PKG_INSTALL_DIR
)/usr
/include/* \
89 $(PKG_INSTALL_DIR
)/usr
/lib
/* \
96 define Package
/icu
/install
101 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so.
* \
105 $(eval
$(call BuildPackage
,icu
))
106 $(eval
$(call HostBuild
))