Merge pull request #2706 from dibdot/adblock
[feed/packages.git] / libs / icu / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=55.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-55_1-src.tgz
15 PKG_SOURCE_URL:=http://download.icu-project.org/files/icu4c/55.1
16 PKG_MD5SUM:=e2d523df79d6cb7855c2fbe284f4db29
17
18 PKG_LICENSE:=ICU-1.8.1+
19 PKG_LICENSE_FILES:=license.html
20
21 PKG_MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
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
30 include $(INCLUDE_DIR)/package.mk
31 include $(INCLUDE_DIR)/host-build.mk
32
33 TAR_OPTIONS+= icu/source --strip-components 2
34 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
35
36 define Package/icu
37 SECTION:=libs
38 CATEGORY:=Libraries
39 TITLE:=International Components for Unicode
40 URL:=http://icu-project.org
41 DEPENDS:=+libstdcpp +libpthread
42 endef
43
44 define Build/Configure
45 $(call Build/Configure/Default, \
46 --disable-debug \
47 --enable-release \
48 --enable-shared \
49 --enable-static \
50 --enable-draft \
51 --enable-renaming \
52 --disable-tracing \
53 --disable-extras \
54 --enable-dyload \
55 --enable-layout \
56 --enable-layoutex \
57 --disable-tools \
58 --disable-tests \
59 --disable-samples \
60 --with-cross-build="$(HOST_BUILD_DIR)" \
61 )
62 endef
63
64 define Build/InstallDev
65 $(INSTALL_DIR) \
66 $(1)/usr/include
67
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/include/* \
70 $(1)/usr/include/
71
72 $(INSTALL_DIR) \
73 $(1)/usr/lib
74
75 $(CP) \
76 $(PKG_INSTALL_DIR)/usr/lib/* \
77 $(1)/usr/lib/
78 endef
79
80 define Host/install
81 endef
82
83 define Package/icu/install
84 $(INSTALL_DIR) \
85 $(1)/usr/lib
86
87 $(CP) \
88 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
89 $(1)/usr/lib/
90 endef
91
92 $(eval $(call BuildPackage,icu))
93 $(eval $(call HostBuild))