123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #
- # Copyright (C) 2006-2016 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=icu4c
- MAJOR_VERSION:=58
- MINOR_VERSION:=3
- PKG_VERSION:=$(MAJOR_VERSION).$(MINOR_VERSION)
- PKG_RELEASE:=1
- PKG_SOURCE:=$(PKG_NAME)-$(MAJOR_VERSION)_$(MINOR_VERSION)-src.tgz
- PKG_SOURCE_URL:=https://github.com/unicode-org/icu/releases/download/release-$(MAJOR_VERSION)-$(MINOR_VERSION)
- PKG_MD5SUM:=bac4105dfa7c83468182c166caac15ec
- PKG_LICENSE:=ICU-1.8.1+
- PKG_LICENSE_FILES:=LICENSE
- PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
- PKG_INSTALL:=1
- PKG_BUILD_PARALLEL:=1
- PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
- PKG_BUILD_DEPENDS:=icu/host
- include $(INCLUDE_DIR)/package.mk
- include $(INCLUDE_DIR)/host-build.mk
- TAR_OPTIONS+= icu/source --strip-components 2
- TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
- define Package/icu
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=International Components for Unicode
- URL:=http://icu-project.org
- DEPENDS:=+libstdcpp +libpthread
- endef
- CONFIGURE_CMD:= ./runConfigureICU
- CONFIGURE_VARS:=
- CONFIGURE_ARGS:= \
- Linux/gcc \
- --disable-debug \
- --enable-release \
- --enable-shared \
- --enable-static \
- --enable-draft \
- --enable-renaming \
- --disable-tracing \
- --disable-extras \
- --enable-dyload \
- --disable-tools \
- --disable-tests \
- --disable-samples \
- --with-cross-build="$(HOST_BUILD_DIR)" \
- --prefix=/usr
- HOST_CONFIGURE_CMD:= ./runConfigureICU
- HOST_CONFIGURE_VARS:=
- HOST_CONFIGURE_ARGS:= \
- Linux/gcc \
- --disable-debug \
- --enable-release \
- --enable-shared \
- --enable-static \
- --enable-draft \
- --enable-renaming \
- --disable-tracing \
- --disable-extras \
- --enable-dyload \
- --prefix=$(HOST_BUILD_PREFIX)
- define Build/InstallDev
- $(INSTALL_DIR) \
- $(1)/usr/include
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/include/* \
- $(1)/usr/include/
- $(INSTALL_DIR) \
- $(1)/usr/lib
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/* \
- $(1)/usr/lib/
- endef
- define Host/install
- endef
- define Package/icu/install
- $(INSTALL_DIR) \
- $(1)/usr/lib
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
- $(1)/usr/lib/
- endef
- $(eval $(call BuildPackage,icu))
- $(eval $(call HostBuild))
|