Merge pull request #3806 from diizzyy/patch-23
[feed/packages.git] / libs / icu / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=icu4c
11 PKG_VERSION:=58.2
12 PKG_RELEASE:=1
13
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
17
18 PKG_LICENSE:=ICU-1.8.1+
19 PKG_LICENSE_FILES:=LICENSE
20
21 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
26
27 PKG_BUILD_DEPENDS:=icu/host
28
29 include $(INCLUDE_DIR)/package.mk
30 include $(INCLUDE_DIR)/host-build.mk
31
32 TAR_OPTIONS+= icu/source --strip-components 2
33 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
34
35 define Package/icu
36 SECTION:=libs
37 CATEGORY:=Libraries
38 TITLE:=International Components for Unicode
39 URL:=http://icu-project.org
40 DEPENDS:=+libstdcpp +libpthread
41 endef
42
43 CONFIGURE_CMD:= ./runConfigureICU
44 CONFIGURE_VARS:=
45 CONFIGURE_ARGS:= \
46 Linux/gcc \
47 --disable-debug \
48 --enable-release \
49 --enable-shared \
50 --enable-static \
51 --enable-draft \
52 --enable-renaming \
53 --disable-tracing \
54 --disable-extras \
55 --enable-dyload \
56 --disable-tools \
57 --disable-tests \
58 --disable-samples \
59 --with-cross-build="$(HOST_BUILD_DIR)" \
60 --prefix=/usr
61
62 HOST_CONFIGURE_CMD:= ./runConfigureICU
63 HOST_CONFIGURE_VARS:=
64 HOST_CONFIGURE_ARGS:= \
65 Linux/gcc \
66 --disable-debug \
67 --enable-release \
68 --enable-shared \
69 --enable-static \
70 --enable-draft \
71 --enable-renaming \
72 --disable-tracing \
73 --disable-extras \
74 --enable-dyload \
75 --prefix=$(HOST_BUILD_PREFIX)
76
77 define Build/InstallDev
78 $(INSTALL_DIR) \
79 $(1)/usr/include
80
81 $(CP) \
82 $(PKG_INSTALL_DIR)/usr/include/* \
83 $(1)/usr/include/
84
85 $(INSTALL_DIR) \
86 $(1)/usr/lib
87
88 $(CP) \
89 $(PKG_INSTALL_DIR)/usr/lib/* \
90 $(1)/usr/lib/
91 endef
92
93 define Host/install
94 endef
95
96 define Package/icu/install
97 $(INSTALL_DIR) \
98 $(1)/usr/lib
99
100 $(CP) \
101 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
102 $(1)/usr/lib/
103 endef
104
105 $(eval $(call BuildPackage,icu))
106 $(eval $(call HostBuild))